Audio Interface (AI) API Function List

General Functions

AICheckInit Checks whether the AI library is already initialized.
AIInit Initializes the AI library.
AIReset Clears the AI library's initialization flag.

DMA

AIGetDMABytesLeft Returns the amount of audio data that has not been DMA-processed remaining in the audio buffer currently being output to the AI.
AIGetDMAEnableFlag Gets the operational status of AI DMA.
AIGetDMALength Gets the size of the DMA programmed in the AI DMA controller
AIGetDMAStartAddr Gets the starting address of the DMA programmed in the AI DMA controller
AIInitDMA Programs the DMA starting address and DMA size in the AI DMA controller.
AIRegisterDMACallback Registers the callback function to be called at an AI DMA interrupt (AIDINT).
AISetDSPSampleRate Sets the sampling frequency for audio data output from the DSP.
AIStartDMA Starts AI DMA based on the parameters set by the immediately previous call to the AIInitDMA function.
AIStopDMA Stops AI DMA.

CONFIDENTIAL