|
| ModbusRTUMaster (ComPort *com) |
|
| ModbusRTUMaster (const std::string &dev, bool use485=false, bool tr_ctl=false) |
|
virtual void | cleanupChannel () override |
|
void | setSpeed (ComPort::Speed s) |
|
void | setSpeed (const std::string &s) |
|
ComPort::Speed | getSpeed () |
|
void | setParity (ComPort::Parity parity) |
|
ComPort::Parity | getParity () |
|
void | setCharacterSize (ComPort::CharacterSize csize) |
|
ComPort::CharacterSize | getCharacterSize () |
|
void | setStopBits (ComPort::StopBits sBit) |
|
ComPort::StopBits | getStopBits () |
|
timeout_t | getTimeout () const |
|
ModbusRTU::ReadCoilRetMessage | read01 (ModbusRTU::ModbusAddr addr, ModbusRTU::ModbusData start, ModbusRTU::ModbusData count) |
|
ModbusRTU::ReadInputStatusRetMessage | read02 (ModbusRTU::ModbusAddr addr, ModbusRTU::ModbusData start, ModbusRTU::ModbusData count) |
|
ModbusRTU::ReadOutputRetMessage | read03 (ModbusRTU::ModbusAddr addr, ModbusRTU::ModbusData start, ModbusRTU::ModbusData count) |
|
ModbusRTU::ReadInputRetMessage | read04 (ModbusRTU::ModbusAddr addr, ModbusRTU::ModbusData start, ModbusRTU::ModbusData count) |
|
ModbusRTU::ForceSingleCoilRetMessage | write05 (ModbusRTU::ModbusAddr addr, ModbusRTU::ModbusData reg, bool cmd) |
|
ModbusRTU::WriteSingleOutputRetMessage | write06 (ModbusRTU::ModbusAddr addr, ModbusRTU::ModbusData reg, ModbusRTU::ModbusData data) |
|
ModbusRTU::ForceCoilsRetMessage | write0F (ModbusRTU::ForceCoilsMessage &msg) |
|
ModbusRTU::WriteOutputRetMessage | write10 (ModbusRTU::WriteOutputMessage &msg) |
|
ModbusRTU::DiagnosticRetMessage | diag08 (ModbusRTU::ModbusAddr addr, ModbusRTU::DiagnosticsSubFunction subfunc, ModbusRTU::ModbusData dat=0) |
|
ModbusRTU::MEIMessageRetRDI | read4314 (ModbusRTU::ModbusAddr addr, ModbusRTU::ModbusByte devID, ModbusRTU::ModbusByte objID) |
|
ModbusRTU::SetDateTimeRetMessage | setDateTime (ModbusRTU::ModbusAddr addr, ModbusRTU::ModbusByte hour, ModbusRTU::ModbusByte min, ModbusRTU::ModbusByte sec, ModbusRTU::ModbusByte day, ModbusRTU::ModbusByte mon, ModbusRTU::ModbusByte year, ModbusRTU::ModbusByte century) |
|
ModbusRTU::FileTransferRetMessage | partOfFileTransfer (ModbusRTU::ModbusAddr addr, ModbusRTU::ModbusData idFile, ModbusRTU::ModbusData numpack, timeout_t part_timeout_msec=2000) |
|
void | fileTransfer (ModbusRTU::ModbusAddr addr, ModbusRTU::ModbusData idFile, const std::string &save2filename, timeout_t part_timeout_msec=2000) |
|
void | setTimeout (timeout_t msec) |
|
int | setAfterSendPause (timeout_t msec) |
|
void | setSleepPause (timeout_t usec) |
|
void | initLog (std::shared_ptr< uniset::Configuration > conf, const std::string &name, const std::string &logfile="") |
|
void | setLog (std::shared_ptr< DebugStream > dlog) |
|
void | setCRCNoCheckit (bool set) |
|
bool | isCRCNoCheckit () const |
|
|
virtual size_t | getNextData (unsigned char *buf, size_t len) override |
|
virtual void | setChannelTimeout (timeout_t msec) override |
|
virtual ModbusRTU::mbErrCode | sendData (unsigned char *buf, size_t len) override |
|
virtual ModbusRTU::mbErrCode | query (ModbusRTU::ModbusAddr addr, ModbusRTU::ModbusMessage &msg, ModbusRTU::ModbusMessage &reply, timeout_t timeout) override |
|
virtual ModbusRTU::mbErrCode | send (ModbusRTU::ModbusMessage &msg) |
|
virtual ModbusRTU::mbErrCode | recv (ModbusRTU::ModbusAddr addr, ModbusRTU::ModbusByte qfunc, ModbusRTU::ModbusMessage &rbuf, timeout_t timeout) |
|
virtual ModbusRTU::mbErrCode | recv_pdu (ModbusRTU::ModbusByte qfunc, ModbusRTU::ModbusMessage &rbuf, timeout_t timeout) |
|
void | printProcessingTime () |
|