| M480 BSP V3.05.001 The Board Support Package for M480 Series

Macros
I2S Exported Constants
Standard Driver » I2S Driver

## Macros
#define | I2S_DATABIT_8
#define | I2S_DATABIT_16
#define | I2S_DATABIT_24
#define | I2S_DATABIT_32
#define | I2S_ENABLE_MONO
#define | I2S_DISABLE_MONO
#define | I2S_FORMAT_I2S
#define | I2S_FORMAT_I2S_MSB
#define | I2S_FORMAT_I2S_LSB
#define | I2S_FORMAT_PCM
#define | I2S_FORMAT_PCM_MSB
#define | I2S_FORMAT_PCM_LSB
#define | I2S_ORDER_AT_MSB
#define | I2S_ORDER_AT_LSB
#define | I2S_TDM_2CH
#define | I2S_TDM_4CH
#define | I2S_TDM_6CH
#define | I2S_TDM_8CH
#define | I2S_TDM_WIDTH_8BIT
#define | I2S_TDM_WIDTH_16BIT
#define | I2S_TDM_WIDTH_24BIT
#define | I2S_TDM_WIDTH_32BIT
#define | I2S_TDM_SYNC_ONE_BCLK
#define | I2S_TDM_SYNC_ONE_CHANNEL
#define | I2S_MODE_SLAVE
#define | I2S_MODE_MASTER
#define | I2S_FIFO_TX_LEVEL_WORD_0
#define | I2S_FIFO_TX_LEVEL_WORD_1
#define | I2S_FIFO_TX_LEVEL_WORD_2
#define | I2S_FIFO_TX_LEVEL_WORD_3
#define | I2S_FIFO_TX_LEVEL_WORD_4
#define | I2S_FIFO_TX_LEVEL_WORD_5
#define | I2S_FIFO_TX_LEVEL_WORD_6
#define | I2S_FIFO_TX_LEVEL_WORD_7
#define | I2S_FIFO_TX_LEVEL_WORD_8
#define | I2S_FIFO_TX_LEVEL_WORD_9
#define | I2S_FIFO_TX_LEVEL_WORD_10
#define | I2S_FIFO_TX_LEVEL_WORD_11
#define | I2S_FIFO_TX_LEVEL_WORD_12
#define | I2S_FIFO_TX_LEVEL_WORD_13
#define | I2S_FIFO_TX_LEVEL_WORD_14
#define | I2S_FIFO_TX_LEVEL_WORD_15
#define | I2S_FIFO_RX_LEVEL_WORD_1
#define | I2S_FIFO_RX_LEVEL_WORD_2
#define | I2S_FIFO_RX_LEVEL_WORD_3
#define | I2S_FIFO_RX_LEVEL_WORD_4
#define | I2S_FIFO_RX_LEVEL_WORD_5
#define | I2S_FIFO_RX_LEVEL_WORD_6
#define | I2S_FIFO_RX_LEVEL_WORD_7
#define | I2S_FIFO_RX_LEVEL_WORD_8
#define | I2S_FIFO_RX_LEVEL_WORD_9
#define | I2S_FIFO_RX_LEVEL_WORD_10
#define | I2S_FIFO_RX_LEVEL_WORD_11
#define | I2S_FIFO_RX_LEVEL_WORD_12
#define | I2S_FIFO_RX_LEVEL_WORD_13
#define | I2S_FIFO_RX_LEVEL_WORD_14
#define | I2S_FIFO_RX_LEVEL_WORD_15
#define | I2S_FIFO_RX_LEVEL_WORD_16
#define | I2S_MONO_RIGHT
#define | I2S_MONO_LEFT
#define | I2S_RIGHT
#define | I2S_LEFT

## Detailed Description

## Macro Definition Documentation

## ◆ I2S_DATABIT_16

#define I2S_DATABIT_16

I2S data width is 16-bit

Definition at line 29 of file i2s.h.

## ◆ I2S_DATABIT_24

#define I2S_DATABIT_24

I2S data width is 24-bit

Definition at line 30 of file i2s.h.

## ◆ I2S_DATABIT_32

#define I2S_DATABIT_32

I2S data width is 32-bit

Definition at line 31 of file i2s.h.

## ◆ I2S_DATABIT_8

#define I2S_DATABIT_8

I2S data width is 8-bit

Definition at line 28 of file i2s.h.

## ◆ I2S_DISABLE_MONO

#define I2S_DISABLE_MONO

Stereo channel

Definition at line 35 of file i2s.h.

## ◆ I2S_ENABLE_MONO

#define I2S_ENABLE_MONO

Mono channel

Definition at line 34 of file i2s.h.

## ◆ I2S_FIFO_RX_LEVEL_WORD_1

#define I2S_FIFO_RX_LEVEL_WORD_1

RX threshold is 1 word

Definition at line 87 of file i2s.h.

## ◆ I2S_FIFO_RX_LEVEL_WORD_10

#define I2S_FIFO_RX_LEVEL_WORD_10

RX threshold is 10 words

Definition at line 96 of file i2s.h.

