Macros | Functions
modbus-rtu.h File Reference
#include "modbus.h"
Include dependency graph for modbus-rtu.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MODBUS_RTU_MAX_ADU_LENGTH   256
 
#define MODBUS_RTU_RS232   0
 
#define MODBUS_RTU_RS485   1
 

Functions

modbus_tmodbus_new_rtu (const char *device, int baud, char parity, int data_bit, int stop_bit)
 
int modbus_rtu_get_serial_mode (modbus_t *ctx)
 
int modbus_rtu_set_serial_mode (modbus_t *ctx, int mode)
 

Macro Definition Documentation

#define MODBUS_RTU_MAX_ADU_LENGTH   256

Definition at line 29 of file modbus-rtu.h.

#define MODBUS_RTU_RS232   0

Definition at line 34 of file modbus-rtu.h.

#define MODBUS_RTU_RS485   1

Definition at line 35 of file modbus-rtu.h.

Function Documentation

modbus_t* modbus_new_rtu ( const char *  device,
int  baud,
char  parity,
int  data_bit,
int  stop_bit 
)

Definition at line 917 of file modbus-rtu.c.

int modbus_rtu_get_serial_mode ( modbus_t ctx)

Definition at line 793 of file modbus-rtu.c.

int modbus_rtu_set_serial_mode ( modbus_t ctx,
int  mode 
)

Definition at line 745 of file modbus-rtu.c.



libmodbus
Author(s):
autogenerated on Sat Nov 21 2020 03:17:32