65 #define FLT2DU(VAL, DEC) fltInt(VAL), fltFrac(VAL, DEC)
int32_t fltInt(f32_t value)
Returns the integer part of the floating point value.
uint32_t fltFrac(f32_t value, int decimals)
Returns the fractional part of the floating point with the specified number of decimals.
uint32_t f32_t
32 bit representation for float.
uint64_t f64_t
642 bit representation for float
f32_t fltFromI16(int16_t val, int fBits)
Takes an integer value and converts it to a float.
int32_t fltToI32(f32_t value, uint32_t multiplier)
This takes a f32_t IEEE 754 single precision floating point, and converts it to a multiplied integer...