Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

I2S

Modules

 I2S Public Macros
 I2S Private Macros
 I2S Public Types
 I2S Public Functions

Functions

static uint8_t i2s_GetWordWidth (LPC_I2S_TypeDef *I2Sx, uint8_t TRMode)
 Get I2S wordwidth value.
static uint8_t i2s_GetChannel (LPC_I2S_TypeDef *I2Sx, uint8_t TRMode)
 Get I2S channel value.

Function Documentation

static uint8_t i2s_GetChannel ( LPC_I2S_TypeDef I2Sx,
uint8_t  TRMode 
) [static]

Get I2S channel value.

Parameters:
[in]I2SxI2S peripheral selected, should be: LPC_I2S
[in]TRModeis the I2S mode, should be:

  • I2S_TX_MODE = 0: transmit mode
  • I2S_RX_MODE = 1: receive mode
Returns:
The channel value, should be: 1(mono) or 2(stereo)

Definition at line 87 of file lpc17xx_i2s.c.

static uint8_t i2s_GetWordWidth ( LPC_I2S_TypeDef I2Sx,
uint8_t  TRMode 
) [static]

Get I2S wordwidth value.

Parameters:
[in]I2SxI2S peripheral selected, should be: LPC_I2S
[in]TRModeis the I2S mode, should be:

  • I2S_TX_MODE = 0: transmit mode
  • I2S_RX_MODE = 1: receive mode
Returns:
The wordwidth value, should be: 8,16 or 32

Definition at line 58 of file lpc17xx_i2s.c.