uc-sdk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
I2S_CFG_Type Struct Reference

I2S configuration structure definition. More...

#include <lpc17xx_i2s.h>

Public Attributes

uint8_t wordwidth
 
uint8_t mono
 
uint8_t stop
 
uint8_t reset
 
uint8_t ws_sel
 
uint8_t mute
 
uint8_t Reserved0 [2]
 

Detailed Description

I2S configuration structure definition.

Definition at line 267 of file lpc17xx_i2s.h.

Member Data Documentation

uint8_t I2S_CFG_Type::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 272 of file lpc17xx_i2s.h.

uint8_t I2S_CFG_Type::mute
Set Master/Slave mode, should be:
  • I2S_MASTER_MODE: I2S master mode
  • I2S_SLAVE_MODE: I2S slave mode

Definition at line 284 of file lpc17xx_i2s.h.

uint8_t I2S_CFG_Type::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 287 of file lpc17xx_i2s.h.

uint8_t I2S_CFG_Type::reset
Disables accesses on FIFOs, should be:
  • I2S_STOP_ENABLE: enable stop mode
  • I2S_STOP_DISABLE: disable stop mode

Definition at line 278 of file lpc17xx_i2s.h.

uint8_t I2S_CFG_Type::stop
Set mono/stereo mode, should be:
  • I2S_STEREO: stereo mode
  • I2S_MONO: mono mode

Definition at line 275 of file lpc17xx_i2s.h.

uint8_t I2S_CFG_Type::wordwidth

Definition at line 268 of file lpc17xx_i2s.h.

uint8_t I2S_CFG_Type::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 281 of file lpc17xx_i2s.h.


The documentation for this struct was generated from the following file: