mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 09:18:00 +08:00
wireless/ieee802154: Reworks data_ind allocation to include IOB allocation/deallocation. Hides private data.
This commit is contained in:
@@ -480,12 +480,6 @@ struct ieee802154_txdesc_s
|
||||
/* TODO: Add slotting information for GTS transactions */
|
||||
};
|
||||
|
||||
struct ieee802154_rxdesc_s
|
||||
{
|
||||
uint8_t lqi;
|
||||
uint8_t rssi;
|
||||
};
|
||||
|
||||
struct ieee802154_cca_s
|
||||
{
|
||||
uint8_t use_ed : 1; /* CCA using ED */
|
||||
@@ -645,11 +639,13 @@ struct ieee802154_data_ind_s
|
||||
{
|
||||
FAR struct ieee802154_data_ind_s *flink;
|
||||
|
||||
FAR struct iob_s *frame;
|
||||
|
||||
struct ieee802154_addr_s src; /* Source addressing information */
|
||||
struct ieee802154_addr_s dest; /* Destination addressing infromation */
|
||||
uint8_t lqi; /* Link Quality Index */
|
||||
uint8_t rssi; /* Non-standard field */
|
||||
uint8_t dsn; /* Data Sequence Number */
|
||||
uint8_t pool; /* Memory pool (Needed for deallocation) */
|
||||
uint32_t timestamp; /* Time of received frame */
|
||||
|
||||
#ifdef CONFIG_IEEE802154_SECURITY
|
||||
|
||||
@@ -71,8 +71,7 @@ struct ieee802154_radiocb_s
|
||||
CODE void (*txdone) (FAR const struct ieee802154_radiocb_s *radiocb,
|
||||
FAR const struct ieee802154_txdesc_s *tx_desc);
|
||||
CODE void (*rxframe) (FAR const struct ieee802154_radiocb_s *radiocb,
|
||||
FAR const struct ieee802154_rxdesc_s *rx_desc,
|
||||
FAR struct iob_s *frame);
|
||||
FAR struct ieee802154_data_ind_s *ind);
|
||||
};
|
||||
|
||||
struct ieee802154_radio_s; /* Forward reference */
|
||||
|
||||
Reference in New Issue
Block a user