17 #ifndef MODBUS_MSG_BRAKE_TEST_WRAPPER_H 18 #define MODBUS_MSG_BRAKE_TEST_WRAPPER_H 20 #include <prbt_hardware_support/ModbusMsgInStamped.h> 84 return IsBrakeTestRequiredResponse::NOT_REQUIRED;
87 return IsBrakeTestRequiredResponse::REQUIRED;
90 return IsBrakeTestRequiredResponse::UNKNOWN;
106 #endif // MODBUS_MSG_BRAKE_TEST_WRAPPER_H const ModbusApiSpec & getApiSpec() const
uint16_t getRegister(uint32_t reg) const
static const std::string BRAKETEST_REQUEST
virtual void checkStructuralIntegrity() const
Checks that the Modbus messages consists of all registers needed.
bool hasRegister(uint32_t reg) const
Check if a certain holding register is define in the Modbus message.
static constexpr uint16_t REGISTER_VALUE_BRAKETEST_NOT_REQUIRED
Expection thrown upon construction of ModbusMsgBrakeTestWrapper of the message does not contain the r...
static constexpr uint16_t REGISTER_VALUE_BRAKETEST_REQUIRED
IsBrakeTestRequiredResponse::_result_type getBrakeTestRequirementStatus() const
Get the brake test required flag from the Modbus message.
bool hasBrakeTestRequiredFlag() const
Check if the message contains a brake test required definition.
Wrapper class to add semantic to a raw ModbusMsgInStamped.
virtual void checkStructuralIntegrity() const override
Calls ModbusMsgWrapper::checkStructuralIntegrity().
ModbusMsgBrakeTestWrapper(const ModbusMsgInStampedConstPtr &modbus_msg_raw, const ModbusApiSpec &api_spec)
Wrapper class to add semantic to a raw ModbusMsgInStamped.
Specifies the meaning of the holding registers.