Expand description
§Modbus FIFO Queue Models
This module provides the data structures and logic for handling Read FIFO Queue (Function Code 0x18).
A FIFO (First-In-First-Out) queue in Modbus is a specialized structure where a set of registers can be read from a single pointer address. This is often used for data logging or buffering where multiple data points are collected and read in bulk.
§Key Features
- Fixed-Size Storage: Uses a fixed-size array to store up to 31 registers, aligning with the Modbus protocol limits.
- no_std Compatible: Designed for embedded systems without heap allocation.
- Safe Access: Provides a clean API to retrieve the pointer address and the sequence of register values.
Structs§
- Fifo
Queue - A collection of register values retrieved from a Modbus FIFO queue.
Constants§
- MAX_
FIFO_ QUEUE_ COUNT_ PER_ PDU - The maximum number of 16-bit registers that can be returned in a single Read FIFO Queue (FC 24) response.