# Radio Configuration

This module includes the platform abstraction for radio configuration.

## Summary

| ### Functions ||
|---|---|
| `https://openthread.io/reference/group/radio-config#group__radio-config_1ga6fe61793762748f1d2fd9cd5d5822093(https://openthread.io/reference/group/api-instance#group__api-instance_1ga25440551213fb5b40869725378584960 *aInstance)` | `uint32_t` Get the bus latency in microseconds between the host and the radio chip. |
| `https://openthread.io/reference/group/radio-config#group__radio-config_1ga62d922f53eb91b27e267ad6d095ceb4b(https://openthread.io/reference/group/api-instance#group__api-instance_1ga25440551213fb5b40869725378584960 *aInstance)` | `uint32_t` Get the bus speed in bits/second between the host and the radio chip. |
| `https://openthread.io/reference/group/radio-config#group__radio-config_1ga5a5999dadb6ac0ee70a69a960930f132(https://openthread.io/reference/group/api-instance#group__api-instance_1ga25440551213fb5b40869725378584960 *aInstance)` | `https://openthread.io/reference/group/radio-types#group__radio-types_1ga42eb2a20cdbfe1cf16f8f662ee223504` Get the radio capabilities. |
| `https://openthread.io/reference/group/radio-config#group__radio-config_1gabb70b6dad5ff85f48957bbea7adaa89d(https://openthread.io/reference/group/api-instance#group__api-instance_1ga25440551213fb5b40869725378584960 *aInstance, int8_t *aThreshold)` | `https://openthread.io/reference/group/api-error#group__api-error_1gabaaa90aaa35da8f9d394a227a23a6a49` Get the radio's CCA ED threshold in dBm measured at antenna connector per IEEE 802.15.4 - 2015 section 10.1.4. |
| `https://openthread.io/reference/group/radio-config#group__radio-config_1ga897992724c766f886ce28bcea642b5d2(https://openthread.io/reference/group/api-instance#group__api-instance_1ga25440551213fb5b40869725378584960 *aInstance, int8_t *aGain)` | `https://openthread.io/reference/group/api-error#group__api-error_1gabaaa90aaa35da8f9d394a227a23a6a49` Gets the external FEM's Rx LNA gain in dBm. |
| `https://openthread.io/reference/group/radio-config#group__radio-config_1ga6940d730c862fae890f3a2912000002d(https://openthread.io/reference/group/api-instance#group__api-instance_1ga25440551213fb5b40869725378584960 *aInstance, uint8_t *aIeeeEui64)` | `void` Gets the factory-assigned IEEE EUI-64 for this interface. |
| `https://openthread.io/reference/group/radio-config#group__radio-config_1gadd536021d7e30db21d42710879580370(https://openthread.io/reference/group/api-instance#group__api-instance_1ga25440551213fb5b40869725378584960 *aInstance)` | `https://openthread.io/reference/group/radio-types#group__radio-types_1ga4b1723679c73d4b1cb45146bb29e8402` Get the current time in microseconds referenced to a continuous monotonic local radio clock (64 bits width). |
| `https://openthread.io/reference/group/radio-config#group__radio-config_1gaef6191a2f5c0dd177dc009dae3796e8e(https://openthread.io/reference/group/api-instance#group__api-instance_1ga25440551213fb5b40869725378584960 *aInstance)` | `bool` Get the status of promiscuous mode. |
| `https://openthread.io/reference/group/radio-config#group__radio-config_1ga71b5cc59aaead9fc2e42b4907392a664(https://openthread.io/reference/group/api-instance#group__api-instance_1ga25440551213fb5b40869725378584960 *aInstance)` | `int8_t` Get the radio receive sensitivity value. |
| `https://openthread.io/reference/group/radio-config#group__radio-config_1gadba7cca4c1176c4efeb789b1f90a5057(https://openthread.io/reference/group/api-instance#group__api-instance_1ga25440551213fb5b40869725378584960 *aInstance, int8_t *aPower)` | `https://openthread.io/reference/group/api-error#group__api-error_1gabaaa90aaa35da8f9d394a227a23a6a49` Get the radio's transmit power in dBm. |
| `https://openthread.io/reference/group/radio-config#group__radio-config_1gaa8e579d7776a38b169cc4ad097e2da65(https://openthread.io/reference/group/api-instance#group__api-instance_1ga25440551213fb5b40869725378584960 *aInstance)` | `const char *` Get the radio version string. |
| `https://openthread.io/reference/group/radio-config#group__radio-config_1ga07a7661481c26263f299933e5b0b1857(https://openthread.io/reference/group/api-instance#group__api-instance_1ga25440551213fb5b40869725378584960 *aInstance, https://openthread.io/reference/group/radio-types#group__radio-types_1ga9199b7f0fe13ebcd0da2e3af71f04c40 aShortAddress)` | `void` Set the alternate short address. |
| `https://openthread.io/reference/group/radio-config#group__radio-config_1ga7aa66dc7e995abdcaceac2b73e614ffc(https://openthread.io/reference/group/api-instance#group__api-instance_1ga25440551213fb5b40869725378584960 *aInstance, int8_t aThreshold)` | `https://openthread.io/reference/group/api-error#group__api-error_1gabaaa90aaa35da8f9d394a227a23a6a49` Set the radio's CCA ED threshold in dBm measured at antenna connector per IEEE 802.15.4 - 2015 section 10.1.4. |
| `https://openthread.io/reference/group/radio-config#group__radio-config_1ga62cdcfe3e94da49f13f358942a794955(https://openthread.io/reference/group/api-instance#group__api-instance_1ga25440551213fb5b40869725378584960 *aInstance, const https://openthread.io/reference/struct/ot-ext-address *aExtAddress)` | `void` Set the Extended Address for address filtering. |
| `https://openthread.io/reference/group/radio-config#group__radio-config_1ga09c208ac7ad818ce3461b1aad367805e(https://openthread.io/reference/group/api-instance#group__api-instance_1ga25440551213fb5b40869725378584960 *aInstance, int8_t aGain)` | `https://openthread.io/reference/group/api-error#group__api-error_1gabaaa90aaa35da8f9d394a227a23a6a49` Sets the external FEM's Rx LNA gain in dBm. |
| `https://openthread.io/reference/group/radio-config#group__radio-config_1ga2409be82c51b66cf831308395965bce9(https://openthread.io/reference/group/api-instance#group__api-instance_1ga25440551213fb5b40869725378584960 *aInstance, uint32_t aMacFrameCounter)` | `void` Sets the current MAC frame counter value. |
| `https://openthread.io/reference/group/radio-config#group__radio-config_1ga796d0eea5bfa5bf1f93615640f45b3bd(https://openthread.io/reference/group/api-instance#group__api-instance_1ga25440551213fb5b40869725378584960 *aInstance, uint32_t aMacFrameCounter)` | `void` Sets the current MAC frame counter value only if the new given value is larger than the current value. |
| `https://openthread.io/reference/group/radio-config#group__radio-config_1gaaa1b1d774ee14d68c57e38315fa5006f(https://openthread.io/reference/group/api-instance#group__api-instance_1ga25440551213fb5b40869725378584960 *aInstance, uint8_t aKeyIdMode, uint8_t aKeyIndex, const https://openthread.io/reference/struct/ot-mac-key-material *aPrevKey, const https://openthread.io/reference/struct/ot-mac-key-material *aCurrKey, const https://openthread.io/reference/struct/ot-mac-key-material *aNextKey, https://openthread.io/reference/group/radio-types#group__radio-types_1ga055672199ad163e788cf20ac6ce04d3c aKeyType)` | `void` Update MAC keys and key index. |
| `https://openthread.io/reference/group/radio-config#group__radio-config_1ga032e75b6d174c7cb58e8c280fdcd5f26(https://openthread.io/reference/group/api-instance#group__api-instance_1ga25440551213fb5b40869725378584960 *aInstance, https://openthread.io/reference/group/radio-types#group__radio-types_1ga2dd7c7e7e4b5a8a15e9af7fb78de1eda aPanId)` | `void` Set the PAN ID for address filtering. |
| `https://openthread.io/reference/group/radio-config#group__radio-config_1ga0a905ad5c76c5931ee2ef395342f0dca(https://openthread.io/reference/group/api-instance#group__api-instance_1ga25440551213fb5b40869725378584960 *aInstance, bool aEnable)` | `void` Enable or disable promiscuous mode. |
| `https://openthread.io/reference/group/radio-config#group__radio-config_1gaba315d5db0b38d3c8d71cefd53fc6d87(https://openthread.io/reference/group/api-instance#group__api-instance_1ga25440551213fb5b40869725378584960 *aInstance, bool aEnable)` | `void` Sets the rx-on-when-idle state to the radio platform. |
| `https://openthread.io/reference/group/radio-config#group__radio-config_1ga5cec7c711f3f1e21e7ce83e8019a3332(https://openthread.io/reference/group/api-instance#group__api-instance_1ga25440551213fb5b40869725378584960 *aInstance, https://openthread.io/reference/group/radio-types#group__radio-types_1ga9199b7f0fe13ebcd0da2e3af71f04c40 aShortAddress)` | `void` Set the Short Address for address filtering. |
| `https://openthread.io/reference/group/radio-config#group__radio-config_1gab310e61a0ab319236d71acb02804ba02(https://openthread.io/reference/group/api-instance#group__api-instance_1ga25440551213fb5b40869725378584960 *aInstance, int8_t aPower)` | `https://openthread.io/reference/group/api-error#group__api-error_1gabaaa90aaa35da8f9d394a227a23a6a49` Set the radio's transmit power in dBm for all channels. |

