WB32F10x Standard Peripherals Firmware Library

宏定义 | 函数
wb32f10x_i2s.h 文件参考

This file contains all the functions prototypes for the I2S firmware library. 更多...

`#include "wb32f10x.h"`

浏览源代码.

## 宏定义
#define | I2S_WordSelectSize_16 I2S_CCR_WSS_16
#define | I2S_WordSelectSize_24 I2S_CCR_WSS_24
#define | I2S_WordSelectSize_32 I2S_CCR_WSS_32
#define | I2S_SclkGate_None I2S_CCR_SCLKG_NONE
#define | I2S_SclkGate_12 I2S_CCR_SCLKG_12
#define | I2S_SclkGate_16 I2S_CCR_SCLKG_16
#define | I2S_SclkGate_20 I2S_CCR_SCLKG_20
#define | I2S_SclkGate_24 I2S_CCR_SCLKG_24
#define | I2S_IT_RXDA (0x01)
#define | I2S_IT_RXFO (0x02)
#define | I2S_IT_TXFE (0x10)
#define | I2S_IT_TXFO (0x20)
#define | I2S_DataFormat_Ignore ((uint32_t)0x00000000)
#define | I2S_DataFormat_12b ((uint32_t)0x00000001)
#define | I2S_DataFormat_16b ((uint32_t)0x00000002)
#define | I2S_DataFormat_20b ((uint32_t)0x00000003)
#define | I2S_DataFormat_24b ((uint32_t)0x00000004)
#define | I2S_DataFormat_32b ((uint32_t)0x00000005)

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

## 详细描述

This file contains all the functions prototypes for the I2S firmware library.

作者
  Westberry Application Team

版本
  V0.1.10

日期
  05-January-2023