|
| << 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 inflagswill set the corresponding bit in the event flag group. E.g., to set bits 0, 4 and 5 you would setflagsto: 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 set flags to: 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
| 020-0059 Rev. D | << Previous | Next >> | µC/OS-II |