LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
i2s_001.c File Reference
#include "i2s_001.h"

Go to the source code of this file.

Functions

void IP_I2S_Init (IP_I2S_001_Type *pI2S)
 Initialize for I2S.
 
void IP_I2S_DeInit (IP_I2S_001_Type *pI2S)
 Shutdown I2S.
 
void IP_I2S_SetWordWidth (IP_I2S_001_Type *pI2S, uint8_t TRMode, uint32_t wordwidth)
 Selects the number of bytes in data.
 
void IP_I2S_SetMono (IP_I2S_001_Type *pI2S, uint8_t TRMode, uint32_t mono)
 Set I2S data format is monaural or stereo.
 
void IP_I2S_SetMasterSlaveMode (IP_I2S_001_Type *pI2S, uint8_t TRMode, uint32_t mode)
 Set I2S interface in master/slave mode.
 
void IP_I2S_SetBitRate (IP_I2S_001_Type *pI2S, uint8_t TRMode, uint32_t mclk_divider)
 Set the clock frequency for I2S interface.
 
void IP_I2S_SetXYDivider (IP_I2S_001_Type *pI2S, uint8_t TRMode, uint8_t x_divider, uint8_t y_divider)
 Set the MCLK rate by using a fractional rate generator, dividing down the frequency of PCLK.
 
void IP_I2S_SetWS_Halfperiod (IP_I2S_001_Type *pI2S, uint8_t TRMode, uint32_t ws_halfperiod)
 Set word select (WS) half period.
 
void IP_I2S_ModeConfig (IP_I2S_001_Type *pI2S, uint8_t TRMode, uint32_t clksel, uint32_t fpin, uint32_t mcena)
 Set the I2S operating modes.
 
uint8_t IP_I2S_GetLevel (IP_I2S_001_Type *pI2S, uint8_t TRMode)
 Get the current level of the Transmit/Receive FIFO.
 
void IP_I2S_Send (IP_I2S_001_Type *pI2S, uint32_t data)
 Send a 32-bit data to TXFIFO for transmition.
 
uint32_t IP_I2S_Receive (IP_I2S_001_Type *pI2S)
 Get received data from RXFIFO.
 
void IP_I2S_Start (IP_I2S_001_Type *pI2S, uint8_t TRMode)
 Start the I2S.
 
void IP_I2S_Pause (IP_I2S_001_Type *pI2S, uint8_t TRMode)
 Disables accesses on FIFOs, places the transmit channel in mute mode.
 
void IP_I2S_Mute (IP_I2S_001_Type *pI2S, FunctionalState NewState)
 Transmit channel sends only zeroes.
 
void IP_I2S_Stop (IP_I2S_001_Type *pI2S, uint8_t TRMode)
 Stop I2S asynchronously.
 
void IP_I2S_DMACmd (IP_I2S_001_Type *pI2S, IP_I2S_DMARequestNumber_Type DMANum, uint8_t TRMode, FunctionalState NewState)
 Enable/Disable DMA for the I2S.
 
void IP_I2S_SetFIFODepthDMA (IP_I2S_001_Type *pI2S, uint8_t TRMode, IP_I2S_DMARequestNumber_Type DMANum, uint32_t depth)
 Set the FIFO level on which to create an DMA request.
 
void IP_I2S_InterruptCmd (IP_I2S_001_Type *pI2S, uint8_t TRMode, FunctionalState NewState)
 Enable/Disable interrupt for the I2S.
 
void IP_I2S_SetFIFODepthIRQ (IP_I2S_001_Type *pI2S, uint8_t TRMode, uint32_t depth)
 Set the FIFO level on which to create an irq request.
 
Status IP_I2S_GetIntStatus (IP_I2S_001_Type *pI2S, uint8_t TRMode)
 Get the status of I2S interrupt.