BaseBackend

Basic functionality of Modbus.Backend

Constructors

this
this(Connection c, SpecRules s, size_t serviceData, size_t deviceOffset)

Members

Functions

append
void append(byte v)
Undocumented in source. Be warned that the author may not have intended to support it.
append
void append(short v)
Undocumented in source. Be warned that the author may not have intended to support it.
append
void append(int v)
Undocumented in source. Be warned that the author may not have intended to support it.
append
void append(long v)
Undocumented in source. Be warned that the author may not have intended to support it.
append
void append(float v)
Undocumented in source. Be warned that the author may not have intended to support it.
append
void append(double v)
Undocumented in source. Be warned that the author may not have intended to support it.
append
void append(const(void)[] v)
Undocumented in source. Be warned that the author may not have intended to support it.
appendDF
void appendDF(ulong dev, ubyte fnc)
Undocumented in source. Be warned that the author may not have intended to support it.
baseRead
Response baseRead(size_t expectedBytes, bool allocateOnlyExpected)
Undocumented in source. Be warned that the author may not have intended to support it.
messageComplite
bool messageComplite()
Undocumented in source. Be warned that the author may not have intended to support it.
read
Response read(size_t expectedBytes)
Undocumented in source.
send
void send()
Undocumented in source.
start
void start(ulong dev, ubyte func)
Undocumented in source.
tempBuffer
const(void)[] tempBuffer()
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

functionTypeSize
enum functionTypeSize;
Undocumented in source.

Variables

buffer
ubyte[BUFFER_SIZE] buffer;
Undocumented in source.
conn
Connection conn;
Undocumented in source.
devOffset
size_t devOffset;
Undocumented in source.
idx
size_t idx;
Undocumented in source.
minimumMsgLength
size_t minimumMsgLength;
Undocumented in source.
serviceData
size_t serviceData;
Undocumented in source.
sr
SpecRules sr;
Undocumented in source.

Inherited Members

From Backend

start
void start(ulong dev, ubyte func)

start building message

append
void append(byte )
void append(short )
void append(int )
void append(long )
void append(float )
void append(double )
void append(const(void)[] )

append data to message buffer

messageComplite
bool messageComplite()
tempBuffer
const(void)[] tempBuffer()

temp message buffer

send
void send()

send and clear temp message

Response
struct Response

Readed modbus response

read
Response read(size_t expectedBytes)

Read data to temp message buffer

Parameters

BUFFER_SIZE

static size of message buffer

Meta