39 #ifndef ti_drivers_utils_Math__include 40 #define ti_drivers_utils_Math__include 59 #define Math_MIN(x, y) (((x) < (y)) ? (x) : (y)) 72 #define Math_MAX(x, y) (((x) > (y)) ? (x) : (y)) 85 #define Math_ABS(x) (((x) < 0) ? -(x) : (x)) uint32_t Math_divideBy1000(uint32_t dividend)
Divide a number by 1000.
uint16_t Math_avgBestOfThreeValues(uint16_t arr[])
Function to average the best of three values.
uint16_t Math_calcAverage(uint16_t arr[], uint_fast16_t size)
Function to calculate the average of an array of numbers.