> ## 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.

# Tsm Module API

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

## Structures

### `param_id_tsm_max_min_speed_t`

**Members**

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

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

### `param_id_tsm_speed_t`

**Members**

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

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

### `param_id_tsm_ver_t`

**Members**

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

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

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

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

### `param_id_tsm_session_time_scaling_t`

**Members**

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

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

## Type Definitions

### `param_id_tsm_max_min_speed_t`

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

### `param_id_tsm_speed_t`

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

### `param_id_tsm_ver_t`

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

### `param_id_tsm_session_time_scaling_t`

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

## Macros

### `TSM_STACK_SIZE`

```c theme={null}
#define TSM_STACK_SIZE 100 * 1024
```

### `TSM_MAX_PORTS`

```c theme={null}
#define TSM_MAX_PORTS 1
```

### `TSM_MIN_CHANNELS`

```c theme={null}
#define TSM_MIN_CHANNELS 1
```

### `TSM_MAX_CHANNELS`

```c theme={null}
#define TSM_MAX_CHANNELS 2
```

### `CAPI_TSM_DEFAULT_PORT`

```c theme={null}
#define CAPI_TSM_DEFAULT_PORT 0
```

### `PARAM_ID_TSM_MAX_MIN_SPEED`

```c theme={null}
#define PARAM_ID_TSM_MAX_MIN_SPEED 0x08001A62
```

### `PARAM_ID_TSM_SPEED_FACTOR`

```c theme={null}
#define PARAM_ID_TSM_SPEED_FACTOR 0x08001A63
```

### `PARAM_ID_TSM_VERSION`

```c theme={null}
#define PARAM_ID_TSM_VERSION 0x08001A65
```

### `PARAM_ID_TSM_SESSION_TIME_SCALING`

```c theme={null}
#define PARAM_ID_TSM_SESSION_TIME_SCALING 0x08001A58
```

### `MODULE_ID_TSM`

```c theme={null}
#define MODULE_ID_TSM 0x07001172
```
