nrfxlib API 2.8.99
Loading...
Searching...
No Matches
mpsl_tx_power.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
19#ifndef MPSL_TX_POWER_H__
20#define MPSL_TX_POWER_H__
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26#include <stdint.h>
27#include "nrf_errno.h"
28
30#define MPSL_TOTAL_NUM_OF_BLE_CHANNELS 40
32#define MPSL_TOTAL_NUM_OF_802154_CHANNELS 16
33
43
45typedef int8_t mpsl_tx_power_t;
46
48typedef struct
49{
51 union
52 {
55
58 } envelope;
61
77
91
100
101#ifdef __cplusplus
102}
103#endif
104
105#endif// MPSL_TX_POWER_H__
106
#define MPSL_TOTAL_NUM_OF_802154_CHANNELS
The number of channels for 802.15.4 protocol.
Definition mpsl_tx_power.h:32
#define MPSL_TOTAL_NUM_OF_BLE_CHANNELS
The number of channels for Bluetooth LE protocol.
Definition mpsl_tx_power.h:30
int8_t mpsl_tx_power_t
Definition mpsl_tx_power.h:45
int32_t mpsl_tx_power_channel_map_set(const mpsl_tx_power_envelope_t *const p_envelope)
Sets maximum TX power envelope. If the PHY already has an envelope configured, it will be over-writte...
mpsl_phy_t
PHYs supported for limiting channel TX power.
Definition mpsl_tx_power.h:36
@ MPSL_PHY_BLE_2M
Definition mpsl_tx_power.h:38
@ MPSL_PHY_BLE_LR500Kbit
Definition mpsl_tx_power.h:40
@ MPSL_PHY_Ieee802154_250Kbit
Definition mpsl_tx_power.h:41
@ MPSL_PHY_BLE_LR125Kbit
Definition mpsl_tx_power.h:39
@ MPSL_PHY_BLE_1M
Definition mpsl_tx_power.h:37
uint32_t mpsl_tx_power_dbm_to_radio_register_convert(mpsl_tx_power_t req_radio_power)
Converts radio power in dBm to RADIO.TXPOWER register code.
mpsl_tx_power_t mpsl_tx_power_radio_supported_power_adjust(mpsl_tx_power_t req_radio_power, int8_t tx_power_ceiling)
Adjusts TX power to a value supported by the RADIO peripheral.
mpsl_phy_t phy
Definition mpsl_tx_power.h:50
Max TX power envelope. It is up to the application to allocate memory for an envelope.
Definition mpsl_tx_power.h:49