Home
last modified time | relevance | path

Searched refs:rssi_value (Results 1 – 2 of 2) sorted by relevance

/nrf_hw_models-3.7.0/src/HW_models/
DNHW_RADIO_utils.h19 uint32_t nhwra_RSSI_value_to_modem_format(double rssi_value);
20 uint8_t nhwra_dBm_to_modem_LQIformat(double rssi_value);
DNHW_RADIO_utils.c208 uint32_t nhwra_RSSI_value_to_modem_format(double rssi_value){ in nhwra_RSSI_value_to_modem_format() argument
209 rssi_value = -BS_MAX(rssi_value,-127); in nhwra_RSSI_value_to_modem_format()
210 rssi_value = BS_MAX(rssi_value,0); in nhwra_RSSI_value_to_modem_format()
211 return (uint32_t)rssi_value; in nhwra_RSSI_value_to_modem_format()
214 uint8_t nhwra_dBm_to_modem_LQIformat(double rssi_value){ in nhwra_dBm_to_modem_LQIformat() argument
217 rssi_value -= NHW_RADIO_ED_RSSIOFFS; in nhwra_dBm_to_modem_LQIformat()
218 rssi_value = BS_MAX(rssi_value,0); in nhwra_dBm_to_modem_LQIformat()
219 rssi_value = BS_MIN(rssi_value,255); in nhwra_dBm_to_modem_LQIformat()
220 return (uint8_t)rssi_value; in nhwra_dBm_to_modem_LQIformat()