Microchip® Advanced Software Framework

i2s_config Struct Reference

Configuration setting structure.

Note
the parameters need to be calculated throgh system clock MCK, audio data sample rate and the data format by the user.

#include <i2sc.h>

Data Fields

enum i2s_data_format data_format
 
enum i2s_fs_rate fs_ratio
 
bool loopback
 
uint8_t master_clock_divide
 I2SMCK Master clock output frequency is Selected Clock divided by (IMCKDIV + 1), and master_clock_divide should not be 0. More...
 
bool master_clock_enable
 
bool master_mode
 
enum i2s_number_of_channels rx_channels
 
enum i2s_dma_channel rx_dma
 
bool slot_length_24
 
bool transmit_mode_underrun
 
enum i2s_number_of_channels tx_channels
 
enum i2s_dma_channel tx_dma
 

enum i2s_data_format i2s_config::data_format
enum i2s_fs_rate i2s_config::fs_ratio
bool i2s_config::loopback
uint8_t i2s_config::master_clock_divide

I2SMCK Master clock output frequency is Selected Clock divided by (IMCKDIV + 1), and master_clock_divide should not be 0.

Referenced by _i2s_set_config(), and i2s_get_config_defaults().

bool i2s_config::master_clock_enable
bool i2s_config::master_mode
enum i2s_number_of_channels i2s_config::rx_channels
enum i2s_dma_channel i2s_config::rx_dma
bool i2s_config::slot_length_24
bool i2s_config::transmit_mode_underrun
enum i2s_number_of_channels i2s_config::tx_channels
enum i2s_dma_channel i2s_config::tx_dma