RF Sense


typedef void(* RAIL_RfSense_CallbackPtr_t) (void)
 A pointer to an RF Sense callback function.


enum  RAIL_RfSenseBand_t {
 An enumeration for specifying the RF Sense frequency band.


RAIL_Time_t RAIL_StartRfSense (RAIL_Handle_t railHandle, RAIL_RfSenseBand_t band, RAIL_Time_t senseTime, RAIL_RfSense_CallbackPtr_t cb)
 Starts/stops the RF Sense functionality for use during low-energy sleep modes.
bool RAIL_IsRfSensed (RAIL_Handle_t railHandle)
 Checks if the RF was sensed.

Enumeration Type Documentation

An enumeration for specifying the RF Sense frequency band.


RF Sense is disabled.


RF Sense is in 2.4 G band.


RF Sense is in subgig band.


RF Sense is in both bands.

Definition at line 2247 of file rail_types.h.

Function Documentation

bool RAIL_IsRfSensed ( RAIL_Handle_t  railHandle)

Checks if the RF was sensed.

[in]railHandleA RAIL instance handle.
true if RF was sensed since the last call to RAIL_StartRfSense. False otherwise.

This function is useful if RAIL_StartRfSense is called with a null callback. It is generally used after EM4 reboot but can be used any time.

RAIL_Time_t RAIL_StartRfSense ( RAIL_Handle_t  railHandle,
RAIL_RfSenseBand_t  band,
RAIL_Time_t  senseTime,
RAIL_RfSense_CallbackPtr_t  cb 

Starts/stops the RF Sense functionality for use during low-energy sleep modes.

[in]railHandleA RAIL instance handle.
[in]bandThe frequency band(s) on which to sense the RF energy. To stop RF Sense, specify RAIL_RFSENSE_OFF.
[in]senseTimeThe time (in microseconds) the RF energy must be continually detected to be considered "sensed".
[in]cbRAIL_RfSense_CallbackPtr_t is called when the RF is sensed. Set null if polling via RAIL_IsRfSensed().
The actual senseTime used, which may be different than requested due to limitations of the hardware. If 0, RF sense was disabled or could not be enabled (no callback will be issued).

The EFR32 has the ability to sense the presence of RF Energy above -20 dBm within either or both the 2.4 GHz and Sub-GHz bands and trigger an event if that energy is continuously present for certain durations of time.

After RF energy has been sensed, the RF Sense is automatically disabled. RAIL_StartRfSense() must be called again to reactivate it.
Packet reception is not guaranteed to work correctly once RF Sense is enabled. To be safe, an application should turn this on only after idling the radio to stop receive and turn it off before attempting to restart receive. Since EM4 sleep causes the chip to come up through the reset vector any wake from EM4 must also shut off RF Sense to ensure proper receive functionality.
RF Sense functionality is only guaranteed from 0 to 85 degrees Celsius. RF Sense should be disabled outside of this temperature range.