Peripheral Library APIs for I2S Configuration
www.ti.com
406
SWRU543–January 2019
Submit Documentation Feedback
Copyright © 2019, Texas Instruments Incorporated
Inter-Integrated Sound (I2S) Multichannel Audio Serial Port
12.4 Peripheral Library APIs for I2S Configuration
This section describes the APIs hosted in the CC32xx SDK (Peripheral Library) necessary for I2S
configuration.
12.4.1 Basic APIs for Enabling and Configuring the Interface
12.4.1.1 void I2SDisable (unsigned long ulBase)
Disables transmit and/or receive.
Parameters:
ulBase — the base address of the I2S module
This function disables transmit, receive, or both from the I2S module.
Returns:
None
12.4.1.2 void I2SEnable (unsigned long ulBase, unsigned long ulMode)
Enables transmit and/or receive.
Parameters:
ulBase — the base address of the I2S module
ulMode — one of the valid modes
This function enables the I2S module in specified mode.
The parameter ulMode should be one of the following:
-I2S_MODE_TX_ONLY -I2S_MODE_TX_RX_SYNC
Returns:
None
Reference:
ulMode parameter
#define I2S_MODE_TX_ONLY 0x00000001 #define
I2S_MODE_TX_RX_SYNC 0x00000003
12.4.1.3 void I2SSerializerConfig (unsigned long ulBase, unsigned long ulDataLine, unsigned long
ulSerMode, unsigned long ulInActState)
Configure the serializer in a specified mode.
Parameters:
ulBase — the base address of the I2S module
ulDataLine — the data line (serilizer) to be configured
ulSerMode — the required serializer mode
ulInActState — sets the inactive state of the data line
This function configures and enables the serializer associated with the given data line in specified mode.