NetBurner 3.5.6
PDF Version
SAI Predefined Configurations

I2S Slave Mode Configurations

These configurations set up the SAI as an I2S slave (receives clock from external master). Configurations are available for 8, 16, and 24-bit word widths, with various clock routing:

  • _RK: Uses receive clock (BCLK from RX pins)
  • _TK: Uses transmit clock (BCLK from TX pins)
  • _TKRK: TX uses TX clock, RX uses RX clock (independent clocks)
const SAI_cfg_t SAI_I2S_SLAVE_24_TXRX_RK
 
const SAI_cfg_t SAI_I2S_SLAVE_24_TXRX_TK
 
const SAI_cfg_t SAI_I2S_SLAVE_24_TXRX_TKRK
 
const SAI_cfg_t SAI_I2S_SLAVE_16_TXRX_RK
 
const SAI_cfg_t SAI_I2S_SLAVE_16_TXRX_TK
 
const SAI_cfg_t SAI_I2S_SLAVE_16_TXRX_TKRK
 
const SAI_cfg_t SAI_I2S_SLAVE_8_TXRX_RK
 
const SAI_cfg_t SAI_I2S_SLAVE_8_TXRX_TK
 
const SAI_cfg_t SAI_I2S_SLAVE_8_TXRX_TKRK
 

Left-Justified Slave Mode Configurations

These configurations set up the SAI for left-justified audio format (data starts immediately with frame sync, no delay). Available in 8, 16, and 24-bit variants.

const SAI_cfg_t SAI_LJUST_SLAVE_24_TXRX_RK
 
const SAI_cfg_t SAI_LJUST_SLAVE_24_TXRX_TK
 
const SAI_cfg_t SAI_LJUST_SLAVE_24_TXRX_TKRK
 
const SAI_cfg_t SAI_LJUST_SLAVE_16_TXRX_RK
 
const SAI_cfg_t SAI_LJUST_SLAVE_16_TXRX_TK
 
const SAI_cfg_t SAI_LJUST_SLAVE_16_TXRX_TKRK
 
const SAI_cfg_t SAI_LJUST_SLAVE_8_TXRX_RK
 
const SAI_cfg_t SAI_LJUST_SLAVE_8_TXRX_TK
 
const SAI_cfg_t SAI_LJUST_SLAVE_8_TXRX_TKRK
 

Detailed Description

Variable Documentation

◆ SAI_I2S_SLAVE_16_TXRX_RK

const SAI_cfg_t SAI_I2S_SLAVE_16_TXRX_RK
extern

#include <sai.h>

I2S Slave: 16-bit words, TX+RX enabled, clock from RX pins

◆ SAI_I2S_SLAVE_16_TXRX_TK

const SAI_cfg_t SAI_I2S_SLAVE_16_TXRX_TK
extern

#include <sai.h>

I2S Slave: 16-bit words, TX+RX enabled, clock from TX pins

◆ SAI_I2S_SLAVE_16_TXRX_TKRK

const SAI_cfg_t SAI_I2S_SLAVE_16_TXRX_TKRK
extern

#include <sai.h>

I2S Slave: 16-bit words, TX+RX enabled, independent clocks

◆ SAI_I2S_SLAVE_24_TXRX_RK

const SAI_cfg_t SAI_I2S_SLAVE_24_TXRX_RK
extern

#include <sai.h>

I2S Slave: 24-bit words, TX+RX enabled, clock from RX pins, frame sync from RX

◆ SAI_I2S_SLAVE_24_TXRX_TK

const SAI_cfg_t SAI_I2S_SLAVE_24_TXRX_TK
extern

#include <sai.h>

I2S Slave: 24-bit words, TX+RX enabled, clock from TX pins, frame sync from TX

◆ SAI_I2S_SLAVE_24_TXRX_TKRK

const SAI_cfg_t SAI_I2S_SLAVE_24_TXRX_TKRK
extern

#include <sai.h>

I2S Slave: 24-bit words, TX+RX enabled, independent clocks on TX and RX

◆ SAI_I2S_SLAVE_8_TXRX_RK

const SAI_cfg_t SAI_I2S_SLAVE_8_TXRX_RK
extern

#include <sai.h>

I2S Slave: 8-bit words, TX+RX enabled, clock from RX pins

◆ SAI_I2S_SLAVE_8_TXRX_TK

const SAI_cfg_t SAI_I2S_SLAVE_8_TXRX_TK
extern

#include <sai.h>

I2S Slave: 8-bit words, TX+RX enabled, clock from TX pins

◆ SAI_I2S_SLAVE_8_TXRX_TKRK

const SAI_cfg_t SAI_I2S_SLAVE_8_TXRX_TKRK
extern

#include <sai.h>

I2S Slave: 8-bit words, TX+RX enabled, independent clocks

◆ SAI_LJUST_SLAVE_16_TXRX_RK

const SAI_cfg_t SAI_LJUST_SLAVE_16_TXRX_RK
extern

#include <sai.h>

Left-Justified Slave: 16-bit words, TX+RX enabled, clock from RX pins

◆ SAI_LJUST_SLAVE_16_TXRX_TK

const SAI_cfg_t SAI_LJUST_SLAVE_16_TXRX_TK
extern

#include <sai.h>

Left-Justified Slave: 16-bit words, TX+RX enabled, clock from TX pins

◆ SAI_LJUST_SLAVE_16_TXRX_TKRK

const SAI_cfg_t SAI_LJUST_SLAVE_16_TXRX_TKRK
extern

#include <sai.h>

Left-Justified Slave: 16-bit words, TX+RX enabled, independent clocks

◆ SAI_LJUST_SLAVE_24_TXRX_RK

const SAI_cfg_t SAI_LJUST_SLAVE_24_TXRX_RK
extern

#include <sai.h>

Left-Justified Slave: 24-bit words, TX+RX enabled, clock from RX pins

◆ SAI_LJUST_SLAVE_24_TXRX_TK

const SAI_cfg_t SAI_LJUST_SLAVE_24_TXRX_TK
extern

#include <sai.h>

Left-Justified Slave: 24-bit words, TX+RX enabled, clock from TX pins

◆ SAI_LJUST_SLAVE_24_TXRX_TKRK

const SAI_cfg_t SAI_LJUST_SLAVE_24_TXRX_TKRK
extern

#include <sai.h>

Left-Justified Slave: 24-bit words, TX+RX enabled, independent clocks

◆ SAI_LJUST_SLAVE_8_TXRX_RK

const SAI_cfg_t SAI_LJUST_SLAVE_8_TXRX_RK
extern

#include <sai.h>

Left-Justified Slave: 8-bit words, TX+RX enabled, clock from RX pins

◆ SAI_LJUST_SLAVE_8_TXRX_TK

const SAI_cfg_t SAI_LJUST_SLAVE_8_TXRX_TK
extern

#include <sai.h>

Left-Justified Slave: 8-bit words, TX+RX enabled, clock from TX pins

◆ SAI_LJUST_SLAVE_8_TXRX_TKRK

const SAI_cfg_t SAI_LJUST_SLAVE_8_TXRX_TKRK
extern

#include <sai.h>

Left-Justified Slave: 8-bit words, TX+RX enabled, independent clocks