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

# Smart Sync API

> This file contains Smart Sync module APIs.

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

## Structures

### `smart_sync_voice_proc_info_t`

**Members**

<ParamField path="is_subscribe" type="uint32_t">
  Flag to indicate whether to subscribe/unsubscribe with Voice Timer.
</ParamField>

<ParamField path="voice_proc_start_offset_us" type="uint32_t">
  voice processing start tick in microseconds
</ParamField>

<ParamField path="voice_proc_start_samples_us" type="uint32_t">
  minimum number of samples (in microseconds) required to start processing at voice processing start tick
</ParamField>

<ParamField path="vfr_cycle_duration_ms" type="uint32_t">
  vfr cycle duration in milliseconds @values :
</ParamField>

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

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

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

## Type Definitions

### `smart_sync_voice_proc_info_t`

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

## Macros

### `SMART_SYNC_MAX_IN_PORTS`

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

### `SMART_SYNC_MAX_OUT_PORTS`

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

### `SMART_SYNC_PRIMARY_IN_PORT_ID`

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

### `SMART_SYNC_PRIMARY_OUT_PORT_ID`

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

### `SMART_SYNC_SECONDARY_IN_PORT_ID`

```c theme={null}
#define SMART_SYNC_SECONDARY_IN_PORT_ID 0x4
```

### `SMART_SYNC_SECONDARY_OUT_PORT_ID`

```c theme={null}
#define SMART_SYNC_SECONDARY_OUT_PORT_ID 0x3
```

### `SMART_SYNC_MAX_CHANNELS`

```c theme={null}
#define SMART_SYNC_MAX_CHANNELS 8
```

### `SMART_SYNC_STACK_SIZE`

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

### `PARAM_ID_SMART_SYNC_VOICE_PROC_INFO`

```c theme={null}
#define PARAM_ID_SMART_SYNC_VOICE_PROC_INFO 0x08001027
```

### `MODULE_ID_SMART_SYNC`

```c theme={null}
#define MODULE_ID_SMART_SYNC 0x0700103C
```
