Controls external PA/LNA support for the mesh radio operation. More...
Typedefs | |
typedef ble_common_opt_pa_lna_t | mesh_pa_lna_gpiote_params_t |
Configuration parameters for gpiote-based setup of PA/LNA. More... | |
Functions | |
uint32_t | mesh_pa_lna_gpiote_enable (const mesh_pa_lna_gpiote_params_t *p_params) |
Enables GPIOTE controlled PA/LNA triggering. More... | |
void | mesh_pa_lna_gpiote_disable (void) |
Disables PA/LNA triggering. More... | |
const mesh_pa_lna_gpiote_params_t * | mesh_pa_lna_gpiote_params_get (void) |
Retrieves the current PA/LNA parameters. More... | |
Controls external PA/LNA support for the mesh radio operation.
The mesh PA/LNA module enables external power amplifiers and low noise amplifiers by setting user configured GPIO-pins during radio operation.
The PA/LNA is triggered some time before the radio operation starts, to allow the amplifiers to stabilize. The timing can be configured at compile time by changing MESH_PA_SETUP_TIME_US and MESH_LNA_SETUP_TIME_US. Note that the setup time cannot be longer than the radio rampup time (by default 40us on nRF52 and 140us on nRF51).
typedef ble_common_opt_pa_lna_t mesh_pa_lna_gpiote_params_t |
Configuration parameters for gpiote-based setup of PA/LNA.
Identical to the Softdevice parameters.
Definition at line 62 of file mesh_pa_lna.h.
uint32_t mesh_pa_lna_gpiote_enable | ( | const mesh_pa_lna_gpiote_params_t * | p_params | ) |
Enables GPIOTE controlled PA/LNA triggering.
Parameter requirements:
[in] | p_params | Configuration parameters. |
NRF_SUCCESS | The GPIOTE controlled PA/LNA triggering was successfully enabled. |
NRF_ERROR_NULL | The parameter pointer was NULL. |
NRF_ERROR_INVALID_PARAMS | One or more of the parameters broke the parameter requirements. |
void mesh_pa_lna_gpiote_disable | ( | void | ) |
Disables PA/LNA triggering.
Immediately stops any running GPIO signal.
const mesh_pa_lna_gpiote_params_t* mesh_pa_lna_gpiote_params_get | ( | void | ) |
Retrieves the current PA/LNA parameters.