Class representing the different states the communication or the sensors can be in.
More...
#include <Statusword.hpp>
|
using | Duration = std::chrono::duration< double > |
|
using | TimePoint = std::chrono::system_clock::time_point |
|
Class representing the different states the communication or the sensors can be in.
Definition at line 20 of file Statusword.hpp.
rokubimini::Statusword::Statusword |
( |
| ) |
|
|
default |
rokubimini::Statusword::Statusword |
( |
const Statusword & |
statusword | ) |
|
Copy constructor.
- Parameters
-
statusword | The statusword to copy from. |
Definition at line 20 of file Statusword.cpp.
rokubimini::Statusword::Statusword |
( |
const uint32_t |
data | ) |
|
|
explicit |
Explicit constructor.
- Parameters
-
data | Data to be copied to the internal variable. |
Definition at line 24 of file Statusword.cpp.
virtual rokubimini::Statusword::~Statusword |
( |
| ) |
|
|
virtualdefault |
double rokubimini::Statusword::getAge |
( |
| ) |
const |
Gets the age variable.
- Returns
- The age value.
Definition at line 43 of file Statusword.cpp.
uint32_t rokubimini::Statusword::getData |
( |
| ) |
const |
Gets the data variable.
- Returns
- The data value.
Definition at line 63 of file Statusword.cpp.
void rokubimini::Statusword::getMessages |
( |
std::vector< std::string > & |
infos, |
|
|
std::vector< std::string > & |
warnings, |
|
|
std::vector< std::string > & |
errors, |
|
|
std::vector< std::string > & |
fatals |
|
) |
| const |
Gets all the messages relevant to statuswords.
- Parameters
-
infos | The info messages list. |
warnings | The warning messages list. |
errors | The error messages list. |
fatals | The fatal messages list. |
Definition at line 82 of file Statusword.cpp.
void rokubimini::Statusword::getMessagesDiff |
( |
Statusword & |
previousStatusword, |
|
|
std::vector< std::string > & |
infos, |
|
|
std::vector< std::string > & |
warnings, |
|
|
std::vector< std::string > & |
errors, |
|
|
std::vector< std::string > & |
fatals |
|
) |
| const |
Gets the different messages form the previous statusword.
- Parameters
-
previousStatusword | The previous statusword. |
infos | The info messages list. |
warnings | The warning messages list. |
errors | The error messages list. |
fatals | The fatal messages list. |
Definition at line 89 of file Statusword.cpp.
Gets the stamp variable.
- Returns
- The stamp value.
Definition at line 50 of file Statusword.cpp.
bool rokubimini::Statusword::hasErrorAccSaturated |
( |
| ) |
const |
Checks if the statusword has error ACC saturated.
- Returns
- True if the statusword has error ACC saturated.
Definition at line 162 of file Statusword.cpp.
bool rokubimini::Statusword::hasErrorAdcOutOfSync |
( |
| ) |
const |
Checks if the statusword has error ADC out-of-sync.
- Returns
- True if the statusword has error ADC out-of-sync.
Definition at line 174 of file Statusword.cpp.
bool rokubimini::Statusword::hasErrorAdcSaturated |
( |
| ) |
const |
Checks if the statusword has error ADC saturated.
- Returns
- True if the statusword has error ADC saturated.
Definition at line 156 of file Statusword.cpp.
bool rokubimini::Statusword::hasErrorGyroSaturated |
( |
| ) |
const |
Checks if the statusword has error gyro saturated.
- Returns
- True if the statusword has error gyro saturated.
Definition at line 168 of file Statusword.cpp.
bool rokubimini::Statusword::hasErrorSensingRangeExceeded |
( |
| ) |
const |
Checks if the statusword has error sensing range exceeded.
- Returns
- True if the statusword has error sensing range exceeded.
Definition at line 180 of file Statusword.cpp.
bool rokubimini::Statusword::hasFatalSupplyVoltage |
( |
| ) |
const |
Checks if the statusword has fatal supply voltage.
- Returns
- True if the statusword has fatal supply voltage.
Definition at line 192 of file Statusword.cpp.
bool rokubimini::Statusword::hasWarningOvertemperature |
( |
| ) |
const |
Checks if the statusword has warning over temperature.
- Returns
- True if the statusword has warning over temperature.
Definition at line 186 of file Statusword.cpp.
bool rokubimini::Statusword::isEmpty |
( |
| ) |
const |
Checks whether the statusword is empty.
- Returns
- True if it's empty.
Definition at line 37 of file Statusword.cpp.
Assignment operator.
- Parameters
-
statusword | The statusword to assign. |
- Returns
- A reference to the existing statusword.
Definition at line 29 of file Statusword.cpp.
void rokubimini::Statusword::setData |
( |
const uint32_t |
data | ) |
|
Sets the data variable.
- Parameters
-
Definition at line 56 of file Statusword.cpp.
Data rokubimini::Statusword::data_ |
|
protected |
std::recursive_mutex rokubimini::Statusword::mutex_ |
|
mutableprotected |
The documentation for this class was generated from the following files: