libsigrok  0.4.0
sigrok hardware access and backend library
Macros | Variables
modbus_serial_rtu.c File Reference
#include <config.h>
#include <glib.h>
#include <stdlib.h>
#include <string.h>
#include <libsigrok/libsigrok.h>
#include "libsigrok-internal.h"
+ Include dependency graph for modbus_serial_rtu.c:

Go to the source code of this file.


#define LOG_PREFIX   "modbus_serial"
#define BUFFER_SIZE   1024


SR_PRIV const struct sr_modbus_dev_inst modbus_serial_rtu_dev

Macro Definition Documentation

#define BUFFER_SIZE   1024

Definition at line 29 of file modbus_serial_rtu.c.

#define LOG_PREFIX   "modbus_serial"

Definition at line 27 of file modbus_serial_rtu.c.

Variable Documentation

SR_PRIV const struct sr_modbus_dev_inst modbus_serial_rtu_dev
Initial value:
= {
.name = "serial_rtu",
.prefix = "",
.priv_size = sizeof(struct modbus_serial_rtu),
.scan = NULL,
.dev_inst_new = modbus_serial_rtu_dev_inst_new,
.open = modbus_serial_rtu_open,
.source_add = modbus_serial_rtu_source_add,
.source_remove = modbus_serial_rtu_source_remove,
.send = modbus_serial_rtu_send,
.read_begin = modbus_serial_rtu_read_begin,
.read_data = modbus_serial_rtu_read_data,
.read_end = modbus_serial_rtu_read_end,
.close = modbus_serial_rtu_close,
.free = modbus_serial_rtu_free,

Definition at line 194 of file modbus_serial_rtu.c.