MG32F10x Standard Peripherals Firmware Library
|
This file provides all the I2S firmware functions. More...
Functions | |
void | I2S_DeInit (void) |
Deinitializes the I2S peripheral registers to their default reset values. More... | |
void | I2S_Cmd (FunctionalState NewState) |
Enables or disables the specified I2S peripheral. More... | |
void | I2S_ReceiverCmd (FunctionalState NewState) |
Enables or disables the I2S receiver block. More... | |
void | I2S_TransmitterCmd (FunctionalState NewState) |
Enables or disables the I2S transmitter block. More... | |
void | I2S_ClockConfig (uint32_t I2S_WordSelectSize, uint32_t I2S_SclkGate) |
Configures I2S Clock Generation block. More... | |
void | I2S_ClockCmd (FunctionalState NewState) |
Enables or disables the I2S clock generation block. More... | |
void | I2S_ReceiverFIFOFlush (void) |
Flushes all the RX FIFOs. More... | |
void | I2S_TransmitterFIFOFlush (void) |
Flushes all the TX FIFOs. More... | |
uint32_t | I2S_Channel_ReadLeftData (uint32_t I2S_Channel) |
Read the left stereo data from Rx FIFO. More... | |
uint32_t | I2S_Channel_ReadRightData (uint32_t I2S_Channel) |
Read the right stereo data from Rx FIFO. More... | |
void | I2S_Channel_WriteLeftData (uint32_t I2S_Channel, uint32_t LeftData) |
Write the left stereo data to Tx FIFO. More... | |
void | I2S_Channel_WriteRightData (uint32_t I2S_Channel, uint32_t RightData) |
Write the right stereo data to Tx FIFO. More... | |
void | I2S_Channel_ReceiveCmd (uint32_t I2S_Channel, FunctionalState NewState) |
Enables or disables the receive channel. More... | |
void | I2S_Channel_TransmitCmd (uint32_t I2S_Channel, FunctionalState NewState) |
Enables or disables the transmit channel. More... | |
void | I2S_Channel_ReceiveConfig (uint32_t I2S_Channel, uint32_t I2S_DataFormat) |
Configures the desired data resolution of the receiver. More... | |
void | I2S_Channel_TransmitConfig (uint32_t I2S_Channel, uint32_t I2S_DataFormat) |
Configures the data resolution of the transmitter. More... | |
void | I2S_Channel_ITConfig (uint32_t I2S_Channel, uint8_t I2S_IT, FunctionalState NewState) |
Enables or disables the specified I2S interrupts. More... | |
ITStatus | I2S_Channel_GetITStatus (uint32_t I2S_Channel, uint8_t I2S_IT) |
Checks whether the specified I2S interrupt has occurred or not. More... | |
void | I2S_Channel_ClearITPendingBit (uint32_t I2S_Channel, uint8_t I2S_IT) |
Clears the I2S interrupt pending bits. More... | |
void | I2S_Channel_ReceiveFIFOConfig (uint32_t I2S_Channel, uint8_t Threshold) |
Configures the Rx FIFO threshold. More... | |
void | I2S_Channel_TransmitFIFOConfig (uint32_t I2S_Channel, uint8_t Threshold) |
Configures the Tx FIFO threshold. More... | |
void | I2S_Channel_ReceiveFIFOFlush (uint32_t I2S_Channel) |
Flushes the corresponding RX FIFO. More... | |
void | I2S_Channel_TransmitFIFOFlush (uint32_t I2S_Channel) |
Flushes the corresponding TX FIFO. More... | |
This file provides all the I2S firmware functions.