|
enum class | Base { Fifty_Milliseconds = 0
, One_Second = 1
, Ten_Seconds = 2
, Hundred_Seconds = 3
} |
|
Definition at line 15 of file lifetime.hpp.
◆ Base
enum class vanetza::geonet::Lifetime::Base |
|
strong |
◆ Lifetime() [1/2]
vanetza::geonet::Lifetime::Lifetime |
( |
| ) |
|
◆ Lifetime() [2/2]
vanetza::geonet::Lifetime::Lifetime |
( |
Base |
base, |
|
|
BitNumber< uint8_t, 6 > |
multiplier |
|
) |
| |
◆ decode()
units::Duration vanetza::geonet::Lifetime::decode |
( |
| ) |
const |
Decodes stored lifetime
- Returns
- lifetime as duration quantity
Definition at line 59 of file lifetime.cpp.
◆ encode()
void vanetza::geonet::Lifetime::encode |
( |
units::Duration |
duration | ) |
|
Encode duration in lifetime object
- Note
- Precision loss might occur
- Parameters
-
Definition at line 45 of file lifetime.cpp.
◆ operator<()
bool vanetza::geonet::Lifetime::operator< |
( |
const Lifetime & |
other | ) |
const |
◆ operator==()
bool vanetza::geonet::Lifetime::operator== |
( |
const Lifetime & |
other | ) |
const |
◆ raw() [1/2]
uint8_t vanetza::geonet::Lifetime::raw |
( |
| ) |
const |
|
inline |
◆ raw() [2/2]
void vanetza::geonet::Lifetime::raw |
( |
uint8_t |
raw | ) |
|
|
inline |
◆ set()
void vanetza::geonet::Lifetime::set |
( |
Base |
base, |
|
|
BitNumber< uint8_t, 6 > |
multiplier |
|
) |
| |
◆ zero()
const Lifetime vanetza::geonet::Lifetime::zero |
( |
| ) |
|
|
static |
◆ base_mask
constexpr uint8_t vanetza::geonet::Lifetime::base_mask = 0x03 |
|
staticconstexpr |
◆ m_lifetime
uint8_t vanetza::geonet::Lifetime::m_lifetime |
|
private |
◆ multiplier_mask
constexpr uint8_t vanetza::geonet::Lifetime::multiplier_mask = 0xFC |
|
staticconstexpr |
The documentation for this class was generated from the following files: