18 #ifndef MODBUS_ADAPTER_RUN_PERMITTED_H 19 #define MODBUS_ADAPTER_RUN_PERMITTED_H 26 #include <prbt_hardware_support/ModbusMsgInStamped.h> 62 #endif // MODBUS_ADAPTER_RUN_PERMITTED_H const ModbusApiSpec api_spec_
void modbusMsgCallback(const ModbusMsgInStampedConstPtr &msg_raw)
Called whenever a new modbus messages arrives.
Listens to the modbus_read topic and reacts to updated RUN_PERMITTED states.
ModbusAdapterRunPermitted(UpdateRunPermittedFunc &&update_run_permitted_func, const ModbusApiSpec &api_spec)
std::function< void(const bool)> UpdateRunPermittedFunc
UpdateRunPermittedFunc update_run_permitted_
Specifies the meaning of the holding registers.