Physical Driver Design
The
adi_dev.h
physical driver. Use this value as the starting value for all command IDs,
event IDs, and return codes.
ADI_DEV_PDD_ENTRY_POINT
The physical driver's include function must include a declaration of the
entry point into the driver. This declaration declares, as a global variable,
the address of the entry point for the physical driver. The application
passes the address of the entry point to the device manager when the
device is opened. For example, the line
extern ADI_DEV_PDD_ENTRY_POINT PPIEntryPoint;
in the PPI driver's include file informs the application to pass the variable
PPIEntryPoint
call to open the PPI device driver.
Physical Driver Source ("xxx.c")
All functions within the physical driver source code, including the actual
physical driver API functions, are declared static so that they are not
exposed to any other software components. The only global piece of code
or data is the entry point address. The entry point is a simple structure
that contains the addresses of the physical driver API functions in the fol-
lowing order.
ADI_DEV_PDD_ENTRY_POINT PPIEntryPoint = {
adi_pdd_Open,
adi_pdd_Close,
adi_pdd_Read,
adi_pdd_Write,
adi_pdd_Control
};
10-50
file contains the starting enumeration values for each
// entry point to the PPI driver
as the entry point parameter in the
VisualDSP++ 5.0 Device Drivers and System
adi_dev_Open
Services Manual for Blackfin Processors
function
Need help?
Do you have a question about the VisualDSP++ 5.0 and is the answer not in the manual?