mikroSDK Reference Manual
modbus_debug.h
Go to the documentation of this file.
1
31#ifndef _MODBUS_DEBUG_H
32#define _MODBUS_DEBUG_H
33
34//Dependencies
35#include "core/net.h"
37
38//C++ guard
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43//Modbus/TCP related functions
44error_t modbusDumpRequestPdu(const void *pdu, size_t length);
45error_t modbusDumpResponsePdu(const void *pdu, size_t length);
46
47error_t modbusDumpReadCoilsReq(const ModbusReadCoilsReq *request,
48 size_t length);
49
50error_t modbusDumpReadCoilsResp(const ModbusReadCoilsResp *response,
51 size_t length);
52
53error_t modbusDumpReadDiscreteInputsReq(const ModbusReadDiscreteInputsReq *request,
54 size_t length);
55
56error_t modbusDumpReadDiscreteInputsResp(const ModbusReadDiscreteInputsResp *response,
57 size_t length);
58
59error_t modbusDumpReadHoldingRegsReq(const ModbusReadHoldingRegsReq *request,
60 size_t length);
61
62error_t modbusDumpReadHoldingRegsResp(const ModbusReadHoldingRegsResp *response,
63 size_t length);
64
65error_t modbusDumpReadInputRegsReq(const ModbusReadInputRegsReq *request,
66 size_t length);
67
68error_t modbusDumpReadInputRegsResp(const ModbusReadInputRegsResp *response,
69 size_t length);
70
71error_t modbusDumpWriteSingleCoilReq(const ModbusWriteSingleCoilReq *request,
72 size_t length);
73
74error_t modbusDumpWriteSingleCoilResp(const ModbusWriteSingleCoilResp *response,
75 size_t length);
76
77error_t modbusDumpWriteSingleRegReq(const ModbusWriteSingleRegReq *request,
78 size_t length);
79
80error_t modbusDumpWriteSingleRegResp(const ModbusWriteSingleRegResp *response,
81 size_t length);
82
83error_t modbusDumpWriteMultipleCoilsReq(const ModbusWriteMultipleCoilsReq *request,
84 size_t length);
85
86error_t modbusDumpWriteMultipleCoilsResp(const ModbusWriteMultipleCoilsResp *response,
87 size_t length);
88
89error_t modbusDumpWriteMultipleRegsReq(const ModbusWriteMultipleRegsReq *request,
90 size_t length);
91
92error_t modbusDumpWriteMultipleRegsResp(const ModbusWriteMultipleRegsResp *response,
93 size_t length);
94
95error_t modbusDumpMaskWriteRegReq(const ModbusMaskWriteRegReq *request,
96 size_t length);
97
98error_t modbusDumpMaskWriteRegResp(const ModbusMaskWriteRegResp *response,
99 size_t length);
100
101error_t modbusDumpReadWriteMultipleRegsReq(const ModbusReadWriteMultipleRegsReq *request,
102 size_t length);
103
104error_t modbusDumpReadWriteMultipleRegsResp(const ModbusReadWriteMultipleRegsResp *response,
105 size_t length);
106
107error_t modbusDumpExceptionResp(const ModbusExceptionResp *response,
108 size_t length);
109
110//C++ guard
111#ifdef __cplusplus
112}
113#endif
114
115#endif
error_t
Error codes.
Definition error.h:43
Definitions common to Modbus/TCP client and server.
TCP/IP stack core.