Skip to main content

Module apdu

Module apdu 

Source
Expand description

APDU encoding and decoding per ASHRAE 135-2020 Clause 20.1.

Covers all eight PDU types:

Structs§

AbortPdu
Abort PDU (Clause 20.1.9).
ComplexAck
ComplexACK PDU (Clause 20.1.5).
ConfirmedRequest
Confirmed-Request PDU (Clause 20.1.2).
ErrorPdu
Error PDU (Clause 20.1.7).
RejectPdu
Reject PDU (Clause 20.1.8).
SegmentAck
SegmentACK PDU (Clause 20.1.6).
SimpleAck
SimpleACK PDU (Clause 20.1.4).
UnconfirmedRequest
Unconfirmed-Request PDU (Clause 20.1.3).

Enums§

Apdu
Sum type for all APDU PDU types.

Constants§

MINIMUM_MESSAGE_SIZE
MinimumMessageSize: the smallest APDU any BACnet device accepts.

Functions§

advertised_max_segments
The segment count a configured max-segments-accepted actually promises a peer.
decode_apdu
Decode an APDU from raw bytes.
encode_apdu
Encode an APDU to wire format.
is_valid_max_apdu_length
Return true when value is one of the BACnet max-APDU-length encodings defined by ASHRAE 135-2020 Clause 20.1.2.5.
validate_max_apdu_length
Validate a locally configured max-APDU-length value.
validate_max_segments
Validate a configured maximum segment count for a Confirmed-Request header.