SWRU543B January 2019 – June 2025 CC3230S , CC3230SF , CC3235MODS , CC3235MODSF , CC3235S , CC3235SF
Sets the configuration of the I2S module.
Parameters:
ulBasethe base address of the I2S module
ulI2SClkthe rate of the clock supplied to the I2S module
ulBitClkthe desired bit rate
ulConfigthe data formatThis function configures the I2S for operation in the specified data format. The bit rate is provided in the
ulBitClk
parameter and the data format in the
ulConfig
parameter.
The
ulConfig
parameter is the logical OR of two values: the slot size and the data read/write port select.
The following parameters select the slot size:
-I2S_SLOT_SIZE_24 -I2S_SLOT_SIZE_16The following parameters select the data read/write port:
-I2S_PORT_DMA -I2S_PORT_CPUReturns:
None
Reference:
#define I2S_SLOT_SIZE_24 0x00B200B4 #define
I2S_SLOT_SIZE_16 0x00700074 #define I2S_PORT_CPU 0x00000008 #define
I2S_PORT_DMA 0x00000000