XCORE SDK
XCORE Software Development Kit
|
Functions | |
void | i2s_slave (const i2s_callback_group_t *const i2s_cbg, port_t p_dout[], const size_t num_out, port_t p_din[], const size_t num_in, port_t p_bclk, port_t p_lrclk, xclock_t bclk) |
The public API for using the HIL I2S slave.
void i2s_slave | ( | const i2s_callback_group_t *const | i2s_cbg, |
port_t | p_dout[], | ||
const size_t | num_out, | ||
port_t | p_din[], | ||
const size_t | num_in, | ||
port_t | p_bclk, | ||
port_t | p_lrclk, | ||
xclock_t | bclk | ||
) |
I2S slave task
This task performs I2S on the provided pins. It will perform callbacks over the i2s_callback_group_t callback group to get/receive data from the application using this component.
The component performs I2S slave so will expect the word clock and bit clock to be driven externally.
i2s_cbg | The I2S callback group pointing to the application's functions to use for initialization and getting and receiving frames. Also points to application specific data which will be shared between the callbacks. |
p_dout | An array of data output ports |
num_out | The number of output data ports |
p_din | An array of data input ports |
num_in | The number of input data ports |
p_bclk | The bit clock input port |
p_lrclk | The word clock input port |
bclk | A clock that will get configured for use with the bit clock |