#include "modbus.h"
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_t * | modbus_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) |
#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.
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.