Module capsules_extra::ieee802154::device

source ·
Expand description

The contract satisfied by an implementation of an IEEE 802.15.4 MAC device. Any IEEE 802.15.4 MAC device should expose the following high-level functionality:

  • Configuration of addresses and transmit power
  • Preparing frames (data frame, command frames, beacon frames)
  • Transmitting and receiving frames

Outlining this in a trait allows other implementations of MAC devices that divide the responsibilities of software and hardware differently. For example, a radio chip might be able to completely inline the frame security procedure in hardware, as opposed to requiring a software implementation.

Traits§

  • Trait to be implemented by users of the IEEE 802.15.4 device that wish to receive frames. The callback is triggered whenever a valid frame is received, verified and unsecured (via the IEEE 802.15.4 security procedure) successfully.
  • Trait to be implemented by any user of the IEEE 802.15.4 device that transmits frames. Contains a callback through which the static mutable reference to the frame buffer is returned to the client.