IEEE 802.15.4 SubMAC callbacks. More...
#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... | |
| 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.
| [in] | submac | pointer to the SubMAC descriptor | 
| 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.
| [in] | submac | pointer to the SubMAC descriptor | 
| [out] | info | TX information associated to the transmission (status, number of retransmissions, pending bit, etc). |