zigbee_core/zdo/config/mod.rs
1/// zigbee configuration
2#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)]
3pub struct Config {
4 /// The radio channel to operate on
5 pub radio_channel: u8,
6 /// Discovery type
7 pub device_discovery_type: DiscoveryType,
8 /// The device class
9 pub device_type: crate::apl::descriptors::node_descriptor::LogicalType,
10}
11
12/// Discovery Type
13#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)]
14pub enum DiscoveryType {
15 #[default]
16 /// The IEEE address request is unicast to a particular device and assumes
17 /// the NWK address is known.
18 IEEE,
19 /// The NWK address request is broadcast and carries the known IEEE address
20 /// as data payload.
21 NWK,
22}