Skip to main content

Module response

Module response 

Source
Expand description

§Modbus FIFO Queue Response Handling

This module provides the logic for parsing and dispatching responses related to Modbus Read FIFO Queue (Function Code 0x18).

§Responsibilities

  • Parsing: Validates PDU structure, function codes, and byte counts for FIFO responses.
  • De-encapsulation: Extracts the 16-bit register values from the Modbus PDU.
  • Dispatching: Routes the parsed data to the application layer via the FifoQueueResponse trait.

§Architecture

  • ResponseParser: Contains low-level logic to transform raw PDU bytes into a list of register values.
  • ClientServices implementation: Orchestrates the high-level handling, converting the PDU into a FifoQueue model and triggering the application callback.