group::I2S

This module implements an I2S master.

Details

defineI2S_VERSION


defineI2S_IOC_IDENT_CHAR


defineI_I2S_GETVERSION


defineI_I2S_GETINFO


defineI_I2S_SETATTR


defineI_I2S_SETACTION


defineI_I2S_MUTE


defineI_I2S_UNMUTE


defineI_I2S_TOTAL


enum@19

  • I2S_FLAG_IS_WIDTH_8 I2S Word Width 8 bits
  • I2S_FLAG_IS_WIDTH_16 I2S Word Width 16 bits
  • I2S_FLAG_IS_WIDTH_24 I2S Word Width 24 bits
  • I2S_FLAG_IS_WIDTH_32 I2S Word Width 32 bits
  • I2S_FLAG_IS_MONO I2S Mono mode
  • I2S_FLAG_IS_STEREO I2S Stereo mode (default behavoir)
  • I2S_FLAG_SET_MASTER Set the I2S as a master
  • I2S_FLAG_SET_SLAVE Set the I2S as a slave
  • I2S_FLAG_IS_TRANSMITTER Set the I2S transmitter (master or slave)
  • I2S_FLAG_IS_RECEIVER Set the I2S receiver (master or slave)
  • I2S_FLAG_IS_FORMAT_MSB Set this bit for MSB format
  • I2S_FLAG_IS_FORMAT_LSB Set this bit for LSB format
  • I2S_FLAG_IS_MCK_ENABLED Set this bit to enable the mclk output
  • I2S_FLAG_IS_FORMAT_PCM_SHORT Set this bit for PCM Short format
  • I2S_FLAG_IS_FORMAT_PCM_LONG Set this bit for PCM Long format
  • I2S_FLAG_IS_WIDTH_16_EXTENDED I2S has 16-bits of data in 32-bit blocks
  • SAI_FLAG_IS_OUTPUTDRIVE_DISABLE SAI_Block_Output_Drive SAI Block Output Drive
  • SAI_FLAG_IS_FIFOTHRESHOLD_EMPTY SAI_Block_Fifo_Threshold SAI Block Fifo Threshold
  • SAI_FLAG_IS_FIFOTHRESHOLD_1QF SAI_Block_Fifo_Threshold SAI Block Fifo Threshold
  • SAI_FLAG_IS_FIFOTHRESHOLD_HF SAI_Block_Fifo_Threshold SAI Block Fifo Threshold
  • SAI_FLAG_IS_FIFOTHRESHOLD_3QF SAI_Block_Fifo_Threshold SAI Block Fifo Threshold
  • SAI_FLAG_IS_FIFOTHRESHOLD_FULL SAI_Block_Fifo_Threshold SAI Block Fifo Threshold
  • SAI_FLAG_IS_ULAW_1CPL_COMPANDING SAI Block Companding Mode
  • SAI_FLAG_IS_ALAW_1CPL_COMPANDING SAI Block Companding Mode
  • SAI_FLAG_IS_ULAW_2CPL_COMPANDING SAI Block Companding Mode
  • SAI_FLAG_IS_ALAW_2CPL_COMPANDING SAI Block Companding Mode
  • SAI_FLAG_ENABLE SAI enable command
  • SAI_DMA_ENABLE SAI dma enable command
  • SAI_FLAG_IS_SYNCHRONOUS Synchronous with other block of same SAI
  • SAI_FLAG_IS_SYNCHRONOUS_EXT_SAI1 Synchronous with other SAI, SAI1
  • SAI_FLAG_IS_SYNCHRONOUS_EXT_SAI2 Synchronous with other SAI, SAI2
  • SAI_FLAG_SET_SLOT update active slot


date: “2019-06-27” layout: post title: struct::i2s_info_t katex: true

categories: struct

This structure defines how the control structure for configuring the I2S port.

Methods

Details

public u32o_flags

Mode flags (see I2SMODE*)


public u32o_events

Mode flags (see I2SMODE*)


public u32freq

The I2S audio frequency


public u32resd



date: “2019-06-27” layout: post title: struct::i2s_pin_assignment_t katex: true

categories: struct

Methods

Details

publicmcu_pin_tws


publicmcu_pin_tsck


publicmcu_pin_tsdout


publicmcu_pin_tsdin


publicmcu_pin_tmck



date: “2019-06-27” layout: post title: struct::sai_pin_assignment_t katex: true

categories: struct

Methods

Details

publicmcu_pin_tsck

in/out bit clock


publicmcu_pin_tsd

data line


publicmcu_pin_tmclk

output master clock not used in slave mode


publicmcu_pin_tfs

frame synchronization



date: “2019-06-27” layout: post title: struct::i2s_attr_t katex: true

categories: struct

Methods

Details

public u32o_flags

Flag bitmask


public u32freq

The I2S audio frequency


public i2s_pin_assignment_tpin_assignment

The pin assignement values


public u32mck_mult

The I2S mclk multiplier value


public u32resd



date: “2019-06-27” layout: post title: struct::sai_attr_t katex: true

categories: struct

Methods

Details

public u32o_flags

Flag bitmask


public u32freq

The sai audio frequency


public u32slot

< active slots


public sai_pin_assignment_tpin_assignment

The pin assignement values


public u32mck_mult

The sai mclk multiplier value


public u32resd


X

Thanks for Coming!

Subscribe to news and updates