Go to the documentation of this file.
85 explicit Data(
const uint32_t data);
109 using TimePoint = std::chrono::system_clock::time_point;
211 void setData(
const uint32_t data);
237 void getMessages(std::vector<std::string>& infos, std::vector<std::string>& warnings,
238 std::vector<std::string>& errors, std::vector<std::string>& fatals)
const;
255 std::vector<std::string>& warnings, std::vector<std::string>& errors,
256 std::vector<std::string>& fatals)
const;
uint32_t errorAdcSaturated_
uint32_t errorAdcOutOfSync_
uint32_t getData() const
Gets the data variable.
Data associated with a Status Word.
bool operator!=(const Data &other)
Checks if two Data are not equal.
bool hasErrorAccSaturated() const
Checks if the statusword has error ACC saturated.
bool operator==(const Data &other)
Checks if two Data are equal.
uint32_t errorGyroSaturated_
TimePoint stamp_
Timestamp associated with the Data.
uint32_t warningOvertemperature_
double getAge() const
Gets the age variable.
bool hasErrorSensingRangeExceeded() const
Checks if the statusword has error sensing range exceeded.
void setData(const uint32_t data)
Sets the data variable.
Data()=default
Default constructor.
bool isEmpty() const
Checks whether the statusword is empty.
std::ostream & operator<<(std::ostream &os, const Statusword &statusword)
Outputs the statusword data to an output stream.
Statusword & operator=(const Statusword &statusword)
Assignment operator.
void 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.
bool hasFatalSupplyVoltage() const
Checks if the statusword has fatal supply voltage.
uint32_t fatalSupplyVoltage_
uint32_t all_
All the bits in a "raw" uint32_t format.
TimePoint getStamp() const
Gets the stamp variable.
std::chrono::system_clock::time_point TimePoint
bool hasErrorAdcSaturated() const
Checks if the statusword has error ADC saturated.
Data data_
The data variable.
std::chrono::duration< double > Duration
virtual ~Statusword()=default
Statusword()=default
Default constructor.
DataBits bits_
The bits of the data.
std::recursive_mutex mutex_
Mutex enabling synchronization.
uint32_t errorAccSaturated_
bool hasErrorGyroSaturated() const
Checks if the statusword has error gyro saturated.
uint32_t errorSensingRangeExceeded_
Bits representing errors.
bool hasErrorAdcOutOfSync() const
Checks if the statusword has error ADC out-of-sync.
Class representing the different states the communication or the sensors can be in.
void 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.
bool hasWarningOvertemperature() const
Checks if the statusword has warning over temperature.
rokubimini
Author(s):
autogenerated on Sat Apr 15 2023 02:53:52