npr::protocol namespace

Namespaces

namespace nack_reason
Known CONNECT_NACK reason codes.
namespace proto_id
NPR protocol ids carried in decoded payload byte 0.
namespace segmenter
Helpers/constants for segmenter byte format used by NPR IPv4 segmentation.
namespace signaling_type
TLV type ids for signaling frame payload.
namespace tdma
Bit masks for TDMA byte fields.

Functions

auto reassembly_index_for_client_id(const uint8_t client_id) -> size_t constexpr
Maps source client id to reassembly context index.

Variables

uint8_t kBroadcastClientId constexpr
Broadcast client id.
uint8_t kClientIdMask constexpr
NPR uses 7-bit IDs; MSB is reserved for parity in selected fields.
uint8_t kDiscoveryClientId constexpr
Reserved discovery client id used before assignment.
uint8_t kMaxConnectedClientId constexpr
Highest valid connected client id (0..6).
size_t kMaxNetworkNodes constexpr
Number of reassembly buckets (7 clients + master/other bucket).

Function documentation

size_t npr::protocol::reassembly_index_for_client_id(const uint8_t client_id) constexpr

Maps source client id to reassembly context index.

Connected ids 0..6 map directly; all other values map to master/other bucket.

Variable documentation

uint8_t npr::protocol::kBroadcastClientId constexpr

Broadcast client id.

uint8_t npr::protocol::kClientIdMask constexpr

NPR uses 7-bit IDs; MSB is reserved for parity in selected fields.

uint8_t npr::protocol::kDiscoveryClientId constexpr

Reserved discovery client id used before assignment.

uint8_t npr::protocol::kMaxConnectedClientId constexpr

Highest valid connected client id (0..6).

size_t npr::protocol::kMaxNetworkNodes constexpr

Number of reassembly buckets (7 clients + master/other bucket).