wireless/ieee802154: Bind MAC phyif to radio

This commit is contained in:
Anthony Merlino
2017-04-15 13:44:15 -04:00
parent 16edc77965
commit 2bc758c3eb
2 changed files with 28 additions and 2 deletions
@@ -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,