SWI Module
Application Program Interface
2-423
struct SWI_Attrs { /* SWI attributes */
SWI_Fxn fxn; /* address of SWI function */
Arg arg0; /* first arg to function */
Arg arg1; /* second arg to function */
Int priority; /* Priority of SWI object */
Uns mailbox; /* check for SWI posting */
};
SWI_Attrs SWI_ATTRS = { /* Default attribute values */
(SWI_Fxn)FXN_F_nop, /* SWI function */
0, /* arg0 */
0, /* arg1 */
1, /* priority */
0 /* mailbox */
};
Configuration
Properties
The following list shows the properties that can be configured in a Tconf
script, along with their types and default values. For details, see the SWI
Manager Properties and SWI Object Properties headings. For
descriptions of data types, see Section 1.4,
Module Configuration Parameters
Instance Configuration Parameters
Description
The SWI module manages software interrupt service routines, which are
patterned after HWI hardware interrupt service routines.
DSP/BIOS manages four distinct levels of execution threads: hardware
interrupt service routines, software interrupt routines, tasks, and
background idle functions. A software interrupt is an object that
encapsulates a function to be executed and a priority. Software interrupts
are prioritized, preempt tasks, and are preempted by hardware interrupt
service routines.
Name
Type
Default
OBJMEMSEG
Reference
prog.get("DARAM")
Name
Type
Default (Enum Options)
comment
String
"<add comments here>"
fxn
Extern
prog.extern("FXN_F_nop")
priority
EnumInt
1 (0 to 14)
mailbox
Int16
0
arg0 Arg
0
arg1
Arg
0