DIO Adapter
Application Program Interface
2-93
Description
The mini-drivers described in the
DSP/BIOS Device Driver Developer's
Guide
(SPRU616) are intended for use with the GIO module. However,
the DIO driver allows them to be used with the SIO module instead of the
GIO module.
The following figure summarizes how modules are related in an
application that uses the DIO driver and a mini-driver:
DIO Driver Properties
The following global properties can be set for the DIO - Class Driver on
the DIO Properties dialog in the DSP/BIOS Configuration Tool or in a
Tconf script:
❏
Object memory
. Enter the memory segment from which to allocate
DIO objects.
Tconf Name: OBJMEMSEG
Type: Reference
Example:
bios.DIO.OBJMEMSEG = prog.get("myMEM");
❏
Create All DIO Objects Statically
. Set this property to true if you
want DIO objects to be created completely statically. If this property
is false (the default), MEM_calloc is used internally to allocate space
for DIO objects. If this property is true, you must create all SIO and
DIO objects using the DSP/BIOS Configuration Tool or Tconf. Any
Application
TSK or SW I threads
SIO M odule API
DIO adapter
IOM m ini-driver
(IO M _Fxns function table)
DEV module
(DEV_m atch, DEV_Fxns,
DEV_Handle, DEV_Callback)