@@ -730,7 +730,7 @@ static int nrf5_stop(const struct device *dev)
730730 return 0 ;
731731}
732732
733- #if defined(CONFIG_NRF_802154_CARRIER_FUNCTIONS )
733+ #if defined(CONFIG_IEEE802154_CARRIER_FUNCTIONS )
734734static int nrf5_continuous_carrier (const struct device * dev )
735735{
736736 ARG_UNUSED (dev );
@@ -747,6 +747,23 @@ static int nrf5_continuous_carrier(const struct device *dev)
747747
748748 return 0 ;
749749}
750+
751+ static int nrf_modulated_carrier (const struct device * dev , const uint8_t * data )
752+ {
753+ ARG_UNUSED (dev );
754+
755+ nrf_802154_tx_power_set (nrf5_data .txpwr );
756+
757+ if (!nrf_802154_modulated_carrier (data )) {
758+ LOG_ERR ("Failed to enter modulated carrier state" );
759+ return - EIO ;
760+ }
761+
762+ LOG_DBG ("Modulated carrier wave transmission started (channel: %d)" ,
763+ nrf_802154_channel_get ());
764+
765+ return 0 ;
766+ }
750767#endif
751768
752769#if !defined(CONFIG_IEEE802154_NRF5_EXT_IRQ_MGMT )
@@ -1271,15 +1288,16 @@ static const struct ieee802154_radio_api nrf5_radio_api = {
12711288 .set_txpower = nrf5_set_txpower ,
12721289 .start = nrf5_start ,
12731290 .stop = nrf5_stop ,
1274- #if defined(CONFIG_NRF_802154_CARRIER_FUNCTIONS )
1291+ #if defined(CONFIG_IEEE802154_CARRIER_FUNCTIONS )
12751292 .continuous_carrier = nrf5_continuous_carrier ,
1293+ .modulated_carrier = nrf_modulated_carrier ,
12761294#endif
12771295 .tx = nrf5_tx ,
12781296 .ed_scan = nrf5_energy_scan_start ,
12791297 .get_time = nrf5_get_time ,
12801298 .get_sch_acc = nrf5_get_acc ,
12811299 .configure = nrf5_configure ,
1282- .attr_get = nrf5_attr_get
1300+ .attr_get = nrf5_attr_get ,
12831301};
12841302
12851303#if defined(CONFIG_NET_L2_IEEE802154 )
0 commit comments