Extensible Definitions; Physical Driver Include File ("Xxx.h) - Analog Devices VisualDSP++ 5.0 Service Manual

Visualdsp++ 5.0 device drivers and system for blackfin processors
Table of Contents

Advertisement

Physical Driver Design
Physical Driver Include File ("xxx.h")
The API for physical drivers is defined in the
device manager. However, physical drivers can extend some of the
definitions and enumerations defined by the device manager. Additional
command IDs, event IDs, and return codes can be created by each
physical driver. These extensible definitions are described in the sections
that follow. These definitions are normally defined in an include file pro-
vided with the physical driver. For example, the PPI driver, whose code is
contained in the
The only contents of the include file are the extensible definitions that the
physical driver makes available to the application.
Client applications should include the device manager
the include file for each of the physical drivers they will be using. For
example, a client application using the PPI physical driver should include
the
adi_dev.h
physical driver include files for all Analog Devices-provided drivers are
found in the
Blackfin/Include/Drivers

Extensible Definitions

The physical driver can define its own extensions to the command IDs,
event IDs, and return codes, beyond those already defined by the device
manager in the
Physical drivers can create any number of additional command IDs.
Applications can issue these command IDs via the
function. When the
an extended command ID, the device manager passes the call onto the
physical driver's
provided by the application. This gives the physical driver the option of
creating additional command IDs that are relevant to the device being
controlled.
10-48
file, has a companion
adi_ppi.c
and
include files. The
adi_ppi.h
file.
adi_dev.h
adi_dev_Control
adi_pdd_Control
VisualDSP++ 5.0 Device Drivers and System
adi_dev.h
adi_ppi.h
adi_dev.h
directory.
adi_dev_Control
function of the device manager sees
function, passing along the parameters
Services Manual for Blackfin Processors
include file of the
include file.
file and
adi_dev.h
include file and
API

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the VisualDSP++ 5.0 and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents