SYS/BIOS  7.00
Data Fields
Swi_Params Struct Reference

#include <ti/sysbios/knl/Swi.h>

Data Fields

char * name
 Optional name for the object. NULL by default. More...
 
uintptr_t arg0
 Swi function argument 0. More...
 
uintptr_t arg1
 Swi function argument 1. More...
 
unsigned int priority
 Swi priority. More...
 
unsigned int trigger
 Initial Swi trigger value. More...
 

Field Documentation

§ name

char* Swi_Params::name

Optional name for the object. NULL by default.

§ arg0

uintptr_t Swi_Params::arg0

Swi function argument 0.

The default value of this optional parameter is 0.

See also
Swi_FuncPtr

§ arg1

uintptr_t Swi_Params::arg1

Swi function argument 1.

The default value of this optional parameter is 0.

See also
Swi_FuncPtr

§ priority

unsigned int Swi_Params::priority

Swi priority.

Each software interrupt has a priority level, 0 to (Swi_numPriorities - 1). A software interrupt preempts any lower- priority software interrupt currently executing. When multiple Swis of the same priority level have been posted, their respective Swi functions are executed in the order the Swis were posted.

The default value of this optional parameter is ~0, which yields a Swi with the highest priority: (Swi_numPriorities - 1).

§ trigger

unsigned int Swi_Params::trigger

Initial Swi trigger value.

The default value of this optional parameter is 0.

Each Swi object has a "trigger" used either to determine whether to post the Swi or as a value that can be evaluated within the Swi's function.

The Swi_andn and Swi_dec functions post the Swi if the trigger value transitions to 0. The Swi_or and Swi_inc functions also modify the trigger value. (Swi_or sets bits, and Swi_andn clears bits.)


The documentation for this struct was generated from the following file:
© Copyright 1995-2022, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale