Expand description
Segmentation: split and reassemble large APDU payloads.
Segmented messages carry 8-bit sequence numbers (ASHRAE 135-2020 Clause 5.2) and move under windowed flow control (Clause 5.3). This module provides the basic payload splitting and reassembly primitives.
Structs§
- Segment
Receiver - Collects received segments for reassembly.
Enums§
- Segmented
PduType - PDU types that affect segmentation overhead calculation.
Functions§
- duplicate_
in_ window - Return whether
sequence_numberis a duplicate in the current incomplete window. - max_
segment_ payload - Compute the maximum service data payload per segment.
- split_
payload - Split a payload into segments of at most
max_segment_sizebytes.