EasyManua.ls Logo

Texas Instruments CC3235 SimpleLink Series - Page 407

Texas Instruments CC3235 SimpleLink Series
799 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
www.ti.com
Peripheral Library APIs for I2S Configuration
407
SWRU543January 2019
Submit Documentation Feedback
Copyright © 2019, Texas Instruments Incorporated
Inter-Integrated Sound (I2S) Multichannel Audio Serial Port
The parameter ulDataLine selects the data line to be configured, and can be one of the following:
-I2S_DATA_LINE_0 -I2S_DATA_LINE_1
The parameter ulSerMode can be one of the following:
-I2S_SER_MODE_TX -I2S_SER_MODE_RX
-I2S_SER_MODE_DISABLE
The parameter ulInActState can be one of the following:
-I2S_INACT_TRI_STATE -I2S_INACT_LOW_LEVEL
-I2S_INACT_LOW_HIGH
Returns:
Returns receive (RX) FIFO status.
References:
ulDataLine parameter
#define I2S_DATA_LINE_0 0x00000001 #define
I2S_DATA_LINE_1 0x00000002
ulSerMode parameter
#define I2S_SER_MODE_TX 0x00000001 #define
I2S_SER_MODE_RX 0x00000002 #define I2S_SER_MODE_DISABLE
0x00000000
ulInActState parameter
#define I2S_INACT_TRI_STATE 0x00000000 #define
I2S_INACT_LOW_LEVEL 0x00000008 #define I2S_INACT_HIGH_LEVEL
0x0000000C
12.4.1.4 void I2SConfigSetExpClk (unsigned long ulBase, unsigned long ulI2SClk, unsigned long
ulBitClk, unsigned long ulConfig)
Sets the configuration of the I2S module.
Parameters:
ulBase the base address of the I2S module
ulI2SClk the rate of the clock supplied to the I2S module
ulBitClk the desired bit rate
ulConfig the data format
This 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.

Table of Contents

Related product manuals