wireless/ieee802154: Starts structuring transmission completion handling

This commit is contained in:
Anthony Merlino
2017-04-19 16:34:34 -04:00
parent ec5b0a0ef3
commit 1abe4ae4da
4 changed files with 196 additions and 84 deletions
@@ -164,6 +164,9 @@ struct ieee802154_txdesc_s
uint16_t psdu_length; /* The length of the PSDU */
uint8_t status; /* The status of the transaction. This is set by the
* radio layer prior to calling txdone_csma */
/* TODO: Add slotting information for GTS transactions */
};
@@ -173,6 +176,10 @@ struct ieee802154_radiocb_s
FAR struct ieee802154_txdesc_s *tx_desc, FAR uint8_t *buf);
CODE int (*poll_gts) (FAR struct ieee802154_radiocb_s *radiocb,
FAR struct ieee802154_txdesc_s *tx_desc, FAR uint8_t *buf);
CODE int (*txdone_csma) (FAR struct ieee802154_radiocb_s *radiocb,
FAR struct ieee802154_txdesc_s tx_desc);
CODE int (*txdone_gts) (FAR struct ieee802154_radiocb_s *radiocb,
FAR struct ieee802154_txdesc_s tx_desc);
};
struct ieee802154_radio_s; /* Forward reference */