## Functions

### otPlatRadioGetBusLatency

```
uint32_t otPlatRadioGetBusLatency(
  otInstance *aInstance
)
```
Get the bus latency in microseconds between the host and the radio chip.

<br />

Details Parameters `[in] aInstance` A pointer to an OpenThread instance. **Returns** The bus latency in microseconds between the host and the radio chip. Return 0 when the MAC and above layer and Radio layer resides on the same chip.

### otPlatRadioGetBusSpeed

```
uint32_t otPlatRadioGetBusSpeed(
  otInstance *aInstance
)
```
Get the bus speed in bits/second between the host and the radio chip.

<br />

Details Parameters `[in] aInstance` A pointer to an OpenThread instance. **Returns** The bus speed in bits/second between the host and the radio chip. Return 0 when the MAC and above layer and Radio layer resides on the same chip.

### otPlatRadioGetCaps

```
otRadioCaps otPlatRadioGetCaps(
  otInstance *aInstance
)
```
Get the radio capabilities.

<br />

Details Parameters `[in] aInstance` The OpenThread instance structure. **Returns** The radio capability bit vector (see `OT_RADIO_CAP_*` definitions).

### otPlatRadioGetCcaEnergyDetectThreshold

```
otError otPlatRadioGetCcaEnergyDetectThreshold(
  otInstance *aInstance,
  int8_t *aThreshold
)
```
Get the radio's CCA ED threshold in dBm measured at antenna connector per IEEE 802.15.4 - 2015 section 10.1.4.

