#include <stdint.h>
#include <sys/time.h>
#include <sys/types.h>
#include <libmodbus/config.h>
#include "libmodbus/modbus.h"
Go to the source code of this file.
Classes | |
struct | _modbus |
struct | _modbus_backend |
struct | _sft |
Macros | |
#define | _BYTE_TIMEOUT 500000 |
#define | _FC_READ_COILS 0x01 |
#define | _FC_READ_DISCRETE_INPUTS 0x02 |
#define | _FC_READ_EXCEPTION_STATUS 0x07 |
#define | _FC_READ_HOLDING_REGISTERS 0x03 |
#define | _FC_READ_INPUT_REGISTERS 0x04 |
#define | _FC_REPORT_SLAVE_ID 0x11 |
#define | _FC_WRITE_AND_READ_REGISTERS 0x17 |
#define | _FC_WRITE_MULTIPLE_COILS 0x0F |
#define | _FC_WRITE_MULTIPLE_REGISTERS 0x10 |
#define | _FC_WRITE_SINGLE_COIL 0x05 |
#define | _FC_WRITE_SINGLE_REGISTER 0x06 |
#define | _MIN_REQ_LENGTH 12 |
#define | _MODBUS_EXCEPTION_RSP_LENGTH 5 |
#define | _REPORT_SLAVE_ID 180 |
#define | _RESPONSE_TIMEOUT 500000 |
Typedefs | |
typedef struct _modbus_backend | modbus_backend_t |
typedef struct _sft | sft_t |
Enumerations | |
enum | modbus_bakend_type_t { _MODBUS_BACKEND_TYPE_RTU =0, _MODBUS_BACKEND_TYPE_TCP } |
Functions | |
void | _error_print (modbus_t *ctx, const char *context) |
void | _modbus_init_common (modbus_t *ctx) |
size_t | strlcpy (char *dest, const char *src, size_t dest_size) |
#define _BYTE_TIMEOUT 500000 |
Definition at line 52 of file modbus-private.h.
#define _FC_READ_COILS 0x01 |
Definition at line 55 of file modbus-private.h.
#define _FC_READ_DISCRETE_INPUTS 0x02 |
Definition at line 56 of file modbus-private.h.
#define _FC_READ_EXCEPTION_STATUS 0x07 |
Definition at line 61 of file modbus-private.h.
#define _FC_READ_HOLDING_REGISTERS 0x03 |
Definition at line 57 of file modbus-private.h.
#define _FC_READ_INPUT_REGISTERS 0x04 |
Definition at line 58 of file modbus-private.h.
#define _FC_REPORT_SLAVE_ID 0x11 |
Definition at line 64 of file modbus-private.h.
#define _FC_WRITE_AND_READ_REGISTERS 0x17 |
Definition at line 65 of file modbus-private.h.
#define _FC_WRITE_MULTIPLE_COILS 0x0F |
Definition at line 62 of file modbus-private.h.
#define _FC_WRITE_MULTIPLE_REGISTERS 0x10 |
Definition at line 63 of file modbus-private.h.
#define _FC_WRITE_SINGLE_COIL 0x05 |
Definition at line 59 of file modbus-private.h.
#define _FC_WRITE_SINGLE_REGISTER 0x06 |
Definition at line 60 of file modbus-private.h.
#define _MIN_REQ_LENGTH 12 |
Definition at line 44 of file modbus-private.h.
#define _MODBUS_EXCEPTION_RSP_LENGTH 5 |
Definition at line 48 of file modbus-private.h.
#define _REPORT_SLAVE_ID 180 |
Definition at line 46 of file modbus-private.h.
#define _RESPONSE_TIMEOUT 500000 |
Definition at line 51 of file modbus-private.h.
typedef struct _modbus_backend modbus_backend_t |
enum modbus_bakend_type_t |
Enumerator | |
---|---|
_MODBUS_BACKEND_TYPE_RTU | |
_MODBUS_BACKEND_TYPE_TCP |
Definition at line 67 of file modbus-private.h.