<< Previous | Next >> | |
|
OS_FLAGS OSFlagPost( OS_FLAG_GRP * pgrp, OS_FLAGS flags, INT8U opt, INT8U * err );
Description
- This function is called to set or clear some bits in an event flag group. The bits to set or clear are specified by a bitmask. Warnings:
Parameters
- pgrp
- Pointer to the desired event flag group.
- flags
- If
opt
(see below) isOS_FLAG_SET
, each bit that is set inflags
will set the corresponding bit in the event flag group. E.g., to set bits 0, 4 and 5 you would setflags
to:
0x31 (note, bit 0 is least significant bit)
- If
opt
(see below) isOS_FLAG_CLR
, each bit that is set in flags will CLEAR the corresponding bit in the event flag group. E.g., to clear bits 0, 4 and 5 you would specify flags as:
0x31 (note, bit 0 is least significant bit)
- opt
- Indicates whether the flags will be:
- set (
OS_FLAG_SET
), or cleared (OS_FLAG_CLR
)
- err
Return value
- The new value of the event flags bits that are still set.
Library
- OS_FLAG.C (Prior to DC 8:UCOS2.LIB)
Dynamic C Functions | << Previous | Next >> | rabbit.com |