M480 BSP V3.05.006
The Board Support Package for M480 Series
Functions
i2s.c File Reference

M480 I2S driver source file. More...

#include <stdio.h>
#include "NuMicro.h"

Go to the source code of this file.

Functions

static uint32_t I2S_GetSourceClockFreq (I2S_T *i2s)
 This function is used to get I2S source clock frequency. More...
 
uint32_t I2S_Open (I2S_T *i2s, uint32_t u32MasterSlave, uint32_t u32SampleRate, uint32_t u32WordWidth, uint32_t u32MonoData, uint32_t u32DataFormat)
 This function configures some parameters of I2S interface for general purpose use. The sample rate may not be used from the parameter, it depends on system's clock settings, but real sample rate used by system will be returned for reference. More...
 
void I2S_Close (I2S_T *i2s)
 Disable I2S function and I2S clock. More...
 
void I2S_EnableInt (I2S_T *i2s, uint32_t u32Mask)
 This function enables the interrupt according to the mask parameter. More...
 
void I2S_DisableInt (I2S_T *i2s, uint32_t u32Mask)
 This function disables the interrupt according to the mask parameter. More...
 
uint32_t I2S_EnableMCLK (I2S_T *i2s, uint32_t u32BusClock)
 Enable MCLK . More...
 
void I2S_DisableMCLK (I2S_T *i2s)
 Disable MCLK . More...
 
void I2S_SetFIFO (I2S_T *i2s, uint32_t u32TxThreshold, uint32_t u32RxThreshold)
 Configure FIFO threshold setting. More...
 
void I2S_ConfigureTDM (I2S_T *i2s, uint32_t u32ChannelWidth, uint32_t u32ChannelNum, uint32_t u32SyncWidth)
 Configure PCM(TDM) function parameters, such as channel width, channel number and sync pulse width. More...
 

Detailed Description

M480 I2S driver source file.

Version
V0.10

SPDX-License-Identifier: Apache-2.0

Definition in file i2s.c.