SWI_self
2-448
C Interface
Syntax
curswi = SWI_self();
Parameters
Void
Return Value
SWI_Handle swi;
/* handle for current swi object */
Reentrant
yes
Description
SWI_self returns the address of the currently executing SWI.
Constraints and
Calling Context
❏
SWI_self cannot be called from an HWI or TSK level.
❏
SWI_self cannot be called from the program’s main() function.
Example
You can use SWI_self if you want a SWI to repost itself:
SWI_post(SWI_self
()
);
See Also
SWI_self
Return address of currently executing SWI object