> ## Documentation Index
> Fetch the complete documentation index at: https://dragonwingdocs-staging.qualcomm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Rate Adapted Timer API

> This file contains RATE_ADAPTED_TIMER module APIs.

**Header:** `spf/api/modules/rate_adapted_timer_api.h`

## Structures

### `param_id_rat_mf_t`

**Members**

<ParamField path="sample_rate" type="uint32_t">
  }
</ParamField>

<ParamField path="bits_per_sample" type="uint16_t">
  }
</ParamField>

<ParamField path="q_factor" type="uint16_t" />

<ParamField path="data_format" type="uint32_t" />

<ParamField path="num_channels" type="uint32_t">
  }
</ParamField>

<ParamField path="channel_map" type="uint16_t">
  ->Specify a channel mapping for each output channel
  ->If the number of channels is not a multiple of four, zero padding must be added to the channel type array to align the packet to a multiple of 32 bits}
</ParamField>

## Type Definitions

### `param_id_rat_mf_t`

```cpp theme={null}
typedef struct param_id_rat_mf_t param_id_rat_mf_t
```

## Macros

### `QT_REFCLK_TIMING_INPUT`

```c theme={null}
#define QT_REFCLK_TIMING_INPUT AR_NON_GUID(0xC0000001)
```

### `REFCLK_REMOTE_TIMING_INPUT`

```c theme={null}
#define REFCLK_REMOTE_TIMING_INPUT AR_NON_GUID(0xC0000002)
```

### `QT_REMOTE_TIMING_INPUT`

```c theme={null}
#define QT_REMOTE_TIMING_INPUT AR_NON_GUID(0xC0000003)
```

### `RATE_ADAPTED_TIMER_STACK_SIZE`

```c theme={null}
#define RATE_ADAPTED_TIMER_STACK_SIZE 4096
```

### `PORT_ID_RATE_ADAPTED_TIMER_INPUT`

```c theme={null}
#define PORT_ID_RATE_ADAPTED_TIMER_INPUT 0x2
```

### `PORT_ID_RATE_ADAPTED_TIMER_OUTPUT`

```c theme={null}
#define PORT_ID_RATE_ADAPTED_TIMER_OUTPUT 0x1
```

### `PARAM_ID_RAT_MEDIA_FORMAT`

ID of the parameter used to configure the RAT media format.

```c theme={null}
#define PARAM_ID_RAT_MEDIA_FORMAT 0x080010D0
```

### `MODULE_ID_RATE_ADAPTED_TIMER`

Module ID for Rate Adapted Timer module.

```c theme={null}
#define MODULE_ID_RATE_ADAPTED_TIMER 0x07001041
```
