31#ifndef _MODBUS_DEBUG_H
32#define _MODBUS_DEBUG_H
44error_t modbusDumpRequestPdu(
const void *pdu,
size_t length);
45error_t modbusDumpResponsePdu(
const void *pdu,
size_t length);
47error_t modbusDumpReadCoilsReq(
const ModbusReadCoilsReq *request,
50error_t modbusDumpReadCoilsResp(
const ModbusReadCoilsResp *response,
53error_t modbusDumpReadDiscreteInputsReq(
const ModbusReadDiscreteInputsReq *request,
56error_t modbusDumpReadDiscreteInputsResp(
const ModbusReadDiscreteInputsResp *response,
59error_t modbusDumpReadHoldingRegsReq(
const ModbusReadHoldingRegsReq *request,
62error_t modbusDumpReadHoldingRegsResp(
const ModbusReadHoldingRegsResp *response,
65error_t modbusDumpReadInputRegsReq(
const ModbusReadInputRegsReq *request,
68error_t modbusDumpReadInputRegsResp(
const ModbusReadInputRegsResp *response,
71error_t modbusDumpWriteSingleCoilReq(
const ModbusWriteSingleCoilReq *request,
74error_t modbusDumpWriteSingleCoilResp(
const ModbusWriteSingleCoilResp *response,
77error_t modbusDumpWriteSingleRegReq(
const ModbusWriteSingleRegReq *request,
80error_t modbusDumpWriteSingleRegResp(
const ModbusWriteSingleRegResp *response,
83error_t modbusDumpWriteMultipleCoilsReq(
const ModbusWriteMultipleCoilsReq *request,
86error_t modbusDumpWriteMultipleCoilsResp(
const ModbusWriteMultipleCoilsResp *response,
89error_t modbusDumpWriteMultipleRegsReq(
const ModbusWriteMultipleRegsReq *request,
92error_t modbusDumpWriteMultipleRegsResp(
const ModbusWriteMultipleRegsResp *response,
95error_t modbusDumpMaskWriteRegReq(
const ModbusMaskWriteRegReq *request,
98error_t modbusDumpMaskWriteRegResp(
const ModbusMaskWriteRegResp *response,
101error_t modbusDumpReadWriteMultipleRegsReq(
const ModbusReadWriteMultipleRegsReq *request,
104error_t modbusDumpReadWriteMultipleRegsResp(
const ModbusReadWriteMultipleRegsResp *response,
107error_t modbusDumpExceptionResp(
const ModbusExceptionResp *response,
error_t
Error codes.
Definition error.h:43
Definitions common to Modbus/TCP client and server.