SemiDrive SSDK Appication Program Interface PTG3.0
Data Fields
sdrv_i2s_params

#include <sdrv_i2s.h>

Data Fields

uint32_t fmt
 
sdrv_i2s_channel_t channels
 
sdrv_i2s_sample_width_t sample_width
 
sdrv_i2s_sample_rate_t sample_rate
 
unsigned int period_bytes
 
unsigned int periods
 
sdrv_i2s_channel_t slots
 
unsigned int tx_slot_mask
 
unsigned int rx_slot_mask
 
bool usedma
 
uint8_t * dma_buff
 

Field Documentation

◆ channels

data channels

◆ dma_buff

uint8_t* dma_buff

dma mode need set dma_buf addr, size=period_count*period_size

◆ fmt

uint32_t fmt

i2s data format

◆ period_bytes

unsigned int period_bytes

dma mode need set, dma generates an interrupt transmission data size

◆ periods

unsigned int periods

dma mode need set, period num

◆ rx_slot_mask

unsigned int rx_slot_mask

slot mask ,1 :slot enable; 0:slot disable

◆ sample_rate

data sample rate

◆ sample_width

data width

◆ slot_width

◆ slots

slot num

◆ tx_slot_mask

unsigned int tx_slot_mask

slot mask ,1 :slot enable; 0:slot disable

◆ usedma

bool usedma

true :dma mode; false:irq mode


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