61 MXC_I2S_MONO_LEFT_CH = 2,
62 MXC_I2S_MONO_RIGHT_CH = 3
85 MXC_I2S_DATASIZE_BYTE,
86 MXC_I2S_DATASIZE_HALFWORD,
92 MXC_I2S_SAMPLESIZE_EIGTH,
93 MXC_I2S_SAMPLESIZE_SIXTEEN,
94 MXC_I2S_SAMPLESIZE_TWENTY,
95 MXC_I2S_SAMPLESIZE_TWENTYFOUR,
96 MXC_I2S_SAMPLESIZE_THIRTYTWO,
101 MXC_I2S_INTERNAL_SCK_WS_0,
102 MXC_I2S_INTERNAL_SCK_WS_1,
103 MXC_I2S_EXTERNAL_SCK_INTERNAL_WS,
104 MXC_I2S_EXTERNAL_SCK_EXTERNAL_WS,
109 mxc_i2s_ch_mode_t channelMode;
111 mxc_i2s_wsize_t wordSize;
112 mxc_i2s_justify_t justify;
113 mxc_i2s_bitorder_t bitOrder;
114 mxc_i2s_polarity_t wsPolarity;
115 mxc_i2s_samplesize_t sampleSize;
int MXC_I2S_GetFlags(void)
Get the set interrupt flags.
void MXC_I2S_TXDMAConfig(void *src_addr, int len)
Configure TX DMA transaction.
void MXC_I2S_TXDisable(void)
Disable TX channel.
mxc_i2s_bitorder_t
I2S transaction bit order.
Definition: i2s.h:72
void MXC_I2S_Flush(void)
Flush I2S FIFO.
mxc_i2s_stereo_t
I2S stereo mode select.
Definition: i2s.h:60
void MXC_I2S_ClearFlags(uint32_t flags)
Clears Interrupt Flags.
void MXC_I2S_DisableInt(uint32_t flags)
Disable Interrupt.
void MXC_I2S_RXDMAConfig(void *dest_addr, int len)
Configure RX DMA transaction.
I2S Configuration Struct.
Definition: i2s.h:108
void MXC_I2S_EnableInt(uint32_t flags)
Enable Interrupts.
int MXC_I2S_Shutdown(void)
Release I2S, clear configuration and flush FIFOs.
int MXC_I2S_SetFrequency(mxc_i2s_ch_mode_t mode, uint16_t clkdiv)
Set I2S Frequency, automatically called by I2S_Init.
mxc_i2s_polarity_t
I2S polarity configuration.
Definition: i2s.h:66
mxc_i2s_ch_mode_t
I2S channel mode.
Definition: i2s.h:100
void MXC_I2S_RXEnable(void)
Enable RX channel.
mxc_i2s_justify_t
I2S transaction justify order.
Definition: i2s.h:78
int MXC_I2S_SetRXThreshold(uint8_t threshold)
Set threshold for RX FIFO.
mxc_i2s_samplesize_t
I2S transaction sample size.
Definition: i2s.h:91
int MXC_I2S_ConfigData(mxc_i2s_req_t *req)
Configure data to be transmitted based on word and sample size.
void MXC_I2S_RXDisable(void)
Disable RX channel.
void MXC_I2S_TXEnable(void)
Enable TX channel.
int MXC_I2S_Init(mxc_i2s_req_t *req)
Initialize I2S resources.
mxc_i2s_wsize_t
I2S transaction word size.
Definition: i2s.h:84