ts_103_636_numbers/lib.rs
1//! <!--
2//! SPDX-FileCopyrightText: Copyright Christian Amsüss <chrysn@fsfe.org>, Silano Systems
3//! SPDX-License-Identifier: MIT OR Apache-2.0
4//! -->
5//! This crate contains numeric constants for ETSI TS 103-636 "DECT-2020 New Radio (NR)".
6//!
7//! This encompasses bitfield values from the specification itself as well as entries in the
8//! extensible [DECT-2020 NR Endpoint Multiplexing Address Allocation] mapping.
9//!
10//! This crate tries to strike a balance between not being opinionated in terms of types and being
11//! practical: It uses newtypes of the minimal suitable bit length to express constants, which
12//! provide Debug implementations that may include a lot of code (relying on dead code eliminiation
13//! to not weigh down users needlessly).
14//!
15//! [DECT-2020 NR Endpoint Multiplexing Address Allocation]: https://portal.etsi.org/PNNS/Protocol-Specification-Allocation/DECT-2020-NR-Endpoint-Multiplexing-Addresses
16#![no_std]
17
18pub mod endpoint_multiplexing;
19
20pub mod mac_ie;
21pub mod mac_pdu;
22
23/// Error used in fallible construction when bits that should have been masked as part of
24/// processing an incoming data structure are set, eg. when the MSB of an u8 is set when it gets
25/// passed into the constructor of a 6-bit long field's value.
26#[derive(Debug)]
27pub struct ExcessiveBitsSet;