Difference between revisions of "CANMASK"

From SphereWiki
Jump to: navigation, search
(Created page with "=Description= X branch only. This property is a bitmask, like the CAN property, and stores the CAN flags to be dynamically switched on or off from the base CAN property....")
 
 
Line 1: Line 1:
 
=Description=
 
=Description=
  
X branch only. This property is a bitmask, like the CAN property, and stores the [[CAN]] flags to be dynamically switched on or off from the base CAN property.
+
X branch only.
 +
 
 +
This property is a bitmask, like the CAN property, and stores the [[CAN]] flags to be dynamically switched on or off from the base CAN property.
  
 
When retrieving the CAN property, now it is first XORed with CANMASK (the return value will be CAN ^ CANMASK), so in other words:
 
When retrieving the CAN property, now it is first XORed with CANMASK (the return value will be CAN ^ CANMASK), so in other words:

Latest revision as of 21:44, 2 December 2023

Description

X branch only.

This property is a bitmask, like the CAN property, and stores the CAN flags to be dynamically switched on or off from the base CAN property.

When retrieving the CAN property, now it is first XORed with CANMASK (the return value will be CAN ^ CANMASK), so in other words:

If a flag set in the CANMASK is also set in CAN, the flag is ignored; If a flag set in the CANMASK isn't set in CAN, the flag is considered as set.