## ◆ I2S_FIFO_RX_LEVEL_WORD_11

#define I2S_FIFO_RX_LEVEL_WORD_11

RX threshold is 11 words

Definition at line 97 of file i2s.h.

## ◆ I2S_FIFO_RX_LEVEL_WORD_12

#define I2S_FIFO_RX_LEVEL_WORD_12

RX threshold is 12 words

Definition at line 98 of file i2s.h.

## ◆ I2S_FIFO_RX_LEVEL_WORD_13

#define I2S_FIFO_RX_LEVEL_WORD_13

RX threshold is 13 words

Definition at line 99 of file i2s.h.

## ◆ I2S_FIFO_RX_LEVEL_WORD_14

#define I2S_FIFO_RX_LEVEL_WORD_14

RX threshold is 14 words

Definition at line 100 of file i2s.h.

## ◆ I2S_FIFO_RX_LEVEL_WORD_15

#define I2S_FIFO_RX_LEVEL_WORD_15

RX threshold is 15 words

Definition at line 101 of file i2s.h.

## ◆ I2S_FIFO_RX_LEVEL_WORD_16

#define I2S_FIFO_RX_LEVEL_WORD_16

RX threshold is 16 words

Definition at line 102 of file i2s.h.

## ◆ I2S_FIFO_RX_LEVEL_WORD_2

#define I2S_FIFO_RX_LEVEL_WORD_2

RX threshold is 2 words

Definition at line 88 of file i2s.h.

## ◆ I2S_FIFO_RX_LEVEL_WORD_3

#define I2S_FIFO_RX_LEVEL_WORD_3

RX threshold is 3 words

Definition at line 89 of file i2s.h.

## ◆ I2S_FIFO_RX_LEVEL_WORD_4

#define I2S_FIFO_RX_LEVEL_WORD_4

RX threshold is 4 words

Definition at line 90 of file i2s.h.

## ◆ I2S_FIFO_RX_LEVEL_WORD_5

#define I2S_FIFO_RX_LEVEL_WORD_5

RX threshold is 5 words

Definition at line 91 of file i2s.h.

## ◆ I2S_FIFO_RX_LEVEL_WORD_6

#define I2S_FIFO_RX_LEVEL_WORD_6

RX threshold is 6 words

Definition at line 92 of file i2s.h.

## ◆ I2S_FIFO_RX_LEVEL_WORD_7

#define I2S_FIFO_RX_LEVEL_WORD_7

RX threshold is 7 words

Definition at line 93 of file i2s.h.

## ◆ I2S_FIFO_RX_LEVEL_WORD_8

#define I2S_FIFO_RX_LEVEL_WORD_8

RX threshold is 8 words

Definition at line 94 of file i2s.h.

## ◆ I2S_FIFO_RX_LEVEL_WORD_9

#define I2S_FIFO_RX_LEVEL_WORD_9

RX threshold is 9 words

Definition at line 95 of file i2s.h.

## ◆ I2S_FIFO_TX_LEVEL_WORD_0

#define I2S_FIFO_TX_LEVEL_WORD_0

TX threshold is 0 word

Definition at line 70 of file i2s.h.

## ◆ I2S_FIFO_TX_LEVEL_WORD_1

#define I2S_FIFO_TX_LEVEL_WORD_1

TX threshold is 1 word

Definition at line 71 of file i2s.h.

## ◆ I2S_FIFO_TX_LEVEL_WORD_10

#define I2S_FIFO_TX_LEVEL_WORD_10

TX threshold is 10 words

Definition at line 80 of file i2s.h.

## ◆ I2S_FIFO_TX_LEVEL_WORD_11

#define I2S_FIFO_TX_LEVEL_WORD_11

TX threshold is 11 words

Definition at line 81 of file i2s.h.

## ◆ I2S_FIFO_TX_LEVEL_WORD_12

#define I2S_FIFO_TX_LEVEL_WORD_12

TX threshold is 12 words

Definition at line 82 of file i2s.h.

## ◆ I2S_FIFO_TX_LEVEL_WORD_13

#define I2S_FIFO_TX_LEVEL_WORD_13

TX threshold is 13 words

Definition at line 83 of file i2s.h.

## ◆ I2S_FIFO_TX_LEVEL_WORD_14

#define I2S_FIFO_TX_LEVEL_WORD_14

TX threshold is 14 words

Definition at line 84 of file i2s.h.

## ◆ I2S_FIFO_TX_LEVEL_WORD_15

#define I2S_FIFO_TX_LEVEL_WORD_15

TX threshold is 15 words

Definition at line 85 of file i2s.h.

## ◆ I2S_FIFO_TX_LEVEL_WORD_2

#define I2S_FIFO_TX_LEVEL_WORD_2

TX threshold is 2 words

Definition at line 72 of file i2s.h.

## ◆ I2S_FIFO_TX_LEVEL_WORD_3

#define I2S_FIFO_TX_LEVEL_WORD_3

TX threshold is 3 words

Definition at line 73 of file i2s.h.

## ◆ I2S_FIFO_TX_LEVEL_WORD_4

