|
AgIsoStack++
A control-function-focused implementation of the major ISOBUS and J1939 protocols
|
Stores the raw byte data associated with a functionality based on what the user has enabled and what options the user has set for that functionality. More...
Public Member Functions | |
| FunctionalityData (Functionalities functionalityToStore) | |
| Constructor for a FunctionalityData object. | |
| void | configure_default_data () |
| Sets up default data associated to the functionality the object is representing. | |
| void | set_bit_in_option (std::uint8_t byteIndex, std::uint8_t bit, bool value) |
| A helper function to set a particular option bit to some value within an option byte. | |
| bool | get_bit_in_option (std::uint8_t byteIndex, std::uint8_t bit) |
| A helper function to get a particular bit's value in the specified option byte. | |
Public Attributes | |
| Functionalities | functionality = Functionalities::MinimumControlFunction |
| The functionality associated with this data. | |
| std::vector< std::uint8_t > | serializedValue |
| The raw message data value for this functionality. | |
| std::uint8_t | generation = 1 |
| The generation of the functionality supported. | |
Stores the raw byte data associated with a functionality based on what the user has enabled and what options the user has set for that functionality.
Definition at line 385 of file isobus_functionalities.hpp.
|
explicit |
Constructor for a FunctionalityData object.
| [in] | functionalityToStore | The ISO functionality that the object will represent |
Definition at line 560 of file isobus_functionalities.cpp.
| void isobus::ControlFunctionFunctionalities::FunctionalityData::configure_default_data | ( | ) |
Sets up default data associated to the functionality the object is representing.
This sets up the serializedValue to be a valid "no options" default set of bytes.
Definition at line 565 of file isobus_functionalities.cpp.
| bool isobus::ControlFunctionFunctionalities::FunctionalityData::get_bit_in_option | ( | std::uint8_t | byteIndex, |
| std::uint8_t | bit ) |
A helper function to get a particular bit's value in the specified option byte.
| [in] | byteIndex | The options byte index inside which the bit should be retrieved |
| [in] | bit | The bit offset index of the bit you want to get, between 0 and 7 |
Definition at line 638 of file isobus_functionalities.cpp.
| void isobus::ControlFunctionFunctionalities::FunctionalityData::set_bit_in_option | ( | std::uint8_t | byteIndex, |
| std::uint8_t | bit, | ||
| bool | value ) |
A helper function to set a particular option bit to some value within an option byte.
| [in] | byteIndex | The options byte index inside which the bit should be set |
| [in] | bit | The bit offset index of the bit you want to set, between 0 and 7 |
| [in] | value | The new value for the desired bit |
Definition at line 623 of file isobus_functionalities.cpp.
| Functionalities isobus::ControlFunctionFunctionalities::FunctionalityData::functionality = Functionalities::MinimumControlFunction |
The functionality associated with this data.
Definition at line 410 of file isobus_functionalities.hpp.
| std::uint8_t isobus::ControlFunctionFunctionalities::FunctionalityData::generation = 1 |
The generation of the functionality supported.
Definition at line 412 of file isobus_functionalities.hpp.
| std::vector<std::uint8_t> isobus::ControlFunctionFunctionalities::FunctionalityData::serializedValue |
The raw message data value for this functionality.
Definition at line 411 of file isobus_functionalities.hpp.