nrfxlib API 2.8.99
Loading...
Searching...
No Matches
nrf_802154_common_utils.h File Reference
#include <stdint.h>
#include "nrf_802154_config.h"

Go to the source code of this file.

Functions

uint8_t nrf_802154_energy_level_from_dbm_calculate (int8_t ed_dbm)
 Converts energy level received during the energy detection procedure to IEEE Std. 802.15.4-2015 compliant value.
 
uint8_t nrf_802154_ccaedthres_from_dbm_calculate (int8_t dbm)
 Converts a given dBm level to a CCA energy detection threshold value.
 
uint64_t nrf_802154_first_symbol_timestamp_get (uint64_t end_timestamp, uint8_t psdu_length)
 Calculates the timestamp of the first symbol of the preamble in a received frame.
 
uint64_t nrf_802154_mhr_timestamp_get (uint64_t end_timestamp, uint8_t psdu_length)
 Calculates the timestamp of the MAC Header in a received frame.
 
uint64_t nrf_802154_timestamp_end_to_phr_convert (uint64_t end_timestamp, uint8_t psdu_length)
 Converts the timestamp of the frame's end to the timestamp of the start of its PHR.
 
uint64_t nrf_802154_timestamp_phr_to_shr_convert (uint64_t phr_timestamp)
 Converts the timestamp of the frame's PHR to the timestamp of the start of its SHR.
 
uint64_t nrf_802154_timestamp_phr_to_mhr_convert (uint64_t phr_timestamp)
 Converts the timestamp of the frame's PHR to the timestamp of the start of its MHR.