Texas Instruments TMS320 User Manual page 259

Dsp/bios v5.40
Hide thumbs Also See for TMS320:
Table of Contents

Advertisement

Example 7-17. Required Statements in dxx.h Header File
Example 7-18. Table of Device Functions
/*
*
======== dxx.h ========
*/
#include <dev.h>
extern DEV_Fxns
/*
* ======== Dxx_Params ========
*/
typedef struct {
`device parameters go here`
} Dxx_Params;
❏ Device parameters, such as Dxx_Params, are specified as properties of
the device object in the configuration.
The required table of device functions is contained in dxx.c. This table is used
by the SIO module to call specific device driver functions. For example,
SIO_put uses this table to find and call Dxx_issue/Dxx_reclaim. The table is
shown in Example 7-18.
DEV_Fxns Dxx_FXNS = {
Dxx_close,
Dxx_ctrl,
Dxx_idle,
Dxx_issue,
Dxx_open,
Dxx_ready,
Dxx_reclaim
Dxx_FXNS;
Streaming I/O and Device Drivers
Device Driver Template
7-29

Advertisement

Table of Contents
loading

Table of Contents