modbus_client_misc.c
void * modbusClientGetResponsePdu(ModbusClientContext *context, size_t *length)
Retrieve response PDU.
Definition: modbus_client_misc.c:389
Modbus/TCP client.
error_t modbusClientSendData(ModbusClientContext *context, const void *data, size_t length, size_t *written, uint_t flags)
Send data using the relevant transport protocol.
Definition: modbus_client_transport.c:236
error_t modbusClientCheckResp(ModbusClientContext *context)
Check whether the received response matches the request.
Definition: modbus_client_misc.c:211
error_t modbusDumpResponsePdu(const void *pdu, size_t length)
Dump Modbus response PDU for debugging purpose.
Definition: modbus_debug.c:212
error_t modbusClientParseExceptionResp(ModbusClientContext *context)
Parse Exception response.
Definition: modbus_client_pdu.c:869
error_t modbusClientFormatMbapHeader(ModbusClientContext *context, size_t length)
Format MBAP header.
Definition: modbus_client_misc.c:271
error_t modbusClientCheckTimeout(ModbusClientContext *context)
Determine whether a timeout error has occurred.
Definition: modbus_client_misc.c:417
Modbus PDU formatting and parsing.
Transport protocol abstraction layer.
Data logging functions for debugging purpose (Modbus/TCP)
void * modbusClientGetRequestPdu(ModbusClientContext *context)
Retrieve request PDU.
Definition: modbus_client_misc.c:375
error_t modbusClientParseMbapHeader(ModbusClientContext *context)
Parse MBAP header.
Definition: modbus_client_misc.c:320
error_t modbusClientReceiveData(ModbusClientContext *context, void *data, size_t size, size_t *received, uint_t flags)
Receive data using the relevant transport protocol.
Definition: modbus_client_transport.c:270
error_t socketSetTimeout(Socket *socket, systime_t timeout)
Set timeout value for blocking operations.
Definition: socket.c:148
Helper functions for Modbus/TCP client.
Debugging facilities.
error_t modbusClientTransaction(ModbusClientContext *context)
Perform Modbus transaction.
Definition: modbus_client_misc.c:52