Analog Devices EZ-KIT Getting Started page 59

Hp switch getting started
Table of Contents

Advertisement

Other device manager commands include
ADI_DEV_CMD_REGISTER_TABLE_WRITE
application-defined table of register
ADI_DEV_CMD_REGISTER_FIELD_TABLE_WRITE
name/field name/value
whole-register or part-register values to modify an entire set of device reg-
isters with one call to
contains a call (not shown) setting up the AD1980 audio codec's registers
appropriately for the two channel stereo audio samples supplied at a later
time.
The device driver-specific control commands are individual to each driver.
Many of them, however, are concerned with passing extra configuration
information.
Listing 3-3
with the information that the driver requires. The structure layout is
defined in the AD1980 audio codec device driver header file (
ers/codec/adi_ad1980.h>
the structure includes the memory address and size of some work areas
that the driver instance needs for operation. Also often required is infor-
mation regarding the target hardware configuration. In
inform the driver that the AD1980 audio codec connects to
data transfers, and that programmable flag
reset pin. (Identifiers
defined and initialized elsewhere in the application.)
Listing 3-3. Initializing Specific Diver
InitAD1980.pDataFrame
InitAD1980.DataFrameSize
InitAD1980.pAC97
InitAD1980.ResetFlagId
InitAD1980.SportDevNumber
if((Result = adi_dev_Control( AD1980DriverHandle,
!= ADI_DEV_RESULT_SUCCESS)
Getting Started with ADSP-BF548 EZ-KIT Lite
Using ADSP-BF548 EZ-KIT Lite Peripherals
whose operand is the address of an
name/value
triples. The application can supply tables of
adi_dev_Control()
shows an example. First, a structure is populated
) included in
SPORT_DEVICE_NUMBER
= (void *)AudioFrameBuffer;
= AUDIO_FRAME_BUFFER_SIZE;
= &AC97_Instance;
= AD1980_RESET_FLAG;
= SPORT_DEVICE_NUMBER;
ADI_AD1980_CMD_INIT_DRIVER,
(void*)&InitAD1980 ))
pairs, and
which takes a table of register
. The
InitAudio()
. The information held in
Audio.c
Listing
connects to the codec's
PB3
and
AD1980_RESET_FLAG
function
<driv-
3-3, we
for
SPORT0
are
3-13

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?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Adsp-bf548 ez-kit lite

Table of Contents