nRF5 SDK for Thread and Zigbee v3.2.0
Functions
Functions to calculate data given by the driver

Functions

int8_t nrf_802154_dbm_from_energy_level_calculate (uint8_t energy_level)
 Calculate dBm from the energy level received during the energy detection procedure. More...
 
uint8_t nrf_802154_ccaedthres_from_dbm_calculate (int8_t dbm)
 Calculate the CCA energy detection threshold value from a given dBm level. More...
 
uint32_t nrf_802154_first_symbol_timestamp_get (uint32_t end_timestamp, uint8_t psdu_length)
 Calculate the timestamp of the first symbol of the preamble in a received frame. More...
 

Detailed Description

Function Documentation

uint8_t nrf_802154_ccaedthres_from_dbm_calculate ( int8_t  dbm)

Calculate the CCA energy detection threshold value from a given dBm level.

Parameters
[in]dbmEnergy level in dBm used to calculate the CCAEDTHRES value.
Returns
Energy level value corresponding to the given dBm level that should be written to the CCACTRL register.
int8_t nrf_802154_dbm_from_energy_level_calculate ( uint8_t  energy_level)

Calculate dBm from the energy level received during the energy detection procedure.

Parameters
[in]energy_levelEnergy level passed by nrf_802154_energy_detected.
Returns
Result of the energy detection procedure in dBm.
uint32_t nrf_802154_first_symbol_timestamp_get ( uint32_t  end_timestamp,
uint8_t  psdu_length 
)

Calculate the timestamp of the first symbol of the preamble in a received frame.

Parameters
[in]end_timestampTimestamp of the end of the last symbol in the frame (in us).
[in]psdu_lengthNumber of bytes in the frame PSDU.
Returns
Timestamp of the beginning of the first preamble symbol of a given frame (in us).

Documentation feedback | Developer Zone | Subscribe | Updated