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

Takes the difference between register fields at the same location within two register values.

(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.
MSBLeftmost bit index in range (highest).
LSBRightmost bit index in range (lowest).
Returns
Value extracted from bitfield.