Agile Modbus  1.1.4
Lightweight modbus protocol stack.
agile_modbus Struct Reference

Agile Modbus structure. More...

#include <agile_modbus.h>

Collaboration diagram for agile_modbus:

Data Fields

int slave
 slave address More...
 
uint8_t * send_buf
 Send buffer. More...
 
int send_bufsz
 Send buffer size. More...
 
uint8_t * read_buf
 Receive buffer. More...
 
int read_bufsz
 Receive buffer size. More...
 
uint8_t(* compute_meta_length_after_function )(agile_modbus_t *ctx, int function, agile_modbus_msg_type_t msg_type)
 Customized calculation data element length interface. More...
 
int(* compute_data_length_after_meta )(agile_modbus_t *ctx, uint8_t *msg, int msg_length, agile_modbus_msg_type_t msg_type)
 Customized calculation data length interface. More...
 
const agile_modbus_backend_tbackend
 Backend interface. More...
 
void * backend_data
 Backend data, pointing to RTU or TCP structure. More...
 

Detailed Description

Agile Modbus structure.

Definition at line 217 of file agile_modbus.h.

Field Documentation

◆ slave

int agile_modbus::slave

slave address

Definition at line 218 of file agile_modbus.h.

◆ send_buf

uint8_t* agile_modbus::send_buf

Send buffer.

Definition at line 219 of file agile_modbus.h.

◆ send_bufsz

int agile_modbus::send_bufsz

Send buffer size.

Definition at line 220 of file agile_modbus.h.

◆ read_buf

uint8_t* agile_modbus::read_buf

Receive buffer.

Definition at line 221 of file agile_modbus.h.

◆ read_bufsz

int agile_modbus::read_bufsz

Receive buffer size.

Definition at line 222 of file agile_modbus.h.

◆ compute_meta_length_after_function

uint8_t(* agile_modbus::compute_meta_length_after_function) (agile_modbus_t *ctx, int function, agile_modbus_msg_type_t msg_type)

Customized calculation data element length interface.

Definition at line 223 of file agile_modbus.h.

◆ compute_data_length_after_meta

int(* agile_modbus::compute_data_length_after_meta) (agile_modbus_t *ctx, uint8_t *msg, int msg_length, agile_modbus_msg_type_t msg_type)

Customized calculation data length interface.

Definition at line 225 of file agile_modbus.h.

◆ backend

const agile_modbus_backend_t* agile_modbus::backend

Backend interface.

Definition at line 227 of file agile_modbus.h.

◆ backend_data

void* agile_modbus::backend_data

Backend data, pointing to RTU or TCP structure.

Definition at line 228 of file agile_modbus.h.


The documentation for this struct was generated from the following file: