-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
143 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
#pragma once | ||
|
||
#include <cstdint> | ||
#include "ublox/Version.h" | ||
|
||
namespace ublox | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/// @file | ||
/// @brief Contains protocol version definition. | ||
|
||
#pragma once | ||
|
||
#include "comms/version.h" | ||
|
||
/// @brief Version of the protocol library as single numeric value | ||
#define UBLOX_VERSION (0U) | ||
|
||
namespace ublox | ||
{ | ||
|
||
/// @brief Version of the protocol library as single numeric value | ||
inline constexpr unsigned version() | ||
{ | ||
return UBLOX_VERSION; | ||
} | ||
|
||
} // namespace ublox | ||
|
||
|
||
static_assert(COMMS_MAKE_VERSION(1, 0, 0) <= comms::version(), | ||
"The version of COMMS library is too old"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
|
||
#include "comms/Field.h" | ||
#include "comms/options.h" | ||
#include "ublox/Version.h" | ||
|
||
namespace ublox | ||
{ | ||
|