> For the complete documentation index, see [llms.txt](https://trillbit.gitbook.io/trillbit-sdk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://trillbit.gitbook.io/trillbit-sdk/knowles-smartmic-support/trill-sdk-for-knowles/trillbit-sdk-methods.md).

# Trillbit SDK Methods

### Initialization of parameters for host init call.

User application should set the entire structure contents to zeros before setting individual members.&#x20;

## **Parameters:**&#x20;

1. sdk\_license: License is fetched through the license\_devic&#x65;*\_*&#x73;cript.py. This is required for the SDK to be authenticated and usable.&#x20;

### Host Library functions

### <mark style="color:blue;">**mem\_alloc\_fn**</mark>**:** User application memory allocator.  Used by the SDK to allocate memory. Parameters are similar to libc malloc.

### <mark style="color:blue;">**mem\_free\_fn:**</mark> User application memory allocator. Parameters are similar to libc free.

### <mark style="color:blue;">**trill\_host\_init**</mark>

**Description:** Initialize Trill Host SDK with given parameters.&#x20;

**Params:**&#x20;

* params: Mandatory. Refer to trill\_host\_init\_parameters\_t&#x20;
* handle: Pass this opaque handle to other trill host SDK calls.

**Returns:** int, Returns 0 if License is correct and init was successful else negative error code.

### <mark style="color:blue;">**trill\_host\_handle\_auth**</mark>&#x20;

Description: Handles the Authentication request from IA61x. Pass the data received from RDB command as is to this function.

**Params:**&#x20;

* data: Data received from RDB command to IA61x.
* param: size Size of data buffer in bytes.

**Returns:** int 0 on success, else negative error code.

### <mark style="color:blue;">**trill\_host\_deinit**</mark>

**Description:** Returns the Unique Identifier of MCU or Board as seen by the Host SDK. Initializing the Host before calling this function is not require.

**Returns:** const char\* Returns a NULL terminated Unique Identifier of MCU or Board.

### <mark style="color:blue;">**trill\_host\_get\_id**</mark>

**Description:**&#x20;

Shutdown the IA611 SDK. Free up any allocated resources. User application can Reset or Load different DSP algorithm or Power off the IA611 chip after this call.

**Params:**&#x20;

handle: Trill host handle as received from init call.

**Returns:** int Returns 0 on success else negative error code.
