openthread/ot/types/
mod.rsmod backbone_router_multicast_listener_event;
mod backbone_router_multicast_listener_info;
mod border_router_config;
mod border_routing_counters;
mod castable;
mod channel_mask;
mod device_role;
mod dnssd_counters;
mod ext_address;
mod extended_pan_id;
mod external_route_config;
mod ip_counters;
mod ipv6;
mod leader_data;
mod link_metrics;
mod link_mode;
mod log_region;
mod mac_counters;
mod nat64;
mod neighbor_info;
mod network_key;
mod network_name;
mod operational_dataset;
mod packets_and_bytes;
mod radio_coex_metrics;
mod radio_region;
mod resolver;
mod route_preference;
mod router_info;
mod scan_results;
mod security_policy;
mod srp_server_lease_info;
mod srp_server_response_counters;
mod timestamp;
mod tlv;
mod trel;
use crate::prelude_internal::*;
pub use backbone_router_multicast_listener_event::*;
pub use backbone_router_multicast_listener_info::*;
pub use border_router_config::*;
pub use border_routing_counters::*;
pub use castable::*;
pub use channel_mask::*;
pub use device_role::*;
pub use dnssd_counters::*;
pub use ext_address::*;
pub use extended_pan_id::*;
pub use external_route_config::*;
pub use ip_counters::*;
pub use ipv6::*;
pub use leader_data::*;
pub use link_metrics::*;
pub use link_mode::*;
pub use log_region::*;
pub use mac_counters::*;
pub use nat64::*;
pub use neighbor_info::*;
pub use network_key::*;
pub use network_name::*;
pub use operational_dataset::*;
pub use packets_and_bytes::*;
pub use radio_coex_metrics::*;
pub use radio_region::*;
pub use resolver::*;
pub use route_preference::*;
pub use router_info::*;
pub use scan_results::*;
pub use security_policy::*;
pub use srp_server_lease_info::*;
pub use srp_server_response_counters::*;
pub use timestamp::*;
pub use tlv::*;
pub use trel::*;
pub type PanId = otPanId;
pub type ShortAddress = otShortAddress;
pub type Decibels = i8;
pub type ChannelIndex = u8;
pub type MeshLocalPrefix = Ip6NetworkPrefix;
pub type NetifIndex = u32;
pub const NETIF_INDEX_UNSPECIFIED: NetifIndex = 0;
pub const DECIBELS_UNSPECIFIED: Decibels = -128;
pub const MAX_CHILD_ID: u16 = 0x1FF;
pub const ROUTER_ID_OFFSET: usize = 9;
pub fn rloc16_to_child_id(rloc16: u16) -> u16 {
rloc16 & MAX_CHILD_ID
}
pub fn rloc16_to_router_id(rloc16: u16) -> u8 {
(rloc16 >> ROUTER_ID_OFFSET) as u8
}