Zephyr API 3.6.99
Loading...
Searching...
No Matches
modbus_adu Struct Reference

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

#include <modbus.h>

Data Fields

uint16_t trans_id
 Transaction Identifier.
 
uint16_t proto_id
 Protocol Identifier.
 
uint16_t length
 Length of the data only (not the length of unit ID + PDU)
 
uint8_t unit_id
 Unit Identifier.
 
uint8_t fc
 Function Code.
 
uint8_t data [CONFIG_MODBUS_BUFFER_SIZE - 4]
 Transaction Data.
 
uint16_t crc
 RTU 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: