nrfxlib API 0.1.0
Loading...
Searching...
No Matches

◆ nrf_802154_antenna_diversity_init()

bool nrf_802154_antenna_diversity_init ( void  )

#include <nrf_802154/common/include/nrf_802154.h>

Initializes antenna diversity module.

This function should be called before starting radio operations, but at any time after driver initialization. In order for it to succeed, antenna diversity interface configuration must be provided before it's called with nrf_802154_antenna_diversity_config_set. Example usage:

nrf_802154_sl_ant_div_cfg_t cfg =
{
// Set the configuration parameters accordingly
};
nrf_802154_antenna_config_set(&cfg);
// At any later time
bool nrf_802154_receive(void)
Changes the radio state to RADIO_STATE_RX.
bool nrf_802154_antenna_diversity_init(void)
Initializes antenna diversity module.
void nrf_802154_init(void)
Initializes the 802.15.4 driver.
Return values
trueInitialization was successful.
falseInitialization could not be performed due to unconfigured interface.