Trait capsules_extra::ieee802154::framer::DeviceProcedure

source ·
pub trait DeviceProcedure {
    // Required method
    fn lookup_addr_long(&self, addr: MacAddress) -> Option<[u8; 8]>;
}
Expand description

IEEE 802.15.4-2015, 9.2.5, DeviceDescriptor lookup procedure. Trait to be implemented by an upper layer that manages the list of 802.15.4 device descriptors. This trait interface enables the lookup procedure to be implemented either explicitly (managing a list of DeviceDescriptors) or implicitly with some equivalent logic.

Required Methods§

source

fn lookup_addr_long(&self, addr: MacAddress) -> Option<[u8; 8]>

Look up the extended MAC address of a device given either its short or long address. As defined in the IEEE 802.15.4 spec, even if the provided address is already long, a long address should be returned only if the given address matches a known DeviceDescriptor.

Implementors§

source§

impl<'a, A: Alarm<'a>> DeviceProcedure for ThreadNetworkDriver<'a, A>

source§

impl<'a, M: MacDevice<'a>> DeviceProcedure for RadioDriver<'a, M>