modbus_server_misc.h
error_t modbusServerWriteCoil(ModbusClientConnection *connection, uint16_t address, bool_t state, bool_t commit)
Write a single coil.
Definition: modbus_server_misc.c:625
void modbusServerRegisterConnectionEvents(ModbusClientConnection *connection, SocketEventDesc *eventDesc)
Register connection events.
Definition: modbus_server_misc.c:103
error_t modbusServerReadInputReg(ModbusClientConnection *connection, uint16_t address, uint16_t *value)
Read a single input register.
Definition: modbus_server_misc.c:701
error_t modbusServerReadDiscreteInput(ModbusClientConnection *connection, uint16_t address, bool_t *state)
Read a single discrete input.
Definition: modbus_server_misc.c:582
void modbusServerLock(ModbusClientConnection *connection)
Lock Modbus table.
Definition: modbus_server_misc.c:502
void * modbusServerGetRequestPdu(ModbusClientConnection *connection, size_t *length)
Retrieve request PDU.
Definition: modbus_server_misc.c:461
error_t modbusServerWriteReg(ModbusClientConnection *connection, uint16_t address, uint16_t value, bool_t commit)
Write a single register.
Definition: modbus_server_misc.c:744
Modbus/TCP server.
error_t modbusServerFormatMbapHeader(ModbusClientConnection *connection, size_t length)
Format response MBAP header.
Definition: modbus_server_misc.c:410
error_t modbusServerParseMbapHeader(ModbusClientConnection *connection)
Parse request MBAP header.
Definition: modbus_server_misc.c:352
error_t modbusServerReadCoil(ModbusClientConnection *connection, uint16_t address, bool_t *state)
Read a single coil.
Definition: modbus_server_misc.c:547
ModbusExceptionCode modbusServerTranslateExceptionCode(error_t status)
Translate exception code.
Definition: modbus_server_misc.c:777
error_t modbusServerReadHoldingReg(ModbusClientConnection *connection, uint16_t address, uint16_t *value)
Read a single holding register.
Definition: modbus_server_misc.c:660
TCP/IP stack core.
void modbusServerTick(ModbusServerContext *context)
Handle periodic operations.
Definition: modbus_server_misc.c:51
void * modbusServerGetResponsePdu(ModbusClientConnection *connection)
Retrieve response PDU.
Definition: modbus_server_misc.c:490
void modbusServerProcessConnectionEvents(ModbusClientConnection *connection)
Connection event handler.
Definition: modbus_server_misc.c:174
void modbusServerUnlock(ModbusClientConnection *connection)
Unlock Modbus table.
Definition: modbus_server_misc.c:523