|
constexpr | Version (uint8_t major=0, uint16_t minor=0, uint8_t patch=0) noexcept |
|
constexpr | Version (GblVersion version) noexcept |
|
| Version (const char *pString) |
|
constexpr uint8_t | major () const noexcept |
|
constexpr uint16_t | minor () const noexcept |
|
constexpr uint8_t | patch () const noexcept |
|
constexpr void | setMajor (uint8_t major) noexcept |
|
constexpr void | setMinor (uint16_t minor) noexcept |
|
constexpr void | setPatch (uint16_t patch) noexcept |
|
constexpr | operator GblVersion () const noexcept |
|
Definition at line 8 of file gimbal_version.hpp.
◆ Version() [1/3]
constexpr gbl::Version::Version |
( |
uint8_t |
major = 0 , |
|
|
uint16_t |
minor = 0 , |
|
|
uint8_t |
patch = 0 |
|
) |
| |
|
inlineconstexprnoexcept |
Definition at line 13 of file gimbal_version.hpp.
15 :
16 version_(GBL_VERSION_MAKE_(major, minor, patch)) {}
◆ Version() [2/3]
constexpr gbl::Version::Version |
( |
GblVersion |
version | ) |
|
|
inlineconstexprnoexcept |
◆ Version() [3/3]
gbl::Version::Version |
( |
const char * |
pString | ) |
|
|
inline |
Definition at line 21 of file gimbal_version.hpp.
21 {
22
24 }
GblVersion GblVersion_parse(const char *pString)
Parses and returns a GblVersion from an encoded version string in the format "MAJOR....
◆ major()
constexpr uint8_t gbl::Version::major |
( |
| ) |
const |
|
inlineconstexprnoexcept |
Definition at line 26 of file gimbal_version.hpp.
#define GBL_VERSION_MAJOR_BITPOS
Bit position of the MAJOR field.
#define GBL_VERSION_MAJOR_MASK
Bit mask of the MAJOR field.
◆ minor()
constexpr uint16_t gbl::Version::minor |
( |
| ) |
const |
|
inlineconstexprnoexcept |
Definition at line 27 of file gimbal_version.hpp.
#define GBL_VERSION_MINOR_BITPOS
Bit position of the MINOR field.
#define GBL_VERSION_MINOR_MASK
Bit mask of the MINOR field.
◆ patch()
constexpr uint8_t gbl::Version::patch |
( |
| ) |
const |
|
inlineconstexprnoexcept |
Definition at line 28 of file gimbal_version.hpp.
#define GBL_VERSION_PATCH_MASK
Bit mask of the PATCH field.
#define GBL_VERSION_PATCH_BITPOS
Bit position of the PATCH field.
◆ setMajor()
constexpr void gbl::Version::setMajor |
( |
uint8_t |
major | ) |
|
|
inlineconstexprnoexcept |
◆ setMinor()
constexpr void gbl::Version::setMinor |
( |
uint16_t |
minor | ) |
|
|
inlineconstexprnoexcept |
◆ setPatch()
constexpr void gbl::Version::setPatch |
( |
uint16_t |
patch | ) |
|
|
inlineconstexprnoexcept |
◆ operator GblVersion()
constexpr gbl::Version::operator GblVersion |
( |
| ) |
const |
|
inlineconstexprnoexcept |
The documentation for this class was generated from the following file: