Texas Instruments TMS320 User Manual page 209

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

Advertisement

6.3.3
Creating a Device for Use with the SIO/DEV Model
6.3.4
Creating a Device for Use with Provided Software Drivers
If you plan to use SIO streams with the SIO/DEV model and a device driver
that uses the DEV_Fxns function table type, create a user-defined device
statically or with a DEV_createDevice call similar to that shown below:
DEV_Attrs devAttrs ={
NULL,
NULL,
DEV_SIOTYPE,
NULL
}
status = DEV_createDevice("/codec", &DSK6X_EDMA_DEVFXNS,
The device function tables passed to DEV_createDevice should be of type
DEV_Fxns.
DSP/BIOS provides several software drivers that use the SIO/DEV model.
These are described in the DEV module section of the TMS320 DSP/BIOS
API Reference Guide for your platform. Creating the user-defined device for
these drivers is similar to creating a user-defined device for other SIO/DEV
model drivers.
/* device id */
/* device parameters */
/* type of the device */
/* device global data ptr */
(Fxn)DSK6X_DEV_init, &devAttrs);
Input/Output Methods
Comparing Driver Models
6-7

Advertisement

Table of Contents
loading

Table of Contents