www.ti.com
Peripheral Library APIs for I2S Configuration
409
SWRU543–January 2019
Submit Documentation Feedback
Copyright © 2019, Texas Instruments Incorporated
Inter-Integrated Sound (I2S) Multichannel Audio Serial Port
12.4.2.3 void I2SDataPut (unsigned long ulBase, unsigned long ulDataLine, unsigned long ulData)
Waits to send data over the specified data line.
Parameters:
ulBase — the base address of the I2S module
ulDataLine — one of the valid data lines
ulData — the data to be transmitted
This function sends the ucData to the transmit register for the specified data line. If there is no space
available, this function waits until space is available before returning.
Returns:
None
12.4.2.4 void I2SDataPut (unsigned long ulBase, unsigned long ulDataLine, unsigned long ulData)
Waits to send data over the specified data line.
Parameters:
ulBase — the base address of the I2S module
ulDataLine — one of the valid data lines
ulData — the data to be transmitted
This function writes the ucData to the transmit register for the specified data line. This function does not
block, so if there is no space available, then –1 is returned, and the application must retry the function
later.
Returns:
Returns 0 on success, –1 otherwise.
12.4.3 APIs for Setting Up, Handling Interrupts, or Getting Status from I2S Peripheral
12.4.3.1 void I2SIntRegister (unsigned long ulBase, void(*)(void) pfnHandler)
Registers an interrupt handler for an I2S interrupt.
Parameters:
ulBase — the base address of the I2S module
pfnHandler — a pointer to the function to be called when the I2S interrupt occurs
This function registers the interrupt handler. This function enables the global interrupt in the interrupt
controller; specific I2S interrupts must be enabled using I2SIntEnable(). The interrupt handler must
clear the interrupt source.
See IntRegister() for information about registering interrupt handlers.
Returns:
None