mirror of
https://github.com/apache/nuttx.git
synced 2026-06-08 01:42:58 +08:00
wireless/ieee802154: Starts structuring transmission completion handling
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user