Function to set one or more bits in an integer-type data if the condition is TRUE and to reset one or more bits in an integer-type data if the condition is FALSE.
Syntax |
i32 wbit (i32 data, i32 bitMsk, bool cond) |
||||||
---|---|---|---|---|---|---|---|
data |
Unit to which the write is desired |
||||||
bitMsk |
Mask of the bits to be written |
||||||
cond |
Condition upon the occurrence of which the bits will be set/reset |
||||||
Result |
Returns:
|
||||||
Validity |
Rule, Task |
||||||
Note |
Example of use:
|