/Zephyr-latest/include/zephyr/net/ |
D | ieee802154_pkt.h | 60 uint8_t rssi; member 122 return net_pkt_cb_ieee802154(pkt)->rssi; in net_pkt_ieee802154_rssi() 137 static inline void net_pkt_set_ieee802154_rssi(struct net_pkt *pkt, uint8_t rssi) in net_pkt_set_ieee802154_rssi() argument 139 net_pkt_cb_ieee802154(pkt)->rssi = rssi; in net_pkt_set_ieee802154_rssi() 155 int16_t rssi = net_pkt_cb_ieee802154(pkt)->rssi; in net_pkt_ieee802154_rssi_dbm() local 156 return rssi == IEEE802154_MAC_RSSI_UNDEFINED ? IEEE802154_MAC_RSSI_DBM_UNDEFINED in net_pkt_ieee802154_rssi_dbm() 157 : rssi + IEEE802154_MAC_RSSI_DBM_MIN; in net_pkt_ieee802154_rssi_dbm() 171 static inline void net_pkt_set_ieee802154_rssi_dbm(struct net_pkt *pkt, int16_t rssi) in net_pkt_set_ieee802154_rssi_dbm() argument 173 if (likely(rssi >= IEEE802154_MAC_RSSI_DBM_MIN && rssi <= IEEE802154_MAC_RSSI_DBM_MAX)) { in net_pkt_set_ieee802154_rssi_dbm() 174 int16_t unsigned_rssi = rssi - IEEE802154_MAC_RSSI_DBM_MIN; in net_pkt_set_ieee802154_rssi_dbm() [all …]
|
/Zephyr-latest/samples/drivers/lora/receive/src/ |
D | main.c | 24 int16_t rssi, int8_t snr, void *user_data) in lora_receive_cb() argument 32 LOG_INF("LoRa RX RSSI: %d dBm, SNR: %d dB", rssi, snr); in lora_receive_cb() 48 int16_t rssi; in main() local 77 &rssi, &snr); in main() 83 LOG_INF("LoRa RX RSSI: %d dBm, SNR: %d dB", rssi, snr); in main()
|
/Zephyr-latest/tests/bsim/bluetooth/host/privacy/legacy/src/ |
D | tester.c | 38 static void cb_expect_rpa(const bt_addr_le_t *addr, int8_t rssi, uint8_t type, in cb_expect_rpa() argument 82 static void cb_expect_id(const bt_addr_le_t *addr, int8_t rssi, uint8_t type, in cb_expect_id() argument 100 static void scan_cb(const bt_addr_le_t *addr, int8_t rssi, uint8_t type, struct net_buf_simple *ad) in scan_cb() argument 109 cb_expect_id(addr, rssi, type, ad); in scan_cb() 115 cb_expect_rpa(addr, rssi, type, ad); in scan_cb()
|
/Zephyr-latest/samples/bluetooth/hci_pwr_ctrl/src/ |
D | main.c | 52 static void read_conn_rssi(uint16_t handle, int8_t *rssi) in read_conn_rssi() argument 76 *rssi = rp->rssi; in read_conn_rssi() 250 int8_t rssi = 0xFF; in modulate_tx_power() local 255 read_conn_rssi(default_conn_handle, &rssi); in modulate_tx_power() 257 default_conn_handle, rssi); in modulate_tx_power() 258 if (rssi > -70) { in modulate_tx_power() 260 } else if (rssi > -90) { in modulate_tx_power()
|
/Zephyr-latest/drivers/lora/ |
D | sx12xx_common.c | 28 int16_t *rssi; member 100 static void sx12xx_ev_rx_done(uint8_t *payload, uint16_t size, int16_t rssi, in sx12xx_ev_rx_done() argument 110 dev_data.async_rx_cb(dev_data.dev, payload, size, rssi, snr, in sx12xx_ev_rx_done() 141 if (dev_data.rx_params.rssi) { in sx12xx_ev_rx_done() 142 *dev_data.rx_params.rssi = rssi; in sx12xx_ev_rx_done() 260 k_timeout_t timeout, int16_t *rssi, int8_t *snr) in sx12xx_lora_recv() argument 280 dev_data.rx_params.rssi = rssi; in sx12xx_lora_recv()
|
/Zephyr-latest/samples/bluetooth/central/src/ |
D | main.c | 26 static void device_found(const bt_addr_le_t *addr, int8_t rssi, uint8_t type, in device_found() argument 43 printk("Device found: %s (RSSI %d)\n", addr_str, rssi); in device_found() 46 if (rssi < -50) { in device_found()
|
/Zephyr-latest/samples/bluetooth/central_gatt_write/src/ |
D | central_gatt_write.c | 21 static void device_found(const bt_addr_le_t *addr, int8_t rssi, uint8_t type, in device_found() argument 30 dev, type, ad->len, rssi); in device_found() 39 if (rssi < -50) { in device_found()
|
/Zephyr-latest/tests/bsim/bluetooth/host/scan/slow/src/ |
D | dut.c | 20 static void device_found(const bt_addr_le_t *addr, int8_t rssi, uint8_t type, in device_found() argument 28 LOG_DBG("Device found: %s (RSSI %d), type %u, AD data len %u", addr_str, rssi, type, in device_found()
|
/Zephyr-latest/include/zephyr/drivers/ |
D | lora.h | 124 int16_t rssi, int8_t snr, void *user_data); 162 k_timeout_t timeout, int16_t *rssi, int8_t *snr); 270 k_timeout_t timeout, int16_t *rssi, int8_t *snr) in lora_recv() argument 275 return api->recv(dev, data, size, timeout, rssi, snr); in lora_recv()
|
/Zephyr-latest/samples/bluetooth/observer/src/ |
D | observer.c | 14 static void device_found(const bt_addr_le_t *addr, int8_t rssi, uint8_t type, in device_found() argument 21 addr_str, rssi, type, ad->len); in device_found() 73 le_addr, info->adv_type, info->tx_power, info->rssi, in scan_recv()
|
/Zephyr-latest/tests/bsim/bluetooth/host/adv/long_ad/src/ |
D | scanner.c | 31 static void device_found(const bt_addr_le_t *addr, int8_t rssi, uint8_t type, in device_found() argument 38 LOG_DBG("Device found: %s (RSSI %d)", addr_str, rssi); in device_found()
|
/Zephyr-latest/subsys/bluetooth/host/classic/ |
D | br.c | 378 static struct bt_br_discovery_result *get_result_slot(const bt_addr_t *addr, int8_t rssi) in get_result_slot() argument 397 if (rssi == 0xff) { in get_result_slot() 406 if (discovery_results[i].rssi > rssi) { in get_result_slot() 410 if (!result || result->rssi > discovery_results[i].rssi) { in get_result_slot() 417 result->rssi); in get_result_slot() 447 LOG_DBG("%s rssi %d dBm", bt_addr_str(&evt->addr), evt->rssi); in bt_hci_inquiry_result_with_rssi() 449 result = get_result_slot(&evt->addr, evt->rssi); in bt_hci_inquiry_result_with_rssi() 459 result->rssi = evt->rssi; in bt_hci_inquiry_result_with_rssi() 483 LOG_DBG("%s rssi %d dBm", bt_addr_str(&evt->addr), evt->rssi); in bt_hci_extended_inquiry_result() 485 result = get_result_slot(&evt->addr, evt->rssi); in bt_hci_extended_inquiry_result() [all …]
|
/Zephyr-latest/samples/subsys/lorawan/fuota/src/ |
D | main.c | 27 static void downlink_info(uint8_t port, uint8_t flags, int16_t rssi, int8_t snr, uint8_t len, in downlink_info() argument 30 LOG_INF("Received from port %d, flags %d, RSSI %ddB, SNR %ddBm", port, flags, rssi, snr); in downlink_info()
|
/Zephyr-latest/include/zephyr/lorawan/ |
D | emul.h | 35 void lorawan_emul_send_downlink(uint8_t port, bool data_pending, int16_t rssi, int8_t snr,
|
/Zephyr-latest/samples/subsys/lorawan/class_a/src/ |
D | main.c | 30 static void dl_callback(uint8_t port, uint8_t flags, int16_t rssi, int8_t snr, uint8_t len, in dl_callback() argument 34 flags & LORAWAN_DATA_PENDING, rssi, snr, !!(flags & LORAWAN_TIME_UPDATED)); in dl_callback()
|
/Zephyr-latest/subsys/lorawan/ |
D | lorawan_emul.c | 38 void lorawan_emul_send_downlink(uint8_t port, bool data_pending, int16_t rssi, int8_t snr, in lorawan_emul_send_downlink() argument 46 cb->cb(port, data_pending, rssi, snr, len, data); in lorawan_emul_send_downlink()
|
/Zephyr-latest/tests/bsim/bluetooth/host/adv/encrypted/css_sample_data/src/ |
D | central.c | 71 static void device_found(const bt_addr_le_t *addr, int8_t rssi, uint8_t type, in device_found() argument 78 LOG_DBG("Device found: %s (RSSI %d)", addr_str, rssi); in device_found()
|
/Zephyr-latest/drivers/ieee802154/ |
D | ieee802154_b91.c | 139 static uint8_t b91_convert_rssi_to_lqi(int8_t rssi) in b91_convert_rssi_to_lqi() argument 144 if (rssi < B91_RSSI_TO_LQI_MIN) { in b91_convert_rssi_to_lqi() 149 lqi32 = B91_RSSI_TO_LQI_SCALE * (rssi - B91_RSSI_TO_LQI_MIN); in b91_convert_rssi_to_lqi() 162 int8_t rssi; in b91_update_rssi_and_lqi() local 165 rssi = ((signed char)(data.rx_buffer in b91_update_rssi_and_lqi() 167 lqi = b91_convert_rssi_to_lqi(rssi); in b91_update_rssi_and_lqi() 170 net_pkt_set_ieee802154_rssi_dbm(pkt, rssi); in b91_update_rssi_and_lqi()
|
/Zephyr-latest/subsys/mgmt/mcumgr/transport/src/ |
D | smp_lorawan.c | 19 static void smp_lorawan_downlink(uint8_t port, uint8_t flags, int16_t rssi, int8_t snr, 125 static void smp_lorawan_downlink(uint8_t port, uint8_t flags, int16_t rssi, int8_t snr, in smp_lorawan_downlink() argument 129 ARG_UNUSED(rssi); in smp_lorawan_downlink()
|
/Zephyr-latest/samples/bluetooth/iso_central/src/ |
D | main.c | 91 static void device_found(const bt_addr_le_t *addr, int8_t rssi, uint8_t type, in device_found() argument 111 printk("Device found: %s (RSSI %d)\n", addr_str, rssi); in device_found() 114 if (rssi < -50) { in device_found()
|
/Zephyr-latest/include/zephyr/bluetooth/ |
D | direction.h | 119 int16_t rssi; member 173 int16_t rssi; member
|
/Zephyr-latest/samples/bluetooth/direction_finding_central/src/ |
D | main.c | 127 static void device_found(const bt_addr_le_t *addr, int8_t rssi, uint8_t type, in device_found() argument 133 printk("[DEVICE]: %s, AD evt type %u, AD data len %u, RSSI %i\n", dev, type, ad->len, rssi); in device_found() 258 packet_status2str(report->packet_status), report->rssi); in cte_recv_cb()
|
/Zephyr-latest/samples/bluetooth/mtu_update/central/src/ |
D | central_mtu_update.c | 114 static void device_found(const bt_addr_le_t *addr, int8_t rssi, uint8_t type, in device_found() argument 131 printk("Device found: %s (RSSI %d)\n", addr_str, rssi); in device_found() 134 if (rssi < -50) { in device_found()
|
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/sc_indicate/src/ |
D | bs_bt_utils.c | 82 int8_t rssi, in stop_scan_and_connect() argument 94 printk("Got scan result, connecting.. dst %s, RSSI %d\n", addr_str, rssi); in stop_scan_and_connect()
|
/Zephyr-latest/tests/bsim/bluetooth/host/security/bond_overwrite_allowed/src/ |
D | bs_bt_utils.c | 109 static void scan_connect_to_first_result__device_found(const bt_addr_le_t *addr, int8_t rssi, in scan_connect_to_first_result__device_found() argument 125 printk("Got scan result, connecting.. dst %s, RSSI %d\n", addr_str, rssi); in scan_connect_to_first_result__device_found()
|