Index: Common.h =================================================================== diff -u -r810dd01b8fa7d5864adea6aaf13c43c61f2c889b -r69a0182c54b996ab7ed94e9b3071d49588a1710a --- Common.h (.../Common.h) (revision 810dd01b8fa7d5864adea6aaf13c43c61f2c889b) +++ Common.h (.../Common.h) (revision 69a0182c54b996ab7ed94e9b3071d49588a1710a) @@ -99,9 +99,12 @@ #define MASK_OFF_LSB 0xFF00 ///< Bits to mask off the least significant byte of a 2-byte word #define MASK_OFF_MSW 0x0000FFFF ///< Bits to mask off the most significant 2-byte word of a 4-byte word #define MASK_OFF_LSW 0xFFFF0000 ///< Bits to mask off the least significant 2-byte word of a 4-byte word -#define MASK_OFF_U32_MSB 0x00FFFFFF ///< Bits to mask off the most significant 3-byte word of a 4-byte word +#define MASK_OFF_U32_MSB 0x00FFFFFF ///< Bits to mask off the most significant byte word of a 4-byte word +#define MASK_OFF_U32_LSB 0xFFFFFF00 ///< Bits to mask off the least significant byte of a 4-byte word +#define MASK_OFF_U32_MSBS 0x000000FF ///< Bits to mask off all but the least significant byte of a 4-byte word #define SHIFT_8_BITS_FOR_BYTE_SHIFT 8 ///< Number of bits to shift in order to shift a byte #define SHIFT_16_BITS_FOR_WORD_SHIFT 16 ///< Number of bits to shift in order to shift 2 bytes +#define SHIFT_24_BITS 24 ///< Number of bits to shift in order to shift 3 bytes #define MASK_OFF_NIBBLE_LSB 0xF0 ///< Bits to mask off the least significant nibble of a byte #define MASK_OFF_NIBBLE_MSB 0x0F ///< Bits to mask off the most significant nibble of a byte #define MAX_DOUBLE_DIGIT_DECIMAL 99U ///< Maximum value for a decimal byte