Module kernel::hil::radio

source ·
Expand description

Interface for sending and receiving IEEE 802.15.4 packets.

Hardware independent interface for an 802.15.4 radio. Note that configuration commands are asynchronous and must be committed with a call to config_commit. For example, calling set_address will change the source address of packets but does not change the address stored in hardware used for address recognition. This must be committed to hardware with a call to config_commit. Please see the relevant TRD for more details.

Enums§

Constants§

  • Length of the reserved space in the buffer for LQI information.
  • Required buffer size for implementations of this HIL.
  • Maximum length of a MAC frame.
  • Maximum length of a MAC frame.
  • Length of the MAC footer. Contains the CRC.
  • Length of the Frame Control field in the MAC header.
  • Minimum length of the MAC frame (except for acknowledgements). This is explained in Table 21 of the specification.
  • Location in the buffer of the physical layer header. This is the location of the Frame length byte.
  • Length of the physical layer header. This is the Frame length field.
  • Location in the buffer of the PSDU. This is equivalent to the start of the MAC payload.
  • Length of the reserved space in the buffer for a SPI command.

Traits§

  • Client for callbacks after the radio is configured.
  • Client for callbacks when the radio’s power state changes.
  • General Radio trait that supports configuration and TX/RX.
  • Configure the 802.15.4 radio.
  • Send and receive packets with the 802.15.4 radio.
  • Client for receiving packets.
  • Client trait for when sending a packet is finished.