mikroSDK Reference Manual
modbus_client_misc.h
Go to the documentation of this file.
1
31#ifndef _MODBUS_CLIENT_MISC_H
32#define _MODBUS_CLIENT_MISC_H
33
34//Dependencies
35#include "core/net.h"
37
38//C++ guard
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43//Modbus/TCP client related functions
44error_t modbusClientTransaction(ModbusClientContext *context);
45error_t modbusClientCheckResp(ModbusClientContext *context);
46
47error_t modbusClientFormatMbapHeader(ModbusClientContext *context,
48 size_t length);
49
50error_t modbusClientParseMbapHeader(ModbusClientContext *context);
51
52void *modbusClientGetRequestPdu(ModbusClientContext *context);
53void *modbusClientGetResponsePdu(ModbusClientContext *context, size_t *length);
54
55error_t modbusClientCheckTimeout(ModbusClientContext *context);
56
57//C++ guard
58#ifdef __cplusplus
59}
60#endif
61
62#endif
error_t
Error codes.
Definition error.h:43
Modbus/TCP client.
TCP/IP stack core.