Available Languages?:

OSA : OS_Flag_Wait_AllOff_TO

OS_Flag_Wait_AllOff_TO (flags, mask, timeout)

Allowed only in taskSwitches contextUses timer

Wait for all mask bits in flags to be cleared. If timeout expires before event occurs, then stop waiting with Timeout flag set (see OS_IsTimeout)

Call allowed:

Only in task


flags Variable of OST_FLAGx (x = 8, 16, 32) type
mask Bit mask to operate on
timeout Time of waiting in system ticks - calling OS_Timer periods


timeout If timeout expired then system service OS_IsTimeout will return true


OST_FLAG flag;
void Task (void)
    for (;;) {
        OS_Flag_Wait_AllOff_TO (flag, mask, timeout);
        if (!OS_IsTimeout()) {

Old style name



See also

en/osa/ref/allservices/os_flag_wait_alloff_to.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