Skip to main content

Module segmentation

Module segmentation 

Source
Expand description

Segmentation: split and reassemble large APDU payloads.

Per ASHRAE 135-2020 Clause 9, segmented messages use 8-bit sequence numbers with windowed flow control. This module provides the basic payload splitting and reassembly primitives.

Structs§

SegmentReceiver
Collects received segments for reassembly.

Enums§

SegmentedPduType
PDU types that affect segmentation overhead calculation.

Functions§

max_segment_payload
Compute the maximum service data payload per segment.
split_payload
Split a payload into segments of at most max_segment_size bytes.