ieee802154_submac_cb_t Struct Reference

IEEE 802.15.4 SubMAC callbacks. More...

Detailed Description

IEEE 802.15.4 SubMAC callbacks.

Definition at line 72 of file submac.h.

#include <submac.h>

Data Fields

void(* rx_done )(ieee802154_submac_t *submac)
 RX done event. More...
 
void(* tx_done )(ieee802154_submac_t *submac, int status, ieee802154_tx_info_t *info)
 TX done event. More...
 

Field Documentation

◆ rx_done

void(* ieee802154_submac_cb_t::rx_done) (ieee802154_submac_t *submac)

RX done event.

This function is called from the SubMAC to indicate a IEEE 802.15.4 frame is ready to be fetched from the device.

Postcondition
If ieee802154_submac_t::state is IEEE802154_STATE_LISTEN, the SubMAC is ready to receive frames
Note
ACK frames are automatically handled and discarded by the SubMAC.
Parameters
[in]submacpointer to the SubMAC descriptor

Definition at line 85 of file submac.h.

◆ tx_done

void(* ieee802154_submac_cb_t::tx_done) (ieee802154_submac_t *submac, int status, ieee802154_tx_info_t *info)

TX done event.

This function is called from the SubMAC to indicate that the TX procedure finished.

Precondition
If ieee802154_submac_t::state is IEEE802154_STATE_LISTEN, the SubMAC is ready to receive frames.
Parameters
[in]submacpointer to the SubMAC descriptor
[out]infoTX information associated to the transmission (status, number of retransmissions, pending bit, etc).

Definition at line 99 of file submac.h.


The documentation for this struct was generated from the following file: