liblightmodbus 3.0
A lightweight, header-only, hardware-agnostic Modbus RTU/TCP library
|
Stores a Modbus frame. More...
#include <base.h>
Data Fields | |
ModbusAllocator | allocator |
Pointer to the allocator function. | |
uint8_t * | data |
Pointer to the frame buffer. | |
uint8_t * | pdu |
A pointer to the PDU section of the frame. | |
uint16_t | length |
Length of the entire frame (PDU size + padding) | |
uint8_t | padding |
Number of extra bytes surrounding the PDU. | |
uint8_t | pduOffset |
PDU offset relative to the beginning of the frame. | |
Stores a Modbus frame.
ModbusAllocator ModbusBuffer::allocator |
Pointer to the allocator function.
uint8_t* ModbusBuffer::data |
Pointer to the frame buffer.
uint16_t ModbusBuffer::length |
Length of the entire frame (PDU size + padding)
uint8_t ModbusBuffer::padding |
Number of extra bytes surrounding the PDU.
uint8_t* ModbusBuffer::pdu |
A pointer to the PDU section of the frame.
uint8_t ModbusBuffer::pduOffset |
PDU offset relative to the beginning of the frame.