EasyManua.ls Logo

Texas Instruments TMS320

Texas Instruments TMS320
288 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Device Driver Template
Streaming I/O and Device Drivers 7-29
Example 7-17. Required Statements in dxx.h Header File
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.
Example 7-18. Table of Device Functions
/*
* ======== dxx.h ========
*/
#include <dev.h>
extern DEV_Fxns Dxx_FXNS;
/*
* ======== Dxx_Params ========
*/
typedef struct {
`device parameters go here`
} Dxx_Params;
DEV_Fxns Dxx_FXNS = {
Dxx_close,
Dxx_ctrl,
Dxx_idle,
Dxx_issue,
Dxx_open,
Dxx_ready,
Dxx_reclaim

Table of Contents

Other manuals for Texas Instruments TMS320

Related product manuals