> Documentation index: https://openthread.io/reference/llms.txt

# otRadioCoexMetrics


`#include <openthread/platform/radio.h>`

The following are valid radio state transitions:

## Summary

(Radio ON) +---+ Enable() +-+ Receive() +---+ Transmit() +---+ \| \|---\>\| \|---\>\| \|---\>\| \| \| Disabled \| \| Sleep \| \| Receive \| \| Transmit \| \| \|\<---\| \|\<---\| \|\<---\| \| +---+ Disable() +-+ Sleep() +---+ Receive() +---+ (Radio OFF) or signal TxDone()

During the IEEE 802.15.4 data request command the transition Sleep-\>Receive-\>Transmit can be shortened to direct transition from Sleep to Transmit if the platform supports the OT_RADIO_CAPS_SLEEP_TO_TX capability. Represents radio coexistence metrics.

| ### Public attributes ||
|---|---|
| `mAvgRxRequestToGrantTime` | `uint32_t` Average time in usec from rx request to grant. |
| `mAvgTxRequestToGrantTime` | `uint32_t` Average time in usec from tx request to grant. |
| `mNumGrantGlitch` | `uint32_t` Number of grant glitches. |
| `mNumRxDelayedGrant` | `uint32_t` Number of rx requests that were not granted within 50us. |
| `mNumRxGrantDeactivatedDuringRequest` | `uint32_t` Number of rx that were in progress when grant was deactivated. |
| `mNumRxGrantImmediate` | `uint32_t` Number of rx requests while grant was active. |
| `mNumRxGrantNone` | `uint32_t` Number of rx requests that completed without receiving grant. |
| `mNumRxGrantWait` | `uint32_t` Number of rx requests while grant was inactive. |
| `mNumRxGrantWaitActivated` | `uint32_t` Number of rx requests while grant was inactive that were ultimately granted. |
| `mNumRxGrantWaitTimeout` | `uint32_t` Number of rx requests while grant was inactive that timed out. |
| `mNumRxRequest` | `uint32_t` Number of rx requests. |
| `mNumTxDelayedGrant` | `uint32_t` Number of tx requests that were not granted within 50us. |
| `mNumTxGrantDeactivatedDuringRequest` | `uint32_t` Number of tx that were in progress when grant was deactivated. |
| `mNumTxGrantImmediate` | `uint32_t` Number of tx requests while grant was active. |
| `mNumTxGrantWait` | `uint32_t` Number of tx requests while grant was inactive. |
| `mNumTxGrantWaitActivated` | `uint32_t` Number of tx requests while grant was inactive that were ultimately granted. |
| `mNumTxGrantWaitTimeout` | `uint32_t` Number of tx requests while grant was inactive that timed out. |
| `mNumTxRequest` | `uint32_t` Number of tx requests. |
| `mStopped` | `bool` Stats collection stopped due to saturation. |

## Public attributes

### mAvgRxRequestToGrantTime

```
uint32_t otRadioCoexMetrics::mAvgRxRequestToGrantTime
```
Average time in usec from rx request to grant.

### mAvgTxRequestToGrantTime

```
uint32_t otRadioCoexMetrics::mAvgTxRequestToGrantTime
```
Average time in usec from tx request to grant.

### mNumGrantGlitch

```
uint32_t otRadioCoexMetrics::mNumGrantGlitch
```
Number of grant glitches.

### mNumRxDelayedGrant

```
uint32_t otRadioCoexMetrics::mNumRxDelayedGrant
```
Number of rx requests that were not granted within 50us.

### mNumRxGrantDeactivatedDuringRequest

```
uint32_t otRadioCoexMetrics::mNumRxGrantDeactivatedDuringRequest
```
Number of rx that were in progress when grant was deactivated.

### mNumRxGrantImmediate

```
uint32_t otRadioCoexMetrics::mNumRxGrantImmediate
```
Number of rx requests while grant was active.

### mNumRxGrantNone

```
uint32_t otRadioCoexMetrics::mNumRxGrantNone
```
Number of rx requests that completed without receiving grant.

### mNumRxGrantWait

```
uint32_t otRadioCoexMetrics::mNumRxGrantWait
```
Number of rx requests while grant was inactive.

### mNumRxGrantWaitActivated

```
uint32_t otRadioCoexMetrics::mNumRxGrantWaitActivated
```
Number of rx requests while grant was inactive that were ultimately granted.

### mNumRxGrantWaitTimeout

```
uint32_t otRadioCoexMetrics::mNumRxGrantWaitTimeout
```
Number of rx requests while grant was inactive that timed out.

### mNumRxRequest

```
uint32_t otRadioCoexMetrics::mNumRxRequest
```
Number of rx requests.

### mNumTxDelayedGrant

```
uint32_t otRadioCoexMetrics::mNumTxDelayedGrant
```
Number of tx requests that were not granted within 50us.

### mNumTxGrantDeactivatedDuringRequest

```
uint32_t otRadioCoexMetrics::mNumTxGrantDeactivatedDuringRequest
```
Number of tx that were in progress when grant was deactivated.

### mNumTxGrantImmediate

```
uint32_t otRadioCoexMetrics::mNumTxGrantImmediate
```
Number of tx requests while grant was active.

### mNumTxGrantWait

```
uint32_t otRadioCoexMetrics::mNumTxGrantWait
```
Number of tx requests while grant was inactive.

### mNumTxGrantWaitActivated

```
uint32_t otRadioCoexMetrics::mNumTxGrantWaitActivated
```
Number of tx requests while grant was inactive that were ultimately granted.

### mNumTxGrantWaitTimeout

```
uint32_t otRadioCoexMetrics::mNumTxGrantWaitTimeout
```
Number of tx requests while grant was inactive that timed out.

### mNumTxRequest

```
uint32_t otRadioCoexMetrics::mNumTxRequest
```
Number of tx requests.

### mStopped

```
bool otRadioCoexMetrics::mStopped
```
Stats collection stopped due to saturation.

## 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.md.txt).