FireSync API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
#define kField_DiffNamedRange_ (   REG_VAL_A,
  REG_VAL_B,
  FIELD_NAME 
)
related

Takes the difference between register fields at the same location within two register values by token-pasting left/right macros using a specific naming scheme.

(MSB - LSB) must be strictly less than the bit width of the type of MSB. See remarks in kField_ToMask_ documentation.

Parameters
REG_VAL_ARegister value A.
REG_VAL_BRegister value B.
FIELD_NAMEMacro prefix, prepended to _MSB and _LSB.
Returns
Value extracted from bitfield.