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.

Last updated