NXP's driver library for LPC17xx, ported to mbed's online compiler. Not tested! I had to fix a lot of warings and found a couple of pretty obvious bugs, so the chances are there are more. Original: http://ics.nxp.com/support/documents/microcontrollers/zip/lpc17xx.cmsis.driver.library.zip

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

I2S_Private_Functions

I2S_Private_Functions
[I2S]

Functions

uint8_t I2S_GetWordWidth (LPC_I2S_TypeDef *I2Sx, uint8_t TRMode)
 Get I2S wordwidth value.
uint8_t I2S_GetChannel (LPC_I2S_TypeDef *I2Sx, uint8_t TRMode)
 Get I2S channel value.

Function Documentation

uint8_t I2S_GetChannel ( LPC_I2S_TypeDef *  I2Sx,
uint8_t  TRMode 
)

Get I2S channel value.

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

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

Definition at line 95 of file lpc17xx_i2s.c.

uint8_t I2S_GetWordWidth ( LPC_I2S_TypeDef *  I2Sx,
uint8_t  TRMode 
)

Get I2S wordwidth value.

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

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

Definition at line 67 of file lpc17xx_i2s.c.