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. embedded linux
  2. Trill SDK for Embedded linux
  3. Setup Guide

Instantiate Trill SDK

To instantiate, the trill_init method should be called to Initialise the SDK.

This is also the first function to be called before SDK can be used.

  • @param init_opt Initialization options. Refer to trill_init_opts_t <trill.h>

  • @param handle SDK Handle. Preserve it to pass with other calls.

Trill Init Options structure: This will include the details to license, memory that needs to be allocated

n_rx_channels

Total number of RX Channels/Slots present in input block.

rx_channels_en_bm

(Bitmap) Which rx channel/slot to process in input block.

aud_buf_rx_block_size_bytes

Size of Rx/detector audio buffer block. Each sample size in a block is assumed to be 16 bits (Q15). Block size should be = samples_per_block * sample_size

aud_buf_rx_n_blocks

Number of Rx audio buffer blocks.

trill_audio_buf_notify_cb_t aud_buf_rx_notify_cb

Rx audio buffer notification callback. Can be NULL.

aud_buf_tx_block_size_bytes

Size of Tx audio buffer block. Each sample size in a block is 16 bits (Q15).

aud_buf_tx_n_blocks

Number of Tx audio buffer blocks

aud_buf_tx_notify_cb

Set to NULL. Reserved for future.

audio_tx_enable_fn

Called by SDK to enable audio transmitter.

aud_buf_en_rx_add_block

Set it to non-zero value to enable blocking if audio buffer is full while adding blocks.

data_link_cb

Called by SDK to notify data link layer events.

data_link_cb_user_data

User data. Will be returned in call back.

PreviousCompiling example binariesNextRun the demo code

Last updated 2 years ago