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 =
nullptr;
50 ComPort::Speed defSpeed = { ComPort::ComSpeed38400 };
51 ComPort::Parity parity;
52 ComPort::CharacterSize csize;
53 ComPort::StopBits stopBits;
54 bool use485F = {
false };
55 bool transmitCtl = {
false };
57 virtual void step()
override;
58 virtual bool poll()
override;
59 virtual std::shared_ptr<ModbusClient> initMB(
bool reopen =
false )
override;
64 bool rs_pre_clean = {
false };
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 ModbusMaster/rtuexchange.cc:411