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...
Comparing Driver Models
Input/Output Methods 6-7
6.3.3 Creating a Device for Use with the SIO/DEV Model
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,
/* device id */
NULL, /* device parameters */
DEV_SIOTYPE, /* type of the device */
NULL /* device global data ptr */
}
status = DEV_createDevice("/codec", &DSK6X_EDMA_DEVFXNS,
(Fxn)DSK6X_DEV_init, &devAttrs);
The device function tables passed to DEV_createDevice should be of type
DEV_Fxns.
6.3.4 Creating a Device for Use with Provided Software Drivers
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.

Table of Contents

Other manuals for Texas Instruments TMS320

Related product manuals