mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 17:33:08 +08:00
wireless/ieee802154: Bind MAC phyif to radio
This commit is contained in:
@@ -172,9 +172,10 @@ struct ieee802154_trans_s
|
||||
uint8_t psdu[CONFIG_IEEE802154_MTU];
|
||||
};
|
||||
|
||||
struct ieee802154_radio_s; /* Forward reference */
|
||||
|
||||
struct ieee802154_phyif_s
|
||||
struct ieee802154_phyif_s; /* Forward Reference */
|
||||
|
||||
struct ieee802154_phyifops_s
|
||||
{
|
||||
CODE int (*poll_csma) (FAR struct ieee802154_phyif_s *phyif,
|
||||
FAR struct ieee802154_txdesc_s *tx_desc,
|
||||
@@ -183,12 +184,19 @@ struct ieee802154_phyif_s
|
||||
CODE int (*poll_gts) (FAR struct ieee802154_phyif_s *phyif,
|
||||
FAR struct ieee802154_txdesc_s *tx_desc,
|
||||
uint8_t *buf);
|
||||
};
|
||||
|
||||
struct ieee802154_phyif_s
|
||||
{
|
||||
FAR const struct ieee802154_phyifops_s *ops;
|
||||
|
||||
/* Driver-specific information */
|
||||
|
||||
void * priv;
|
||||
};
|
||||
|
||||
struct ieee802154_radio_s; /* Forward reference */
|
||||
|
||||
struct ieee802154_radioops_s
|
||||
{
|
||||
CODE int (*bind) (FAR struct ieee802154_radio_s *dev,
|
||||
|
||||
Reference in New Issue
Block a user