17 #ifndef _RTUEXCHANGE_H_
18 #define _RTUEXCHANGE_H_
24 #include "MBExchange.h"
25 #include "modbus/ModbusRTUMaster.h"
26 #include "RTUStorage.h"
36 const std::shared_ptr<SharedMemory>& ic =
nullptr,
const std::string& prefix =
"rs" );
40 static std::shared_ptr<RTUExchange>
init_rtuexchange(
int argc,
const char*
const* argv,
42 const std::string& prefix =
"rs" );
45 static void help_print(
int argc,
const char*
const* argv );
48 std::shared_ptr<ModbusRTUMaster> mbrtu;
51 ComPort::Speed defSpeed;
55 virtual void step()
override;
56 virtual bool poll()
override;
58 virtual std::shared_ptr<ModbusClient> initMB(
bool reopen =
false )
override;
59 virtual bool initDeviceInfo( RTUDeviceMap& m, ModbusRTU::ModbusAddr a,
UniXML::iterator& it )
override;
69 #endif // _RS_EXCHANGE_H_