Example 4: Audio.c File; Initaudio()-Opening The Driver - Analog Devices EZ-KIT Getting Started

Hp switch getting started
Table of Contents

Advertisement

Example 4: Audio.c File

Example 4: Audio.c File
Four functions in
driver:
InitAudio()
,
teAudio()
PlayBuffer()
describe some parts of these functions.
InitAudio()—Opening the Driver
The audio functions assume that the SSL is initialized. The initialization
process is described in Chapters 4 and 5
respectively.
InitAudio()
plied device driver for the AD1980 audio codec and uses the driver to
configure the hardware.
SSL data transfer functions to handle the buffers of PCM audio samples
that the application will send to the codec.
the
adi_dev_Open()
Listing 3-1. Opening the Device Driver
/* open the AD1980 driver */
if((Result = adi_dev_Open(
{
printf("Failed to open audio output device, "
"Error Code: 0x%08X\n", Result);
break;
}
3-8
interact with the AD1980 audio codec device
Audio.c
(see
"InitAudio()—Opening the
, and
AD1980Callback()
opens an instance of the Analog Devices-sup-
InitAudio()
function that opens the AD1980 driver.
adi_dev_ManagerHandle,
&ADIAD1980EntryPoint,
0,
NULL,
&AD1980DriverHandle,
ADI_DEV_DIRECTION_OUTBOUND,
adi_dma_ManagerHandle,
DCBQueueHandle,
AD1980Callback
!= ADI_DEV_RESULT_SUCCESS)
Getting Started with ADSP-BF548 EZ-KIT Lite
Driver"),
. The following sections
on page 4-1
and
also uses the driver to prepare the
Listing 3-1
shows the call to
))
Termina-
on page
5-1,

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the EZ-KIT and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Adsp-bf548 ez-kit lite

Table of Contents