npr::rf::frames::DecodedFrame struct final

Normalized decode result used by MAC processing.

Public variables

bool addressed_to_local
true when frame is addressed to local client.
std::array<uint8_t, 384u> decoded
Decoded payload bytes (without on-air FEC envelope).
size_t decoded_size
Valid size in decoded.
bool is_downlink
true when source frame direction bit marks downlink.
bool keep_for_observation
true when frame should be kept for diagnostics/observation even if not addressed.
FrameKind kind
Parsed frame family.
uint8_t protocol_id
Protocol id from decoded payload byte 0.
uint8_t source_client_id
Source client id extracted from frame header.
uint8_t tdma_low5
Raw low-5 TDMA value.
bool top_flag
true when TDMA header carried the TOP/sync flag.

Variable documentation

uint8_t npr::rf::frames::DecodedFrame::tdma_low5

Raw low-5 TDMA value.

For uplink frames this is the sender-advertised buffer/demand state. For downlink frames this carries the master frame counter.