Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
|
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 |
Frame struct used internally and for raw ADU support.
uint16_t modbus_adu::crc |
RTU CRC
uint8_t modbus_adu::data[CONFIG_MODBUS_BUFFER_SIZE - 4] |
Transaction Data
uint8_t modbus_adu::fc |
Function Code
uint16_t modbus_adu::length |
Length of the data only (not the length of unit ID + PDU)
uint16_t modbus_adu::proto_id |
Protocol Identifier
uint16_t modbus_adu::trans_id |
Transaction Identifier
uint8_t modbus_adu::unit_id |
Unit Identifier