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

# USB API

> This file contains USB module APIs.

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

## Structures

### `param_id_usb_audio_intf_cfg_t`

**Members**

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

<ParamField path="svc_interval" type="uint32_t">
  Though the acceptable values are between 125- 3276800, the actual supported values are determined by the equation specified in USB 3.0 documentation.}
</ParamField>

## Type Definitions

### `param_id_usb_audio_intf_cfg_t`

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

## Macros

### `USB_STACK_SIZE`

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

### `PORT_ID_USB_INPUT`

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

### `PORT_ID_USB_OUTPUT`

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

### `PARAM_ID_USB_AUDIO_INTF_CFG`

Parameter used to configure the USB interface

```c theme={null}
#define PARAM_ID_USB_AUDIO_INTF_CFG 0x080010D6
```

### `MODULE_ID_USB_AUDIO_SINK`

Module ID for USB sink module.

```c theme={null}
#define MODULE_ID_USB_AUDIO_SINK 0x0700104F
```

### `MODULE_ID_USB_AUDIO_SOURCE`

End of the Module -->

```c theme={null}
#define MODULE_ID_USB_AUDIO_SOURCE 0x07001050
```
