Bouffalo SDK  1.0
Bouffalolab Software Development Kit
bflb_i2s_config_s Struct Reference

I2S configuration structure. More...

#include <bflb_i2s.h>

Collaboration diagram for bflb_i2s_config_s:
Collaboration graph

Data Fields

uint32_t bclk_freq_hz
 
uint8_t role
 
uint8_t format_mode
 
uint8_t channel_mode
 
uint8_t frame_width
 
uint8_t data_width
 
uint8_t fs_offset_cycle
 
uint8_t tx_fifo_threshold
 
uint8_t rx_fifo_threshold
 

Detailed Description

I2S configuration structure.

Parameters
bclk_freq_hzI2S bit frequence, Sampling_rate = bclk_freq_hz / frame_width / channel_num.
roleI2S role, use i2s role definition
format_modeI2S mode, use i2s mode definition
channel_modeI2S channel num, Only DSP mode supports more than 2 channels, use i2s mode definition
frame_widthI2S frame width, use i2s slot width definition
data_widthI2S data order, frame_size must equal data_size in 3/4/6-channel mode, use i2s slot width definition
fs_offset_cycleI2S first bit offset of the data
tx_fifo_thresholdI2S tx fifo threshold, should be less than 16
rx_fifo_thresholdI2S rx fifo threshold, should be less than 16

Definition at line 105 of file bflb_i2s.h.

Field Documentation

◆ bclk_freq_hz

uint32_t bclk_freq_hz

Definition at line 106 of file bflb_i2s.h.

◆ channel_mode

uint8_t channel_mode

Definition at line 109 of file bflb_i2s.h.

◆ data_width

uint8_t data_width

Definition at line 111 of file bflb_i2s.h.

◆ format_mode

uint8_t format_mode

Definition at line 108 of file bflb_i2s.h.

◆ frame_width

uint8_t frame_width

Definition at line 110 of file bflb_i2s.h.

◆ fs_offset_cycle

uint8_t fs_offset_cycle

Definition at line 112 of file bflb_i2s.h.

◆ role

uint8_t role

Definition at line 107 of file bflb_i2s.h.

◆ rx_fifo_threshold

uint8_t rx_fifo_threshold

Definition at line 115 of file bflb_i2s.h.

◆ tx_fifo_threshold

uint8_t tx_fifo_threshold

Definition at line 114 of file bflb_i2s.h.


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