/Zephyr-Core-2.7.6/tests/net/ieee802154/l2/src/ |
D | ieee802154_fake_driver.c | 40 static int fake_set_txpower(const struct device *dev, int16_t dbm) in fake_set_txpower() argument 42 NET_INFO("TX power %d dbm\n", dbm); in fake_set_txpower()
|
/Zephyr-Core-2.7.6/drivers/ieee802154/ |
D | ieee802154_b91.c | 457 static int b91_set_txpower(const struct device *dev, int16_t dbm) in b91_set_txpower() argument 462 if (dbm < B91_TX_POWER_MIN) { in b91_set_txpower() 463 dbm = B91_TX_POWER_MIN; in b91_set_txpower() 464 } else if (dbm > B91_TX_POWER_MAX) { in b91_set_txpower() 465 dbm = B91_TX_POWER_MAX; in b91_set_txpower() 469 rf_set_power_level(b91_tx_pwr_lt[dbm - B91_TX_POWER_MIN]); in b91_set_txpower()
|
D | ieee802154_cc1200.c | 569 static int cc1200_set_txpower(const struct device *dev, int16_t dbm) in cc1200_set_txpower() argument 574 LOG_DBG("%d dbm", dbm); in cc1200_set_txpower() 577 dbm = ((dbm + 18) * 2) - 1; in cc1200_set_txpower() 578 if ((dbm <= 3) || (dbm >= 64)) { in cc1200_set_txpower() 584 pa_power_ramp |= ((uint8_t) dbm) & PA_POWER_RAMP_MASK; in cc1200_set_txpower()
|
D | ieee802154_kw41z.c | 448 static int kw41z_set_txpower(const struct device *dev, int16_t dbm) in kw41z_set_txpower() argument 450 if (dbm < KW41Z_OUTPUT_POWER_MIN) { in kw41z_set_txpower() 452 dbm, in kw41z_set_txpower() 455 dbm = KW41Z_OUTPUT_POWER_MIN; in kw41z_set_txpower() 456 } else if (dbm > KW41Z_OUTPUT_POWER_MAX) { in kw41z_set_txpower() 458 dbm, in kw41z_set_txpower() 461 dbm = KW41Z_OUTPUT_POWER_MAX; in kw41z_set_txpower() 464 ZLL->PA_PWR = pa_pwr_lt[dbm - KW41Z_OUTPUT_POWER_MIN]; in kw41z_set_txpower()
|
D | ieee802154_rf2xx.c | 410 static int rf2xx_set_txpower(const struct device *dev, int16_t dbm) in rf2xx_set_txpower() argument 412 if (dbm < RF2XX_OUTPUT_POWER_MIN) { in rf2xx_set_txpower() 414 dbm, in rf2xx_set_txpower() 417 dbm = RF2XX_OUTPUT_POWER_MIN; in rf2xx_set_txpower() 418 } else if (dbm > RF2XX_OUTPUT_POWER_MAX) { in rf2xx_set_txpower() 420 dbm, in rf2xx_set_txpower() 423 dbm = RF2XX_OUTPUT_POWER_MAX; in rf2xx_set_txpower() 427 phy_tx_pwr_lt[dbm - RF2XX_OUTPUT_POWER_MIN]); in rf2xx_set_txpower()
|
D | ieee802154_nrf5.c | 355 static int nrf5_set_txpower(const struct device *dev, int16_t dbm) in nrf5_set_txpower() argument 359 LOG_DBG("%d", dbm); in nrf5_set_txpower() 361 nrf_802154_tx_power_set(dbm); in nrf5_set_txpower() 1028 int16_t dbm; in nrf_802154_energy_detected() local 1032 dbm = nrf_802154_dbm_from_energy_level_calculate(result); in nrf_802154_energy_detected() 1033 callback(net_if_get_device(nrf5_data.iface), dbm); in nrf_802154_energy_detected()
|
D | Kconfig.cc1200 | 104 int "Value in dbm of the CCA threshold" 111 int "Value in dbm of the RSSI offset"
|
D | ieee802154_uart_pipe.c | 262 static int upipe_set_txpower(const struct device *dev, int16_t dbm) in upipe_set_txpower() argument 265 ARG_UNUSED(dbm); in upipe_set_txpower()
|
D | ieee802154_mcr20a.c | 1027 static int mcr20a_set_txpower(const struct device *dev, int16_t dbm) in mcr20a_set_txpower() argument 1033 LOG_DBG("%d", dbm); in mcr20a_set_txpower() 1035 if ((dbm > MCR20A_OUTPUT_POWER_MAX) || in mcr20a_set_txpower() 1036 (dbm < MCR20A_OUTPUT_POWER_MIN)) { in mcr20a_set_txpower() 1040 pwr = pow_lt[dbm - MCR20A_OUTPUT_POWER_MIN]; in mcr20a_set_txpower()
|
D | ieee802154_cc13xx_cc26xx.c | 252 int16_t dbm) in ieee802154_cc13xx_cc26xx_set_txpower() argument 262 (RF_TxPowerTable_Entry *)table, dbm); in ieee802154_cc13xx_cc26xx_set_txpower()
|
D | ieee802154_cc13xx_cc26xx_subg.c | 310 const struct device *dev, int16_t dbm) in ieee802154_cc13xx_cc26xx_subg_set_txpower() argument 316 (RF_TxPowerTable_Entry *)txPowerTable_sub_ghz, dbm); in ieee802154_cc13xx_cc26xx_subg_set_txpower()
|
D | ieee802154_cc2520.c | 746 static int cc2520_set_txpower(const struct device *dev, int16_t dbm) in cc2520_set_txpower() argument 751 LOG_DBG("%d", dbm); in cc2520_set_txpower() 754 switch (dbm) { in cc2520_set_txpower()
|
D | ieee802154_dw1000.c | 780 static int dwt_set_power(const struct device *dev, int16_t dbm) in dwt_set_power() argument
|
/Zephyr-Core-2.7.6/tests/subsys/openthread/ |
D | radio_test.c | 51 static int set_txpower_mock(const struct device *dev, int16_t dbm); 246 static int set_txpower_mock(const struct device *dev, int16_t dbm) in set_txpower_mock() argument 249 ztest_check_expected_value(dbm); in set_txpower_mock() 431 ztest_expect_value(set_txpower_mock, dbm, power); in test_tx_test() 444 ztest_expect_value(set_txpower_mock, dbm, power); in test_tx_test() 462 ztest_expect_value(set_txpower_mock, dbm, power); in test_tx_test() 477 ztest_expect_value(set_txpower_mock, dbm, power); in test_tx_test() 761 ztest_expect_value(set_txpower_mock, dbm, power); in test_radio_state_test() 855 ztest_expect_value(set_txpower_mock, dbm, power); in test_receive_test() 896 ztest_expect_value(set_txpower_mock, dbm, power); in test_net_pkt_transmit()
|
/Zephyr-Core-2.7.6/subsys/net/l2/ieee802154/ |
D | ieee802154_utils.h | 54 static inline int ieee802154_set_tx_power(struct net_if *iface, int16_t dbm) in ieee802154_set_tx_power() argument 63 return radio->set_txpower(net_if_get_device(iface), dbm); in ieee802154_set_tx_power()
|
D | Kconfig.radio | 10 TX power in dbm. Valid setting are: -18, -7, -4, -2, 0, 1, 2, 3, 5
|
/Zephyr-Core-2.7.6/include/net/ |
D | ieee802154_radio.h | 325 int (*set_txpower)(const struct device *dev, int16_t dbm);
|
/Zephyr-Core-2.7.6/subsys/net/lib/config/ |
D | Kconfig | 140 int "IEEE 802.15.4 TX power in dbm"
|