GaIA BIOS Library
Loading...
Searching...
No Matches
modbus_tcp_platform.h File Reference

Modbus/TCP platform-dependent function prototypes. More...

#include <stdint.h>
#include <modbus_tcp/modbus_tcp.h>

Functions

int mb_prepare_and_send_packet (uintptr_t socket, mb_tcp_adu_t *adu)
 This function prepares a TCP packet containing the provided ADU, and sends it on the specified socket.

Detailed Description

Modbus/TCP platform-dependent function prototypes.

These functions normally have different implementations for a specific RTOS and TCP/IP library.

Author
Tecnologix, 2021

Function Documentation

◆ mb_prepare_and_send_packet()

int mb_prepare_and_send_packet ( uintptr_t socket,
mb_tcp_adu_t * adu )

This function prepares a TCP packet containing the provided ADU, and sends it on the specified socket.

Parameters
socketconnected socket.
aduModbus/TCP ADU to be sent.
Returns