Trillbit SDK for Knowles SmartMic IA61x
  • Introduction
  • technological overview
    • In this release
    • Use cases
    • Quick links
  • features
    • Payloads
    • Protocols
    • Distances
    • Requirements
    • Platforms supported
  • demo app
    • TrillPlay- Resources
    • TrillPlay- Specifications
  • Integrating Trillbit SDK
    • Getting started
      • Licensing and Setting up Trillbit Host library
      • Authentication of the Trillbit IA61x algorithm
      • Trillbit SDK
      • Sending Data to the SmartMic
  • troubleshooting
    • Host SDK Error codes
    • Troubleshooting
  • Reference
    • References
    • FAQs
Powered by GitBook
On this page
  • Initialization of parameters for host init call.
  • Parameters:
  • Methods:
  • Host Library functions
  • trill_host_init
  • trill_host_handle_auth
  • trill_host_deinit
  • trill_host_get_id
  1. Integrating Trillbit SDK
  2. Getting started

Trillbit SDK

Initialization of parameters for host init call.

User application should set the entire structure contents to zeros before setting individual members.

Parameters:

  1. sdk_license: License is fetched through the license_device_script.py. This is required for the SDK to be authenticated and usable.

Methods:

mem_alloc_fn: User application memory allocator.: Used by the SDK to allocate memory. Parameters are similar to libc malloc.

mem_free_fn: User application memory allocator. Parameters are similar to libc free.

Host Library functions

trill_host_init

Description: Initialize Trill Host SDK with given parameters.

Params:

  • params: Mandatory. Refer to trill_host_init_parameters_t

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

trill_host_handle_auth

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

Params:

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

trill_host_deinit

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.

trill_host_get_id

Description:

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:

handle: Trill host handle as received from init call.

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

PreviousAuthentication of the Trillbit IA61x algorithmNextSending Data to the SmartMic

Last updated 2 years ago