Lines Matching refs:flag
6 …mber. A variable can be set as a program status word (PSW), and each bit (flag bit) in the PSW can…
11 …he flag bit to **1** or **0**, changing the flag bit content, and obtaining the most significant b…
17 | Setting a flag bit| - **LOS_BitmapSet**: sets a flag bit of a PSW to **1**.<br>- **LOS_BitmapClr*…
18 | Obtaining the bit whose flag bit is **1**| -**LOS_HighBitGet**: obtains the most significant bit …
19 …apSetNBits**: sets the consecutive flag bits of a PSW to **1**.<br>- **LOS_BitmapClrNBits**: sets …
29 1. Set a flag bit to **1**.
31 2. Obtain the MSB of flag bit 1.
33 3. Set a flag bit to **0**.
35 4. Obtain the LSB of flag bit 1.
47 UINT32 flag = 0x10101010;
51 PRINTK("The flag is 0x%8x\n", flag);
54 LOS_BitmapSet(&flag, pos);
55 PRINTK("LOS_BitmapSet:\t pos : %d, the flag is 0x%0+8x\n", pos, flag);
57 pos = LOS_HighBitGet(flag);
58 PRINTK("LOS_HighBitGet:\t The highest one bit is %d, the flag is 0x%0+8x\n", pos, flag);
60 LOS_BitmapClr(&flag, pos);
61 PRINTK("LOS_BitmapClr:\t pos : %d, the flag is 0x%0+8x\n", pos, flag);
63 pos = LOS_LowBitGet(flag);
64 PRINTK("LOS_LowBitGet:\t The lowest one bit is %d, the flag is 0x%0+8x\n\n", pos, flag);
78 The flag is 0x10101010
79 LOS_BitmapSet: pos : 8, the flag is 0x10101110
80 LOS_HighBitGet:The highest one bit is 28, the flag is 0x10101110
81 LOS_BitmapClr: pos : 28, the flag is 0x00101110
82 LOS_LowBitGet: The lowest one bit is 4, the flag is 0x00101110