![]() |
nrfxlib API 3.3.99
|
| int32_t mpsl_fem_nrf21540_gpio_spi_interface_config_set | ( | mpsl_fem_nrf21540_gpio_spi_interface_config_t const *const | p_config | ) |
#include <mpsl/fem/nrf21540_gpio_spi/include/mpsl_fem_config_nrf21540_gpio_spi.h>
Configures the PA and LNA device interface.
This function sets device interface parameters for the PA/LNA module. The module can then be used to control PA or LNA (or both) through the given interface and resources.
The function also sets the PPI and GPIOTE channels to be configured for the PA/LNA interface as well as SPI interface to be used.
| [in] | p_config | Pointer to the interface parameters for the PA/LNA device. |
| 0 | PA/LNA control successfully configured. |
| -NRF_EPERM | PA/LNA control configuration error. |