Bouffalo SDK
1.0
Bouffalolab Software Development Kit
|
I2S configuration structure. More...
#include <bflb_i2s.h>
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 |
I2S configuration structure.
bclk_freq_hz | I2S bit frequence, Sampling_rate = bclk_freq_hz / frame_width / channel_num. |
role | I2S role, use i2s role definition |
format_mode | I2S mode, use i2s mode definition |
channel_mode | I2S channel num, Only DSP mode supports more than 2 channels, use i2s mode definition |
frame_width | I2S frame width, use i2s slot width definition |
data_width | I2S data order, frame_size must equal data_size in 3/4/6-channel mode, use i2s slot width definition |
fs_offset_cycle | I2S first bit offset of the data |
tx_fifo_threshold | I2S tx fifo threshold, should be less than 16 |
rx_fifo_threshold | I2S rx fifo threshold, should be less than 16 |
Definition at line 105 of file bflb_i2s.h.
uint32_t bclk_freq_hz |
Definition at line 106 of file bflb_i2s.h.
uint8_t channel_mode |
Definition at line 109 of file bflb_i2s.h.
uint8_t data_width |
Definition at line 111 of file bflb_i2s.h.
uint8_t format_mode |
Definition at line 108 of file bflb_i2s.h.
uint8_t frame_width |
Definition at line 110 of file bflb_i2s.h.
uint8_t fs_offset_cycle |
Definition at line 112 of file bflb_i2s.h.
uint8_t role |
Definition at line 107 of file bflb_i2s.h.
uint8_t rx_fifo_threshold |
Definition at line 115 of file bflb_i2s.h.
uint8_t tx_fifo_threshold |
Definition at line 114 of file bflb_i2s.h.