SWI_getpri
2-440
C Interface
Syntax
key = SWI_getpri(swi);
Parameters
SWI_Handle swi;
/* SWI object handle*/
Return Value
Uns
key
/* Priority mask of swi */
Reentrant
yes
Description
SWI_getpri returns the priority mask of the SWI passed in as the
argument.
Example
/* Get the priority key of swi1 */
key = SWI_getpri(&swi1);
/* Get the priorities of swi1 and swi3 */
key = SWI_getpri(&swi1) | SWI_getpri(&swi3);
See Also
SWI_getpri
Return a SWI’s priority mask