nRF5 SDK for Thread and Zigbee v4.0.0
Functions
Functions to calculate data given by the driver

Functions

int8_t nrf_802154_dbm_from_energy_level_calculate (uint8_t energy_level)
 Converts the energy level received during the energy detection procedure to a dBm value. More...
 
uint8_t nrf_802154_ccaedthres_from_dbm_calculate (int8_t dbm)
 Converts a given dBm level to a CCA energy detection threshold value. More...
 
uint32_t nrf_802154_first_symbol_timestamp_get (uint32_t end_timestamp, uint8_t psdu_length)
 Calculates 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)

Converts a given dBm level to a CCA energy detection threshold value.

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

Converts the energy level received during the energy detection procedure to a dBm value.

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 
)

Calculates 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 microseconds.
[in]psdu_lengthNumber of bytes in the frame PSDU.
Returns
Timestamp of the beginning of the first preamble symbol of a given frame, in microseconds.

Documentation feedback | Developer Zone | Subscribe | Updated