59 #ifndef FOXBMS__FOXMATH_H_
60 #define FOXBMS__FOXMATH_H_
72 #define UNIT_CONVERSION_FACTOR_1000_INTEGER (1000)
73 #define UNIT_CONVERSION_FACTOR_10_FLOAT (10.0f)
74 #define UNIT_CONVERSION_FACTOR_100_FLOAT (100.0f)
75 #define UNIT_CONVERSION_FACTOR_1000_FLOAT (1000.0f)
uint64_t MATH_swapBytes_uint64_t(uint64_t val)
Swap bytes of uint64_t value.
float MATH_MinimumOfTwoFloats(float value1, float value2)
Returns the minimum of the passed float values.
uint16_t MATH_swapBytes_uint16_t(uint16_t val)
Swap bytes of uint16_t value.
uint8_t MATH_MinimumOfTwoUint8_t(uint8_t value1, uint8_t value2)
Returns the minimum of the passed uint8_t values.
int32_t MATH_AbsInt32(int32_t value)
Returns the absolute value of passed int32_t value.
uint32_t MATH_swapBytes_uint32_t(uint32_t val)
Swap bytes of uint32_t value.
int64_t MATH_AbsInt64(int64_t value)
Returns the absolute value of passed int64_t value.
float MATH_linearInterpolation(float x1, float y1, float x2, float y2, float x_interpolate)
Linear inter-/extrapolates a third point according to two given points.
uint16_t MATH_MinimumOfTwoUint16_t(uint16_t value1, uint16_t value2)
Returns the minimum of the passed uint16_t values.
General macros and definitions for the whole platform.