Available Languages?:

OSA : OS_Flag_Wait_On

OS_Flag_Wait_On (flags, mask)

Allowed only in taskSwitches context

Wait for any mask bits in flags to be set.

Call allowed:

Only in task

Parameters:

flags Variable of OST_FLAGx (x = 8, 16, 32) type
mask Bit mask to operate on

Returns:

nothing

Example:

OST_FLAG flag;
 
void Task (void)
{
    for (;;) {
        /*...*/
        OS_Flag_Wait_On (flag, 0xFF);  // Wait for any bit set
        /*...*/
    }
}

Old style name

OS_WaitAnyFlag

OS_Flag_Wait_On

See also

 
en/osa/ref/allservices/os_flag_wait_on.txt · Last modified: 07.10.2010 13:56 (external edit)
 
Creative Commons License Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki