nRF5 SDK for Thread and Zigbee v4.0.0
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
RSSI measurement function

Functions

bool nrf_802154_rssi_measure_begin (void)
 Begins the RSSI measurement. More...
 
int8_t nrf_802154_rssi_last_get (void)
 Gets the result of the last RSSI measurement. More...
 

Detailed Description

Function Documentation

int8_t nrf_802154_rssi_last_get ( void  )

Gets the result of the last RSSI measurement.

Returns
RSSI measurement result, in dBm.
bool nrf_802154_rssi_measure_begin ( void  )

Begins the RSSI measurement.

Note
This function is to be called in the RADIO_STATE_RX state.

The result will be available after the measurement process is finished. The result can be read by nrf_802154_rssi_last_get. Check the documentation of the RADIO peripheral to check the duration of the RSSI measurement procedure.

Return values
trueRSSI measurement successfully requested.
falseRSSI measurement cannot be scheduled at the moment.