SYS/BIOS
7.00
|
#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... | |
char* Swi_Params::name |
Optional name for the object. NULL by default.
uintptr_t Swi_Params::arg0 |
uintptr_t Swi_Params::arg1 |
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).
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.)