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
Содержание TMS320 Series
Страница 1: ...TMS320 DSP BIOS v5 40 User s Guide Literature Number SPRU423G April 2009 ...
Страница 16: ...xvi ...
Страница 152: ...Tasks 4 48 Figure 4 12 Trace from Example 4 7 ...
Страница 168: ...Semaphores 4 64 Figure 4 14 Trace Results from Example 4 11 ...
Страница 202: ...5 20 ...
Страница 287: ...Index 9 Index Void 1 11 W words data memory 3 15 of code 1 5 wrapper function 2 29 ...
Страница 288: ...Index 10 Index ...