3.11.5 Q15_SCALE
C
#define Q15_SCALE(value) (int16_t)( value * (float32_t)Q15_SCALE_FACTOR)
Summary
Convert the given value into the Q15 fixed-point format .
Description
The macro is used to convert the given value into the Q15 fixed-point format by
multiplying it with a predefined scaling factor, Q15_SCALE_FACTOR
().
Example
float32_t input_value = 0.50f; //
int16_t scaled_value = Q15_SCALE(input_value); // Scaled result
Remarks
None