Home
last modified time | relevance | path

Searched refs:rssi (Results 1 – 25 of 172) sorted by relevance

1234567

/Zephyr-latest/include/zephyr/net/
Dieee802154_pkt.h60 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/
Dmain.c24 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/
Dtester.c38 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/
Dmain.c52 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/
Dsx12xx_common.c28 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/
Dmain.c26 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/
Dcentral_gatt_write.c21 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/
Ddut.c20 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/
Dlora.h124 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/
Dobserver.c14 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/
Dscanner.c31 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/
Dbr.c378 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/
Dmain.c27 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/
Demul.h35 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/
Dmain.c30 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/
Dlorawan_emul.c38 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/
Dcentral.c71 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/
Dieee802154_b91.c139 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/
Dsmp_lorawan.c19 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/
Dmain.c91 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/
Ddirection.h119 int16_t rssi; member
173 int16_t rssi; member
/Zephyr-latest/samples/bluetooth/direction_finding_central/src/
Dmain.c127 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/
Dcentral_mtu_update.c114 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/
Dbs_bt_utils.c82 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/
Dbs_bt_utils.c109 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()

1234567