Module capsules::ieee802154::device [] [src]

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:

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.

Reexports

use ieee802154::framer::Frame;
use kernel::ReturnCode;
use net::ieee802154::Header;
use net::ieee802154::KeyId;
use net::ieee802154::MacAddress;
use net::ieee802154::PanID;
use net::ieee802154::SecurityLevel;

Traits

MacDevice
RxClient

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.

TxClient

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.