Modbus

Undocumented in source.

Constructors

this
this(Backend be)
Undocumented in source.

Members

Functions

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.
write
void write(ubyte dev, ubyte func, Args args)
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.
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.

Interfaces

Backend
interface Backend
Undocumented in source.

Variables

be
Backend be;
Undocumented in source.
needCheckCRC
bool needCheckCRC;
Undocumented in source.

Meta