Listens to the modbus_read topic and publishes a message informing about a required brake test.
More...
#include <modbus_adapter_brake_test.h>
Listens to the modbus_read topic and publishes a message informing about a required brake test.
Definition at line 43 of file modbus_adapter_brake_test.h.
const ModbusAdapterBrakeTest::TRegIdxCont::mapped_type & prbt_hardware_support::ModbusAdapterBrakeTest::getMaxRegisterIdx |
( |
const TRegIdxCont & |
reg_idx_cont | ) |
|
|
inlinestaticprivate |
const ModbusAdapterBrakeTest::TRegIdxCont::mapped_type & prbt_hardware_support::ModbusAdapterBrakeTest::getMinRegisterIdx |
( |
const TRegIdxCont & |
reg_idx_cont | ) |
|
|
inlinestaticprivate |
unsigned long prbt_hardware_support::ModbusAdapterBrakeTest::getRegisterBlockSize |
( |
const TRegIdxCont & |
reg_idx_cont | ) |
|
|
inlinestaticprivate |
- Returns
- the indicies of the modbus registers, needed to write the brake test results back to the modbus.
Definition at line 43 of file modbus_adapter_brake_test.cpp.
bool prbt_hardware_support::ModbusAdapterBrakeTest::isBrakeTestRequired |
( |
IsBrakeTestRequired::Request & |
, |
|
|
IsBrakeTestRequired::Response & |
res |
|
) |
| |
|
inline |
Stores the brake test required flag and initializes the brake test service, the first time the function is called.
Definition at line 113 of file modbus_adapter_brake_test.h.
void prbt_hardware_support::ModbusAdapterBrakeTest::modbusMsgCallback |
( |
const ModbusMsgInStampedConstPtr & |
msg_raw | ) |
|
Called whenever a new modbus message arrives.
- Note
- Filters like for example the UpdateFilter can restrict the number of incoming messages.
Definition at line 73 of file modbus_adapter_brake_test.cpp.
bool prbt_hardware_support::ModbusAdapterBrakeTest::sendBrakeTestResult |
( |
SendBrakeTestResult::Request & |
req, |
|
|
SendBrakeTestResult::Response & |
res |
|
) |
| |
void prbt_hardware_support::ModbusAdapterBrakeTest::updateBrakeTestRequiredState |
( |
TBrakeTestRequired |
brake_test_required | ) |
|
|
private |
const ModbusApiSpec prbt_hardware_support::ModbusAdapterBrakeTest::api_spec_ |
|
private |
TBrakeTestRequired prbt_hardware_support::ModbusAdapterBrakeTest::brake_test_required_ {IsBrakeTestRequiredResponse::UNKNOWN} |
|
private |
const TRegIdxCont prbt_hardware_support::ModbusAdapterBrakeTest::reg_idx_cont_ |
|
private |
Contains the indicies of the modbus registers, needed to write the brake test results back to the modbus.
Definition at line 103 of file modbus_adapter_brake_test.h.
The documentation for this class was generated from the following files: