ieee802154_submac_cb_t Struct Reference

IEEE 802.15.4 SubMAC callbacks. More...

Detailed Description

IEEE 802.15.4 SubMAC callbacks.

Definition at line 131 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. Use ieee802154_read_frame and/or ieee802154_get_frame_length for this purpose.

The SubMAC will automatically go to IDLE.

Note
ACK frames are automatically handled and discarded by the SubMAC.
Parameters
[in]submacpointer to the SubMAC descriptor

Definition at line 145 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.

The SubMAC will automatically go to IDLE.

Parameters
[in]submacpointer to the SubMAC descriptor
[out]infoTX information associated to the transmission (status, number of retransmissions, pending bit, etc).

Definition at line 158 of file submac.h.


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