Function to set one or more bits in an integer-type data according to the occurrence of a condition.
Syntax |
i32 sbit (i32 data, i32 bitMsk, bool cond) |
||||||
---|---|---|---|---|---|---|---|
data |
Unit on which you want to set |
||||||
bitMsk |
Mask of the bits to be set |
||||||
cond |
Condition upon the occurrence of which the bits will be set |
||||||
Result |
Returns:
|
||||||
Validity |
Rule, Task |
||||||
Note |
Example of use:
|