<br />

Details Parameters `[in] aInstance` The OpenThread instance structure. `[out] aThreshold` The CCA ED threshold in dBm. Return Values `OT_ERROR_NONE` Successfully retrieved the CCA ED threshold. `OT_ERROR_INVALID_ARGS` `aThreshold` was NULL. `OT_ERROR_NOT_IMPLEMENTED` CCA ED threshold configuration via dBm is not implemented.

### otPlatRadioGetFemLnaGain

```
otError otPlatRadioGetFemLnaGain(
  otInstance *aInstance,
  int8_t *aGain
)
```
Gets the external FEM's Rx LNA gain in dBm.

<br />

Details Parameters `[in] aInstance` The OpenThread instance structure. `[out] aGain` The external FEM's Rx LNA gain in dBm. Return Values `OT_ERROR_NONE` Successfully retrieved the external FEM's LNA gain. `OT_ERROR_INVALID_ARGS` `aGain` was NULL. `OT_ERROR_NOT_IMPLEMENTED` External FEM's LNA setting is not implemented.

### otPlatRadioGetIeeeEui64

```
void otPlatRadioGetIeeeEui64(
  otInstance *aInstance,
  uint8_t *aIeeeEui64
)
```
Gets the factory-assigned IEEE EUI-64 for this interface.

<br />

Details Parameters `[in] aInstance` The OpenThread instance structure. `[out] aIeeeEui64` A pointer to the factory-assigned IEEE EUI-64.

### otPlatRadioGetNow

```
otRadioTime64 otPlatRadioGetNow(
  otInstance *aInstance
)
```
Get the current time in microseconds referenced to a continuous monotonic local radio clock (64 bits width).

The radio clock SHALL NOT wrap during the device's uptime. Implementations SHALL therefore identify and compensate for internal counter overflows. The clock does not have a defined epoch and it SHALL NOT introduce any continuous or discontinuous adjustments (e.g. leap seconds). Implementations SHALL compensate for any sleep times of the device.

