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
I2S_CFG_Type Struct Reference
[I2S_Public_Types]
I2S configuration structure definition. More...
#include <lpc17xx_i2s.h>
Data Fields | |
| uint8_t | mono |
| the number of bytes in data as follow: -I2S_WORDWIDTH_8: 8 bit data -I2S_WORDWIDTH_16: 16 bit data -I2S_WORDWIDTH_32: 32 bit data | |
| uint8_t | stop |
Set mono/stereo mode, should be:
| |
| uint8_t | reset |
Disables accesses on FIFOs, should be:
| |
| uint8_t | ws_sel |
Asynchronously reset tje transmit channel and FIFO, should be:
| |
| uint8_t | mute |
Set Master/Slave mode, should be:
| |
| uint8_t | Reserved0 [2] |
MUTE mode: when true, the transmit channel sends only zeroes, shoule be:
| |
Detailed Description
I2S configuration structure definition.
Definition at line 216 of file lpc17xx_i2s.h.
Field Documentation
| uint8_t mono |
the number of bytes in data as follow: -I2S_WORDWIDTH_8: 8 bit data -I2S_WORDWIDTH_16: 16 bit data -I2S_WORDWIDTH_32: 32 bit data
Definition at line 221 of file lpc17xx_i2s.h.
| uint8_t mute |
Set Master/Slave mode, should be:
- I2S_MASTER_MODE: I2S master mode
- I2S_SLAVE_MODE: I2S slave mode.
Definition at line 233 of file lpc17xx_i2s.h.
| uint8_t Reserved0[2] |
MUTE mode: when true, the transmit channel sends only zeroes, shoule be:
- I2S_MUTE_ENABLE: enable mute mode
- I2S_MUTE_DISABLE: disable mute mode.
Definition at line 236 of file lpc17xx_i2s.h.
| uint8_t reset |
Disables accesses on FIFOs, should be:
- I2S_STOP_ENABLE: enable stop mode
- I2S_STOP_DISABLE: disable stop mode.
Definition at line 227 of file lpc17xx_i2s.h.
| uint8_t stop |
Set mono/stereo mode, should be:
- I2S_STEREO: stereo mode
- I2S_MONO: mono mode.
Definition at line 224 of file lpc17xx_i2s.h.
| uint8_t ws_sel |
Asynchronously reset tje transmit channel and FIFO, should be:
- I2S_RESET_ENABLE: enable reset mode
- I2S_RESET_DISABLE: disable reset mode.
Definition at line 230 of file lpc17xx_i2s.h.
Generated on Tue Jul 12 2022 17:06:03 by
1.7.2