Loading...
Searching...
No Matches
ieee802154_submac_cb_t Struct Reference

IEEE 802.15.4 SubMAC callbacks. More...

Detailed Description

IEEE 802.15.4 SubMAC callbacks.

Definition at line 129 of file submac.h.

#include <submac.h>

Data Fields

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

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 143 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 156 of file submac.h.


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