S115 SoftDevice for nRF54LS05 API documentation 10.0.0
Loading...
Searching...
No Matches

◆ sd_ble_gap_tx_power_set()

uint32_t sd_ble_gap_tx_power_set ( uint8_t role,
uint16_t handle,
int8_t tx_power )

#include <ble_gap.h>

Set the radio's transmit power.

Parameters
[in]roleThe role to set the transmit power for, see BLE_GAP_TX_POWER_ROLES for possible roles.
[in]handleThe handle parameter is interpreted depending on role:
[in]tx_powerRadio transmit power in dBm (see Product Specification for supported values).
Note
Power will be set to supported value that is less than or equal to requested value, clamping at minimum supported power.
The initiator will have the same transmit power as the scanner.
When a connection is created it will inherit the transmit power from the initiator or advertiser leading to the connection.
Return values
NRF_SUCCESSSuccessfully changed the transmit power.
NRF_ERROR_INVALID_PARAMInvalid parameter(s) supplied.
BLE_ERROR_INVALID_ADV_HANDLEAdvertising handle not found.
BLE_ERROR_INVALID_CONN_HANDLEInvalid connection handle supplied.