Index: Common.h =================================================================== diff -u -r7ff7e715f7a15da5f4055b33e186d58cf96fe909 -radab2bae581c8421a4f92855519984497824ff0c --- Common.h (.../Common.h) (revision 7ff7e715f7a15da5f4055b33e186d58cf96fe909) +++ Common.h (.../Common.h) (revision adab2bae581c8421a4f92855519984497824ff0c) @@ -91,20 +91,21 @@ #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 2-byte word of a 4-byte word -#define SHIFT_8_BITS_FOR_BYTE_SHIFT 8 ///< # of bits to shift in order to shift a byte -#define SHIFT_16_BITS_FOR_WORD_SHIFT 16 ///< # of bits to shift in order to shift 2 bytes +#define MASK_OFF_U32_MSB 0x00FFFFFF ///< Bits to mask off the most significant 3-byte word 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 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 #define MAX_SINGLE_DIGIT_DECIMAL 9U ///< Maximum value for a decimal nibble -#define SHIFT_BITS_BY_4 4U ///< # of bits to shift in order to shift a nibble +#define SHIFT_BITS_BY_4 4U ///< Number of bits to shift in order to shift a nibble #define FLOAT_TO_INT_ROUNDUP_OFFSET 0.5 ///< Offset to add to a floating point value for rounding rounding when converting to integer -#define ML_PER_LITER 1000 ///< # of milliliters in a liter -#define MS_PER_SECOND 1000 ///< # of milliseconds in a second -#define SEC_PER_MIN 60 ///< # of seconds in a minute +#define ML_PER_LITER 1000 ///< Number of milliliters in a liter +#define MS_PER_SECOND 1000 ///< Number of milliseconds in a second +#define US_PER_SECOND 1000000 ///< Number of microseconds in a millisecond +#define SEC_PER_MIN 60 ///< Number of seconds in a minute #define FRACTION_TO_PERCENT_FACTOR 100.0 ///< Percentage factor (100) -#define MIN_PER_HOUR 60 ///< # of minutes in an hour +#define MIN_PER_HOUR 60 ///< Number of minutes in an hour #define PI 3.1415927 ///< PI #define SECONDS_IN_A_DAY 86400 ///< Number of seconds in a day