Index: Common.h =================================================================== diff -u -r69a0182c54b996ab7ed94e9b3071d49588a1710a -r5cda4fc0de4dcd9404357f2c6869d387a57a1a7c --- Common.h (.../Common.h) (revision 69a0182c54b996ab7ed94e9b3071d49588a1710a) +++ Common.h (.../Common.h) (revision 5cda4fc0de4dcd9404357f2c6869d387a57a1a7c) @@ -112,13 +112,19 @@ #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 ///< Number of milliliters in a liter +#define MA_PER_AMP 1000 ///< Number of milliamps in an amp #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 ///< Number of minutes in an hour #define PI 3.1415927 ///< PI #define SECONDS_IN_A_DAY 86400 ///< Number of seconds in a day +#define BITS_8_FULL_SCALE 256 ///< Full scale range for 8 bit ADC or DAC +#define BITS_10_FULL_SCALE 1024 ///< Full scale range for 10 bit ADC or DAC +#define BITS_12_FULL_SCALE 4096 ///< Full scale range for 12 bit ADC or DAC +#define BITS_14_FULL_SCALE 16384 ///< Full scale range for 14 bit ADC or DAC +#define BITS_16_FULL_SCALE 65536 ///< Full scale range for 16 bit ADC or DAC // **** Common Macros ****