|
enum | i2s_id { MI2S_ID = 1,
SI2S_ID = 2
} |
| I2S Core ID. More...
|
|
enum | i2s_word_size { I2S_WS_16BITS = 16,
I2S_WS_24BITS = 24,
I2S_WS_32BITS = 32
} |
| I2S Core max word size. More...
|
|
enum | i2s_sr {
I2S_SR_8K = 8000,
I2S_SR_16K = 16000,
I2S_SR_24K = 24000,
I2S_SR_32K = 32000,
I2S_SR_36K = 36000,
I2S_SR_44K = 44100,
I2S_SR_48K = 48000
} |
| I2S sample rate. More...
|
|
enum | i2s_type { I2S_MONO = 1,
I2S_STEREO
} |
| I2S data type. More...
|
|
enum | i2s_ch_id { I2S_CH_1,
I2S_CH_2,
I2S_CH_MAX
} |
| Each I2S Core can have 2 Channel. More...
|
|
enum | i2s_ch_dir { I2S_DIR_TX = 1,
I2S_DIR_RX = 2
} |
| Each I2S channel can be either TX or RX. More...
|
|
enum | i2s_ch_word_sz {
I2S_CH_WS_0_BIT = 0,
I2S_CH_WS_12_BITS,
I2S_CH_WS_16_BITS,
I2S_CH_WS_20_BITS,
I2S_CH_WS_24_BITS,
I2S_CH_WS_32_BITS
} |
| Each I2S channel word size. More...
|
|
enum | i2s_error {
I2S_ERR_OK = 0,
I2S_ERR_INVALID_PARAM = -1,
I2S_ERR_INVALID_STATE = -2,
I2S_ERR_RX_OV = -4,
I2S_ERR_TX_OV = -5,
I2S_ERR_DMA_NOT_AVAIL = -6,
I2S_ERR_DMA_TRAN = -7
} |
| I2S driver return code. More...
|
|
|
void * | hal_i2s_open (int id, int sr, int word_sz) |
| Initialize I2S driver. More...
|
|
int | hal_i2s_close (void *hdl) |
| Close I2S driver. More...
|
|
int | hal_i2s_ch_en (void *hdl, int ch_id, int dir, int ch_word_sz, void *buffer0, void *buffer1, uint16_t buffer_len, void *arg, void(*callback)(void *arg, int id, int status)) |
| Enable I2S channel. More...
|
|
int | hal_i2s_ch_dis (void *hdl, int ch_id, int dir) |
| Disable I2S channel. More...
|
|
HAL I2S.