31#ifndef _MODBUS_SERVER_PDU_H
32#define _MODBUS_SERVER_PDU_H
44error_t modbusServerProcessRequest(ModbusClientConnection *connection);
46error_t modbusServerProcessReadCoilsReq(ModbusClientConnection *connection,
47 const ModbusReadCoilsReq *request,
size_t length);
49error_t modbusServerProcessReadDiscreteInputsReq(ModbusClientConnection *connection,
50 const ModbusReadDiscreteInputsReq *request,
size_t length);
52error_t modbusServerProcessReadHoldingRegsReq(ModbusClientConnection *connection,
53 const ModbusReadHoldingRegsReq *request,
size_t length);
55error_t modbusServerProcessReadInputRegsReq(ModbusClientConnection *connection,
56 const ModbusReadInputRegsReq *request,
size_t length);
58error_t modbusServerProcessWriteSingleCoilReq(ModbusClientConnection *connection,
59 const ModbusWriteSingleCoilReq *request,
size_t length);
61error_t modbusServerProcessWriteSingleRegReq(ModbusClientConnection *connection,
62 const ModbusWriteSingleRegReq *request,
size_t length);
64error_t modbusServerProcessWriteMultipleCoilsReq(ModbusClientConnection *connection,
65 const ModbusWriteMultipleCoilsReq *request,
size_t length);
67error_t modbusServerProcessWriteMultipleRegsReq(ModbusClientConnection *connection,
68 const ModbusWriteMultipleRegsReq *request,
size_t length);
70error_t modbusServerProcessMaskWriteRegReq(ModbusClientConnection *connection,
71 const ModbusMaskWriteRegReq *request,
size_t length);
73error_t modbusServerProcessReadWriteMultipleRegsReq(ModbusClientConnection *connection,
74 const ModbusReadWriteMultipleRegsReq *request,
size_t length);
76error_t modbusServerFormatExceptionResp(ModbusClientConnection *connection,
error_t
Error codes.
Definition error.h:43
ModbusExceptionCode
Modbus exception codes.
Definition modbus_common.h:103
ModbusFunctionCode
Modbus functions codes.
Definition modbus_common.h:75