Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
modbus_adu Struct Reference

Frame struct used internally and for raw ADU support. More...

#include <modbus.h>

Data Fields

uint16_t trans_id
 
uint16_t proto_id
 
uint16_t length
 
uint8_t unit_id
 
uint8_t fc
 
uint8_t data [CONFIG_MODBUS_BUFFER_SIZE - 4]
 
uint16_t crc
 

Detailed Description

Frame struct used internally and for raw ADU support.

Field Documentation

◆ crc

uint16_t modbus_adu::crc

RTU CRC

◆ data

uint8_t modbus_adu::data[CONFIG_MODBUS_BUFFER_SIZE - 4]

Transaction Data

◆ fc

uint8_t modbus_adu::fc

Function Code

◆ length

uint16_t modbus_adu::length

Length of the data only (not the length of unit ID + PDU)

◆ proto_id

uint16_t modbus_adu::proto_id

Protocol Identifier

◆ trans_id

uint16_t modbus_adu::trans_id

Transaction Identifier

◆ unit_id

uint8_t modbus_adu::unit_id

Unit Identifier


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