Implementations MAY choose to discipline the radio clock and compensate for sleep times by any means (e.g. by combining a high precision/low power RTC with a high resolution counter) as long as the exposed combined clock provides continuous monotonic microsecond resolution ticks within the accuracy limits announced by [otPlatRadioGetCslAccuracy](https://openthread.io/reference/group/radio-operation#group__radio-operation_1ga05ebbb326c9ac2b60921a1a2a0c3b8f8).

<br />

Details Parameters `[in] aInstance` A pointer to an OpenThread instance. **Returns** The current time in microseconds. UINT64_MAX when platform does not support or radio time is not ready.

### otPlatRadioGetPromiscuous

```
bool otPlatRadioGetPromiscuous(
  otInstance *aInstance
)
```
Get the status of promiscuous mode.

<br />

Details Parameters `[in] aInstance` The OpenThread instance structure. Return Values `TRUE` Promiscuous mode is enabled. `FALSE` Promiscuous mode is disabled.

### otPlatRadioGetReceiveSensitivity

```
int8_t otPlatRadioGetReceiveSensitivity(
  otInstance *aInstance
)
```
Get the radio receive sensitivity value.

<br />

Details Parameters `[in] aInstance` The OpenThread instance structure. **Returns** The radio receive sensitivity value in dBm.

### otPlatRadioGetTransmitPower

```
otError otPlatRadioGetTransmitPower(
  otInstance *aInstance,
  int8_t *aPower
)
```
Get the radio's transmit power in dBm.


> [!NOTE]
> **Note:** The transmit power returned will be no larger than the power specified in the max power table for the current channel.

<br />

Details Parameters `[in] aInstance` The OpenThread instance structure. `[out] aPower` The transmit power in dBm. Return Values `OT_ERROR_NONE` Successfully retrieved the transmit power. `OT_ERROR_INVALID_ARGS` `aPower` was NULL. `OT_ERROR_NOT_IMPLEMENTED` Transmit power configuration via dBm is not implemented.

### otPlatRadioGetVersionString

```
const char * otPlatRadioGetVersionString(
  otInstance *aInstance
)
```
Get the radio version string.

This is an optional radio driver platform function. If not provided by platform radio driver, OpenThread uses the OpenThread version instead (
Details Parameters `[in] aInstance` The OpenThread instance structure. **Returns** A pointer to the OpenThread radio version. **See also:**   
[otGetVersionString()](https://openthread.io/reference/group/api-instance#group__api-instance_1ga768af70c94547bf06bb42faf6448efe8)).  

### otPlatRadioSetAlternateShortAddress

```
void otPlatRadioSetAlternateShortAddress(
  otInstance *aInstance,
  otShortAddress aShortAddress
)
```
Set the alternate short address.

This is an optional radio platform API. The radio platform MUST indicate support for this API by including the capability `OT_RADIO_CAPS_ALT_SHORT_ADDR` in `https://openthread.io/reference/group/radio-config#group__radio-config_1ga5a5999dadb6ac0ee70a69a960930f132`.

When supported, the radio should accept received frames destined to the specified alternate short address in addition to the short address provided in `https://openthread.io/reference/group/radio-config#group__radio-config_1ga5cec7c711f3f1e21e7ce83e8019a3332`.

The `aShortAddress` can be set to `OT_RADIO_INVALID_SHORT_ADDR` (0xfffe) to clear any previously set alternate short address.

This function is used by OpenThread stack during child-to-router role transitions, allowing the device to continue receiving frames addressed to its previous short address for a short period.

<br />

Details Parameters `[in] aInstance` The OpenThread instance structure. `[in] aShortAddress` The alternate IEEE 802.15.4 short address. `OT_RADIO_INVALID_SHORT_ADDR` to clear.

### otPlatRadioSetCcaEnergyDetectThreshold

```
otError otPlatRadioSetCcaEnergyDetectThreshold(
  otInstance *aInstance,
  int8_t aThreshold
)
```
Set the radio's CCA ED threshold in dBm measured at antenna connector per IEEE 802.15.4 - 2015 section 10.1.4.

<br />

Details Parameters `[in] aInstance` The OpenThread instance structure. `[in] aThreshold` The CCA ED threshold in dBm. Return Values `OT_ERROR_NONE` Successfully set the transmit power. `OT_ERROR_INVALID_ARGS` Given threshold is out of range. `OT_ERROR_NOT_IMPLEMENTED` CCA ED threshold configuration via dBm is not implemented.

### otPlatRadioSetExtendedAddress

```
void otPlatRadioSetExtendedAddress(
  otInstance *aInstance,
  const otExtAddress *aExtAddress
)
```
Set the Extended Address for address filtering.

<br />

Details Parameters `[in] aInstance` The OpenThread instance structure. `[in] aExtAddress` A pointer to the IEEE 802.15.4 Extended Address stored in little-endian byte order. **See also:**   
[otPlatRadioEnable()](https://openthread.io/reference/group/radio-operation#group__radio-operation_1gabfe31d09ed784e1799cb43187b302c8d)   
[otPlatRadioSetPromiscuous()](https://openthread.io/reference/group/radio-config#group__radio-config_1ga0a905ad5c76c5931ee2ef395342f0dca)   

### otPlatRadioSetFemLnaGain

```
otError otPlatRadioSetFemLnaGain(
  otInstance *aInstance,
  int8_t aGain
)
```
Sets the external FEM's Rx LNA gain in dBm.

<br />

Details Parameters `[in] aInstance` The OpenThread instance structure. `[in] aGain` The external FEM's Rx LNA gain in dBm. Return Values `OT_ERROR_NONE` Successfully set the external FEM's LNA gain. `OT_ERROR_NOT_IMPLEMENTED` External FEM's LNA gain setting is not implemented.

### otPlatRadioSetMacFrameCounter

```
void otPlatRadioSetMacFrameCounter(
  otInstance *aInstance,
  uint32_t aMacFrameCounter
)
```
Sets the current MAC frame counter value.

Is used when radio provides `OT_RADIO_CAPS_TRANSMIT_SEC` capability.

<br />

Details Parameters `[in] aInstance` A pointer to an OpenThread instance. `[in] aMacFrameCounter` The MAC frame counter value.

### otPlatRadioSetMacFrameCounterIfLarger

```
void otPlatRadioSetMacFrameCounterIfLarger(
  otInstance *aInstance,
  uint32_t aMacFrameCounter
)
```
Sets the current MAC frame counter value only if the new given value is larger than the current value.

Is used when radio provides `OT_RADIO_CAPS_TRANSMIT_SEC` capability.

<br />

Details Parameters `[in] aInstance` A pointer to an OpenThread instance. `[in] aMacFrameCounter` The MAC frame counter value.

### otPlatRadioSetMacKey

```
void otPlatRadioSetMacKey(
  otInstance *aInstance,
  uint8_t aKeyIdMode,
  uint8_t aKeyIndex,
  const otMacKeyMaterial *aPrevKey,
  const otMacKeyMaterial *aCurrKey,
  const otMacKeyMaterial *aNextKey,
  otRadioKeyType aKeyType
)
```
Update MAC keys and key index.

Is used when radio provides `OT_RADIO_CAPS_TRANSMIT_SEC` capability.

Radio platform implementations MUST ignore the `aKeyIdMode` parameter entirely and treat the keys configured via this API as Key ID Mode 1 (standard Thread security).

This API was originally introduced with the `aKeyIdMode` parameter for potential future extensions, and it is retained in the function signature for backward compatibility. However, in practice, platform transmit security is only intended and used for Key ID Mode 1. Attempting to support or interpret other Key ID modes in the radio platform introduces complexity and ambiguity regarding how `aKeyIdMode` values are represented (e.g., bit-shifted as it appears in the IEEE 802.15.4 Security Control field vs. simple sequential mode values 0, 1, 2).

A call to this API replaces any previously set MAC keys.

The radio platform should reset the current security MAC frame counter tracked by the radio on this call. While this is highly recommended, the OpenThread stack, as a safeguard, will also reset the frame counter using the `https://openthread.io/reference/group/radio-config#group__radio-config_1ga2409be82c51b66cf831308395965bce9` before calling this API.

<br />

Details Parameters `[in] aInstance` A pointer to an OpenThread instance. `[in] aKeyIdMode` The key ID mode (must be ignored by the radio platform). `[in] aKeyIndex` Current MAC key index. `[in] aPrevKey` A pointer to the previous MAC key. `[in] aCurrKey` A pointer to the current MAC key. `[in] aNextKey` A pointer to the next MAC key. `[in] aKeyType` Key Type used.

### otPlatRadioSetPanId

```
void otPlatRadioSetPanId(
  otInstance *aInstance,
  otPanId aPanId
)
```
Set the PAN ID for address filtering.

<br />

Details Parameters `[in] aInstance` The OpenThread instance structure. `[in] aPanId` The IEEE 802.15.4 PAN ID. **See also:**   
[otPlatRadioEnable()](https://openthread.io/reference/group/radio-operation#group__radio-operation_1gabfe31d09ed784e1799cb43187b302c8d)   
[otPlatRadioSetPromiscuous()](https://openthread.io/reference/group/radio-config#group__radio-config_1ga0a905ad5c76c5931ee2ef395342f0dca)   

### otPlatRadioSetPromiscuous

```
void otPlatRadioSetPromiscuous(
  otInstance *aInstance,
  bool aEnable
)
```
Enable or disable promiscuous mode.

<br />

Details Parameters `[in] aInstance` The OpenThread instance structure. `[in] aEnable` TRUE to enable or FALSE to disable promiscuous mode.

### otPlatRadioSetRxOnWhenIdle

```
void otPlatRadioSetRxOnWhenIdle(
  otInstance *aInstance,
  bool aEnable
)
```
Sets the rx-on-when-idle state to the radio platform.

There are a few situations that the radio can enter sleep state if the device is in rx-off-when-idle state but it's hard and costly for the SubMac to identify these situations and instruct the radio to enter sleep:


- Finalization of a regular frame reception task, provided that:
  - The frame is received without errors and passes the filtering and it's not an spurious ACK.
  - ACK is not requested or transmission of ACK is not possible due to internal conditions.
- Finalization of a frame transmission or transmission of an ACK frame, when ACK is not requested in the transmitted frame.
- Finalization of the reception operation of a requested ACK due to:
  - ACK timeout expiration.
  - Reception of an invalid ACK or not an ACK frame.
  - Reception of the proper ACK, unless the transmitted frame was a Data Request Command and the frame pending bit on the received ACK is set to true. In this case the radio platform implementation SHOULD keep the receiver on until a determined timeout which triggers an idle period start.`OPENTHREAD_CONFIG_MAC_DATA_POLL_TIMEOUT` can be taken as a reference for this.
- Finalization of a stand alone CCA task.
- Finalization of a CCA operation with busy result during CSMA/CA procedure.
- Finalization of an Energy Detection task.
- Finalization of a radio reception window scheduled with `otPlatRadioReceiveAt`.

<br />

If a platform supports `OT_RADIO_CAPS_RX_ON_WHEN_IDLE` it must also support `OT_RADIO_CAPS_CSMA_BACKOFF` and handle idle periods after CCA as described above.

Upon the transition of the "RxOnWhenIdle" flag from TRUE to FALSE, the radio platform should enter sleep mode. If the radio is currently in receive mode, it should enter sleep mode immediately. Otherwise, it should enter sleep mode after the current operation is completed.

<br />

Details Parameters `[in] aInstance` The OpenThread instance structure. `[in] aEnable` TRUE to keep radio in Receive state, FALSE to put to Sleep state during idle periods.

### otPlatRadioSetShortAddress

```
void otPlatRadioSetShortAddress(
  otInstance *aInstance,
  otShortAddress aShortAddress
)
```
Set the Short Address for address filtering.

<br />

Details Parameters `[in] aInstance` The OpenThread instance structure. `[in] aShortAddress` The IEEE 802.15.4 Short Address. **See also:**   
[otPlatRadioEnable()](https://openthread.io/reference/group/radio-operation#group__radio-operation_1gabfe31d09ed784e1799cb43187b302c8d)   
[otPlatRadioSetPromiscuous()](https://openthread.io/reference/group/radio-config#group__radio-config_1ga0a905ad5c76c5931ee2ef395342f0dca)   

### otPlatRadioSetTransmitPower

```
otError otPlatRadioSetTransmitPower(
  otInstance *aInstance,
  int8_t aPower
)
```
Set the radio's transmit power in dBm for all channels.


> [!NOTE]
> **Note:** The real transmit power will be no larger than the power specified in the max power table for the current channel that was configured by `https://openthread.io/reference/group/radio-operation#group__radio-operation_1gaf61b533edd275c278263659f93b30b5b`.

<br />

Details Parameters `[in] aInstance` The OpenThread instance structure. `[in] aPower` The transmit power in dBm. Return Values `OT_ERROR_NONE` Successfully set the transmit power. `OT_ERROR_NOT_IMPLEMENTED` Transmit power configuration via dBm is not implemented.

## Resources

OpenThread API Reference topics originate from the source code, available
on [GitHub](https://github.com/openthread/openthread/tree/main/include/openthread).
For more information, or to contribute to our documentation, refer to
[Resources](https://openthread.io/resources).