TrillBit SDK
  • Introduction
  • technological overview
    • In this release
    • Use cases
    • Quick links
  • features
    • Payloads and Datarates
    • Protocols
    • Configurations
    • Distances
    • Platforms supported
  • demo applications
    • TrillPlay
      • Specifications
    • TrillIoT
    • Knowles SmartMic
  • Knowles smartmic support
    • Trill SDK for Knowles
      • Requirements
      • Setup Guide
        • Licensing and Setting up Trillbit Host library
        • Authentication of the Trillbit IA61x algorithm
        • Sending Data to the SmartMic
      • Trillbit SDK Methods
      • Troubleshooting
  • android support
    • Trill SDK for Android
      • SDK Requirements
      • Setup Guide
        • Licensing credentials
        • Getting started
        • Integrating the SDK
          • Declare your app's audio permissions
          • Import SDK
          • Declare Trill SDK Callback
          • License and Initialise your Trill SDK
      • Methods and Callbacks
        • Sender methods
        • Receiver methods
        • Callbacks
      • Reducing application size
      • Troubleshooting
        • Error codes
  • ios support
    • Trill SDK for iOS
      • SDK Requirements
      • Setup Guide
        • Licensing Trill SDK
        • Getting started
      • Methods and Callbacks
        • Trill SDK Methods
        • Trill SDK Callbacks and delegates
      • Troubleshooting
  • esp 32 support
    • Trill SDK for ESP-32
      • Requirements
      • Platforms supported
      • Setup Guide
        • Licensing and Setting up Trillbit library
        • Sending data to the ESP32 device
      • Methods and Callbacks
      • Troubleshooting
  • embedded linux
    • Trill SDK for Embedded linux
      • Requirements
      • Architectures supported
      • Demo applications
      • Setup Guide
        • Licensing your Trill SDK
        • Compiling example binaries
        • Instantiate Trill SDK
        • Run the demo code
      • Methods and Callbacks
        • Trill SDK Methods
        • Callbacks
      • Troubleshooting
  • Reference
    • References
    • FAQs
Powered by GitBook
On this page
  1. Knowles smartmic support
  2. Trill SDK for Knowles

Trillbit SDK Methods

PreviousSending Data to the SmartMicNextTroubleshooting

Last updated 2 years ago

CtrlK
  • Initialization of parameters for host init call.
  • Parameters:
  • Host Library functions
  • 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.
  • trill_host_init
  • trill_host_handle_auth
  • trill_host_deinit
  • trill_host_get_id

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.

Host Library functions

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.

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.