zigbee-core 0.1.0

Core Zigbee layers in `no-std` — NWK, APS, security and ZDO; the implementation behind the `zigbee` crate
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use zigbee_macros::impl_byte;
use zigbee_types::ShortAddress;
use zigbee_types::TypeArrayCtx;
use zigbee_types::TypeArrayRef;

impl_byte! {
    /// Route Record Command Frame
    #[derive(Debug, Clone)]
    pub struct RouteRecord<'a> {
        pub relay_count: u8,
        #[ctx = TypeArrayCtx::Len(usize::from(relay_count))]
        #[ctx_write = ()]
        pub relay_list: TypeArrayRef<'a, ShortAddress>,
    }
}