EasyManua.ls Logo

Texas Instruments CC3235 SimpleLink Series - Page 408

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...
Peripheral Library APIs for I2S Configuration
www.ti.com
408
SWRU543January 2019
Submit Documentation Feedback
Copyright © 2019, Texas Instruments Incorporated
Inter-Integrated Sound (I2S) Multichannel Audio Serial Port
The following parameters select the slot size:
-I2S_SLOT_SIZE_24 -I2S_SLOT_SIZE_16
The following parameters select the data read/write port:
-I2S_PORT_DMA -I2S_PORT_CPU
Returns:
None
Reference:
#define I2S_SLOT_SIZE_24 0x00B200B4 #define
I2S_SLOT_SIZE_16 0x00700074 #define I2S_PORT_CPU 0x00000008 #define
I2S_PORT_DMA 0x00000000
12.4.2 APIs for Data Access if DMA is Not Used
12.4.2.1 void I2SDataGet (unsigned long ulBase, unsigned long ulDataLine, unsigned long * pulData)
Waits for data from the specified data line.
Parameters:
ulBase the base address of the I2S module
ulDataLine one of the valid data lines
pulData a pointer to the receive data variable
This function gets data from the receive register for the specified data line. If there is no data available,
this function waits until a receive before returning.
Returns:
None
12.4.2.2 long I2SDataGetNonBlocking (unsigned long ulBase, unsigned long ulDataLine, unsigned long
* pulData)
Receives data from the specified data line.
Parameters:
ulBase the base address of the I2S module
ulDataLine one of the valid data lines
pulData a pointer to the receive data variable
This function gets data from the receive register for the specified data line.
Returns:
Returns 0 on success, 1 otherwise.

Table of Contents

Related product manuals