About the Bit State area
- Last UpdatedJan 24, 2025
- 3 minute read
You use the bit state table to configure bit state condition for animations. Each bit state condition has 3 common columns:
-
Operator
-
Bitmask
-
Bitmatch
Operator
Each bit state has the following options in the Operator dropdown list:

|
Options |
Effects |
|
All |
All the bits in the state must match the Bitmatch value to trigger the animation. |
|
Any |
Any bit in the state matched with the Bitmatch value will trigger the animation. |
Bitmask and Bitmatch
The Bitmask and Bitmatch values in the bit state animation editors are determined by the bit selection in the Bit Pattern Selector dialog. For each bit selection, the bit in the Bitmask and Bitmatch is calculated as follows:
|
Bit Selection |
Bitmask Bit |
Bitmatch Bit |
|
0 |
1 |
0 |
|
1 |
1 |
1 |
|
X |
0 |
0 |
For example, if B31=B30=B29=B28 = 1 and B27=B26=B25=B24 = 0 and all other 32 bits are not set with default value ‘X’, then
Bit State = 11110000XXXXXXXXXXXXXXXXXXXXXXXX
Bitmask = 11111111000000000000000000000000 = 0XFF000000
Bitmatch = 11110000000000000000000000000000 = 0XF0000000

Ignored bit
When a bit is set to "X" in the Bit Pattern, it will be ignored in the state comparison. Only bits with bit value 1 in the Bitmask will be used for the comparison.

The Bitmask and Bitmatch values of an ignored bit are both "0". The ignored bit will be skipped in the state comparison and will not trigger the animation.
For example, on a Bit Pattern configuration like below. That means any bit in the input value is "0" will trigger the bit state.
BitMask = 0xFFFFFFFD = 11111111111111111111111111111101
Bitmatch = 0x00000000 = 00000000000000000000000000000000
Bit operator = Any
For a reference with below input value will not trigger the bit state:
Input value = 0xFFFFFFFD = 11111111111111111111111111111101
In this example, all the bits in the input value are "1" and different from the Bitmatch, except the bit 2. However, the bit 2 in the Bitmask is "0", which means this bit will be ignored. In this case, this bit state will not be triggered.
Accelerator Keys used in the Bit Pattern Selector dialog
The Bit Pattern Selector dialog contains below accelerator keys:
|
Control |
Accelerator |
Functionality |
|
Button “0” |
0 |
All bits are set to ‘0’. |
|
Button “1” |
1 |
All bits are set to ‘1’ |
|
Button “X (Ignore)” |
X |
All bits are set to ‘X’ (Ignored). |
|
Button “OK” |
O |
Accept the Bit Pattern Selector configuration |
|
Button “Cancel” |
C |
Cancel the Bit Pattern Selector configuration |