Streaming DEV Structures
7-32
❏
mode
specifies whether the device is an input (DEV_INPUT) or output
(DEV_OUTPUT) device.
❏
devid
is the device ID.
❏
params
is a generic pointer to any device-specific parameters. Some
devices have additional parameters which are found here.
❏
object
is a pointer to the device object. Most devices create an object that
is referenced in successive device operations.
❏
fxns
is a DEV_Fxns structure containing the driver’s functions. This
structure is usually a copy of Dxx_FXNS, but it is possible for a driver to
dynamically alter these functions in Dxx_open.
❏
timeout
specifies the number of system ticks that SIO_reclaim will wait for
I/O to complete.
❏
align
specifies the buffer alignment.
❏
callback
specifies a pointer to a channel-specific callback structure. The
DEV_Callback structure contains a callback function and two function
arguments. The callback function is typically SWI_andnHook or a similar
function that posts a SWI. Callbacks can only be used with the
issue/reclaim model. This callback allows SIO objects to be used with
SWI threads.
Only the object and fxns fields should ever be modified by a driver’s functions.
These fields are essentially output parameters of Dxx_open.
Summary of Contents for TMS320 Series
Page 1: ...TMS320 DSP BIOS v5 40 User s Guide Literature Number SPRU423G April 2009 ...
Page 16: ...xvi ...
Page 152: ...Tasks 4 48 Figure 4 12 Trace from Example 4 7 ...
Page 168: ...Semaphores 4 64 Figure 4 14 Trace Results from Example 4 11 ...
Page 202: ...5 20 ...
Page 287: ...Index 9 Index Void 1 11 W words data memory 3 15 of code 1 5 wrapper function 2 29 ...
Page 288: ...Index 10 Index ...