Microchip® Advanced Software Framework

i2s_clock_config Struct Reference

Configure for I2S clock (SCK).

#include <i2s.h>

Data Fields

enum gclk_generator gclk_src
 Clock source selection. More...
 
uint8_t mck_out_div
 Divide generic clock to master clock output (1~32, 0,1 means no div) More...
 
bool mck_out_enable
 Generate MCK clock output. More...
 
bool mck_out_invert
 Invert master clock output. More...
 
enum i2s_master_clock_source mck_src
 Master clock source selection: generated or input from pin. More...
 
uint8_t sck_div
 Divide generic clock to serial clock (1~32, 0,1 means no div) More...
 
bool sck_out_invert
 Invert serial clock output. More...
 
enum i2s_serial_clock_source sck_src
 Serial clock source selection: generated or input from pin. More...
 

enum gclk_generator i2s_clock_config::gclk_src
uint8_t i2s_clock_config::mck_out_div

Divide generic clock to master clock output (1~32, 0,1 means no div)

Referenced by i2s_clock_unit_get_config_defaults(), and i2s_clock_unit_set_config().

bool i2s_clock_config::mck_out_enable

Generate MCK clock output.

Referenced by i2s_clock_unit_get_config_defaults(), and i2s_clock_unit_set_config().

bool i2s_clock_config::mck_out_invert

Invert master clock output.

Referenced by i2s_clock_unit_get_config_defaults(), and i2s_clock_unit_set_config().

enum i2s_master_clock_source i2s_clock_config::mck_src

Master clock source selection: generated or input from pin.

Referenced by i2s_clock_unit_get_config_defaults(), and i2s_clock_unit_set_config().

uint8_t i2s_clock_config::sck_div

Divide generic clock to serial clock (1~32, 0,1 means no div)

Referenced by i2s_clock_unit_get_config_defaults(), i2s_clock_unit_set_config(), and setup_i2s().

bool i2s_clock_config::sck_out_invert

Invert serial clock output.

Referenced by i2s_clock_unit_get_config_defaults(), and i2s_clock_unit_set_config().

enum i2s_serial_clock_source i2s_clock_config::sck_src

Serial clock source selection: generated or input from pin.

Referenced by i2s_clock_unit_get_config_defaults(), i2s_clock_unit_set_config(), and setup_i2s().