#define I2S_FIFO_TX_LEVEL_WORD_4

TX threshold is 4 words

Definition at line 74 of file i2s.h.

## ◆ I2S_FIFO_TX_LEVEL_WORD_5

#define I2S_FIFO_TX_LEVEL_WORD_5

TX threshold is 5 words

Definition at line 75 of file i2s.h.

## ◆ I2S_FIFO_TX_LEVEL_WORD_6

#define I2S_FIFO_TX_LEVEL_WORD_6

TX threshold is 6 words

Definition at line 76 of file i2s.h.

## ◆ I2S_FIFO_TX_LEVEL_WORD_7

#define I2S_FIFO_TX_LEVEL_WORD_7

TX threshold is 7 words

Definition at line 77 of file i2s.h.

## ◆ I2S_FIFO_TX_LEVEL_WORD_8

#define I2S_FIFO_TX_LEVEL_WORD_8

TX threshold is 8 words

Definition at line 78 of file i2s.h.

## ◆ I2S_FIFO_TX_LEVEL_WORD_9

#define I2S_FIFO_TX_LEVEL_WORD_9

TX threshold is 9 words

Definition at line 79 of file i2s.h.

## ◆ I2S_FORMAT_I2S

#define I2S_FORMAT_I2S

I2S data format

Definition at line 38 of file i2s.h.

## ◆ I2S_FORMAT_I2S_LSB

#define I2S_FORMAT_I2S_LSB

I2S LSB data format

Definition at line 40 of file i2s.h.

## ◆ I2S_FORMAT_I2S_MSB

#define I2S_FORMAT_I2S_MSB

I2S MSB data format

Definition at line 39 of file i2s.h.

## ◆ I2S_FORMAT_PCM

#define I2S_FORMAT_PCM

PCM data format

Definition at line 41 of file i2s.h.

## ◆ I2S_FORMAT_PCM_LSB

#define I2S_FORMAT_PCM_LSB

PCM LSB data format

Definition at line 43 of file i2s.h.

## ◆ I2S_FORMAT_PCM_MSB

#define I2S_FORMAT_PCM_MSB

PCM MSB data format

Definition at line 42 of file i2s.h.

## ◆ I2S_LEFT

#define I2S_LEFT

Select left channel

Definition at line 110 of file i2s.h.

## ◆ I2S_MODE_MASTER

#define I2S_MODE_MASTER

As master mode

Definition at line 67 of file i2s.h.

## ◆ I2S_MODE_SLAVE

#define I2S_MODE_SLAVE

As slave mode

Definition at line 66 of file i2s.h.

## ◆ I2S_MONO_LEFT

#define I2S_MONO_LEFT

Record mono left channel

Definition at line 106 of file i2s.h.

## ◆ I2S_MONO_RIGHT

#define I2S_MONO_RIGHT

Record mono right channel

Definition at line 105 of file i2s.h.

## ◆ I2S_ORDER_AT_LSB

#define I2S_ORDER_AT_LSB

Channel data is at LSB

Definition at line 47 of file i2s.h.

## ◆ I2S_ORDER_AT_MSB

#define I2S_ORDER_AT_MSB

Channel data is at MSB

Definition at line 46 of file i2s.h.

## ◆ I2S_RIGHT

#define I2S_RIGHT

Select right channel

Definition at line 109 of file i2s.h.

## ◆ I2S_TDM_2CH

#define I2S_TDM_2CH

Use TDM 2 channel

Definition at line 50 of file i2s.h.

## ◆ I2S_TDM_4CH

#define I2S_TDM_4CH

Use TDM 4 channel

Definition at line 51 of file i2s.h.

## ◆ I2S_TDM_6CH

#define I2S_TDM_6CH

Use TDM 6 channel

Definition at line 52 of file i2s.h.

## ◆ I2S_TDM_8CH

#define I2S_TDM_8CH

Use TDM 8 channel

Definition at line 53 of file i2s.h.

## ◆ I2S_TDM_SYNC_ONE_BCLK

#define I2S_TDM_SYNC_ONE_BCLK

TDM sync widht is one BLCK period

Definition at line 62 of file i2s.h.

## ◆ I2S_TDM_SYNC_ONE_CHANNEL

#define I2S_TDM_SYNC_ONE_CHANNEL

TDM sync widht is one channel period

Definition at line 63 of file i2s.h.

## ◆ I2S_TDM_WIDTH_16BIT

#define I2S_TDM_WIDTH_16BIT

TDM channel witch is 16-bit

Definition at line 57 of file i2s.h.

## ◆ I2S_TDM_WIDTH_24BIT

#define I2S_TDM_WIDTH_24BIT

TDM channel witch is 24-bit

Definition at line 58 of file i2s.h.

## ◆ I2S_TDM_WIDTH_32BIT

#define I2S_TDM_WIDTH_32BIT

TDM channel witch is 32-bit

Definition at line 59 of file i2s.h.

## ◆ I2S_TDM_WIDTH_8BIT

#define I2S_TDM_WIDTH_8BIT

TDM channel witch is 8-bit

Definition at line 56 of file i2s.h.