Available Languages?:

OSA : OS_Flag_Set

OS_Flag_Set (flags, mask)
OS_Flag_Set_I (flags, mask)

flags |= mask Set bits in flags according to mask.

Call allowed:

Everywhere

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_Set (flag, 0x05); // Set bits 0 and 2
        /*...*/
    }
}

Old style name

OS_SetFlag

OS_Flag_Set

See also

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