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" );
44 static void help_print(
int argc,
const char*
const* argv );
47 std::shared_ptr<ModbusRTUMaster> mbrtu;
50 ComPort::Speed defSpeed;
54 virtual void step()
override;
55 virtual bool poll()
override;
57 virtual std::shared_ptr<ModbusClient> initMB(
bool reopen =
false )
override;
58 virtual bool initDeviceInfo( RTUDeviceMap& m, ModbusRTU::ModbusAddr a,
UniXML::iterator& it )
override;
68 #endif // _RS_EXCHANGE_H_ Definition: MBExchange.h:55
Definition: CommonEventLoop.h:14
Definition: RTUExchange.h:31
static std::shared_ptr< RTUExchange > init_rtuexchange(int argc, const char *const *argv, uniset::ObjectId shmID, const std::shared_ptr< SharedMemory > &ic=nullptr, const std::string &prefix="rs")
Definition: rtuexchange.cc:355
long ObjectId
Definition: UniSetTypes_i.idl:30