liblightmodbus 3.0
A lightweight, header-only, hardware-agnostic Modbus RTU/TCP library
Loading...
Searching...
No Matches
ModbusBuffer Struct Reference

Stores a Modbus frame. More...

#include <base.h>

+ Collaboration diagram for ModbusBuffer:

Data Fields

ModbusAllocator allocator
 Pointer to the allocator function.
 
uint8_tdata
 Pointer to the frame buffer.
 
uint8_tpdu
 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.
 

Detailed Description

Field Documentation

◆ allocator

ModbusAllocator ModbusBuffer::allocator

Pointer to the allocator function.

◆ data

uint8_t* ModbusBuffer::data

Pointer to the frame buffer.

◆ length

uint16_t ModbusBuffer::length

Length of the entire frame (PDU size + padding)

◆ padding

uint8_t ModbusBuffer::padding

Number of extra bytes surrounding the PDU.

◆ pdu

uint8_t* ModbusBuffer::pdu

A pointer to the PDU section of the frame.

◆ pduOffset

uint8_t ModbusBuffer::pduOffset

PDU offset relative to the beginning of the frame.


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