31#ifndef _MODBUS_CLIENT_TRANSPORT_H
32#define _MODBUS_CLIENT_TRANSPORT_H
44error_t modbusClientOpenConnection(ModbusClientContext *context);
46error_t modbusClientEstablishConnection(ModbusClientContext *context,
47 const IpAddr *serverIpAddr, uint16_t serverPort);
49error_t modbusClientShutdownConnection(ModbusClientContext *context);
50void modbusClientCloseConnection(ModbusClientContext *context);
52error_t modbusClientSendData(ModbusClientContext *context,
const void *data,
53 size_t length,
size_t *written, uint_t flags);
55error_t modbusClientReceiveData(ModbusClientContext *context,
void *data,
56 size_t size,
size_t *received, uint_t flags);
error_t
Error codes.
Definition error.h:43
IP network address.
Definition ip.h:72