ModbusRTU

Modbus with RTU backend based on existing serial port

Constructors

this
this(SerialPort sp)

Destructor

~this
~this()
Undocumented in source.

Members

Classes

Iface
class Iface
Undocumented in source.

Properties

com
SerialPort com [@property getter]
com
const(SerialPort) com [@property getter]

Variables

_com
SerialPort _com;
Undocumented in source.
readFrameGap
Duration readFrameGap;
readTimeout
Duration readTimeout;
writeTimeout
Duration writeTimeout;

Inherited Members

From Modbus

be
Backend be;
Undocumented in source.
Backend
interface Backend
Undocumented in source.
needCheckCRC
bool needCheckCRC;
Undocumented in source.
write
void write(ubyte dev, ubyte func, Args args)
Undocumented in source. Be warned that the author may not have intended to support it.
read
const(void)[] read(size_t bytes, ubyte dev, ubyte fnc)
Undocumented in source. Be warned that the author may not have intended to support it.
readCoils
const(BitArray) readCoils(ubyte dev, ushort start, ushort cnt)
Undocumented in source. Be warned that the author may not have intended to support it.
readDiscreteInputs
const(BitArray) readDiscreteInputs(ubyte dev, ushort start, ushort cnt)
Undocumented in source. Be warned that the author may not have intended to support it.
readHoldingRegisters
ushort[] readHoldingRegisters(ubyte dev, ushort start, ushort cnt)
Undocumented in source. Be warned that the author may not have intended to support it.
readInputRegisters
ushort[] readInputRegisters(ubyte dev, ushort start, ushort cnt)
Undocumented in source. Be warned that the author may not have intended to support it.
writeSingleCoil
void writeSingleCoil(ubyte dev, ushort addr, bool val)
Undocumented in source. Be warned that the author may not have intended to support it.
writeSingleRegister
void writeSingleRegister(ubyte dev, ushort addr, ushort value)
Undocumented in source. Be warned that the author may not have intended to support it.
writeMultipleRegisters
void writeMultipleRegisters(ubyte dev, ushort addr, ushort[] values)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta