Home
last modified time | relevance | path

Searched refs:lqi (Results 1 – 15 of 15) sorted by relevance

/Zephyr-Core-3.7.0/include/zephyr/net/
Dieee802154_pkt.h49 uint8_t lqi; /* Link Quality Indicator */ member
90 return net_pkt_cb_ieee802154(pkt)->lqi; in net_pkt_ieee802154_lqi()
93 static inline void net_pkt_set_ieee802154_lqi(struct net_pkt *pkt, uint8_t lqi) in net_pkt_set_ieee802154_lqi() argument
95 net_pkt_cb_ieee802154(pkt)->lqi = lqi; in net_pkt_set_ieee802154_lqi()
Dieee802154_mgmt.h332 uint8_t lqi; member
/Zephyr-Core-3.7.0/subsys/net/l2/ieee802154/
Dieee802154_mgmt_priv.h41 uint8_t lqi);
Dieee802154_mgmt.c37 uint8_t lqi) in ieee802154_handle_beacon() argument
53 ctx->scan_ctx->lqi = lqi; in ieee802154_handle_beacon()
Dieee802154_shell.c219 print_coordinator_address(buf, sizeof(buf)), params.lqi, in scan_result_cb()
/Zephyr-Core-3.7.0/drivers/ieee802154/
Dieee802154_nrf5.h19 uint8_t lqi; /* Last received frame LQI value. */ member
Dieee802154_nrf5.c200 net_pkt_set_ieee802154_lqi(pkt, rx_frame->lqi); in nrf5_rx_thread()
213 pkt_len, rx_frame->lqi); in nrf5_rx_thread()
440 net_pkt_set_ieee802154_lqi(ack_pkt, nrf5_radio->ack_frame.lqi); in handle_ack()
1061 void nrf_802154_received_timestamp_raw(uint8_t *data, int8_t power, uint8_t lqi, uint64_t time) in nrf_802154_received_timestamp_raw() argument
1070 nrf5_data.rx_frames[i].lqi = lqi; in nrf_802154_received_timestamp_raw()
1159 nrf5_data.ack_frame.lqi = metadata->data.transmitted.lqi; in nrf_802154_transmitted_raw()
Dieee802154_cc2520.c539 uint8_t lqi; in insert_radio_noise_details() local
553 lqi = status[1] & CC2520_FCS_CORRELATION; in insert_radio_noise_details()
554 if (lqi <= 50U) { in insert_radio_noise_details()
555 lqi = 0U; in insert_radio_noise_details()
556 } else if (lqi >= 110U) { in insert_radio_noise_details()
557 lqi = 255U; in insert_radio_noise_details()
559 lqi = (lqi - 50U) << 2; in insert_radio_noise_details()
562 net_pkt_set_ieee802154_lqi(pkt, lqi); in insert_radio_noise_details()
Dieee802154_mcr20a.c488 static inline int16_t mcr20a_get_rssi(uint8_t lqi) in mcr20a_get_rssi() argument
510 int16_t numerator = ((int16_t)100 * lqi) - 29540; /* always negative */ in mcr20a_get_rssi()
565 uint8_t lqi; in mcr20a_rx() local
587 lqi = read_reg_lqi_value(dev); in mcr20a_rx()
588 net_pkt_set_ieee802154_lqi(pkt, lqi); in mcr20a_rx()
590 rssi = mcr20a_get_rssi(lqi); in mcr20a_rx()
593 LOG_DBG("Caught a packet (%u) (LQI: %u, RSSI: %d)", pkt_len, lqi, rssi); in mcr20a_rx()
Dieee802154_b91.c163 uint8_t lqi; in b91_update_rssi_and_lqi() local
167 lqi = b91_convert_rssi_to_lqi(rssi); in b91_update_rssi_and_lqi()
169 net_pkt_set_ieee802154_lqi(pkt, lqi); in b91_update_rssi_and_lqi()
Dieee802154_cc13xx_cc26xx.c399 uint8_t len, seq, corr, lqi; in ieee802154_cc13xx_cc26xx_rx_done() local
420 lqi = corr << 2; in ieee802154_cc13xx_cc26xx_rx_done()
423 len, seq, rssi, lqi); in ieee802154_cc13xx_cc26xx_rx_done()
440 net_pkt_set_ieee802154_lqi(pkt, lqi); in ieee802154_cc13xx_cc26xx_rx_done()
Dieee802154_rf2xx.c66 .lqi = 80,
/Zephyr-Core-3.7.0/tests/subsys/openthread/
Dradio_test.c236 const uint8_t lqi = 230; in create_ack_frame() local
247 net_pkt_set_ieee802154_lqi(packet, lqi); in create_ack_frame()
759 const uint8_t lqi = 240; in ZTEST() local
766 net_pkt_set_ieee802154_lqi(packet, lqi); in ZTEST()
/Zephyr-Core-3.7.0/modules/openthread/platform/
Dradio.c1422 static void set_vendor_ie_header_lm(bool lqi, bool link_margin, bool rssi, uint8_t *ie_header) in set_vendor_ie_header_lm() argument
1447 uint8_t link_metrics_data_len = (uint8_t)lqi + (uint8_t)link_margin + (uint8_t)rssi; in set_vendor_ie_header_lm()
1478 if (lqi) { in set_vendor_ie_header_lm()
/Zephyr-Core-3.7.0/tests/net/ieee802154/l2/src/
Dieee802154_shell_test.c69 zassert_equal(scan_ctx->lqi, EXPECTED_COORDINATOR_LQI, in scan_result_cb()