capsules_extra::ieee802154

Module 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.
  • 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.