Struct sstep_gain¶
Gain of any magnitude: value = mant / 2^15 * 2^exp. More...
#include <sstep_math.h>
Public Attributes¶
| Type | Name |
|---|---|
| int8_t | exp Binary exponent, SSTEP_GAIN_EXP_MIN . |
| int16_t | mant Q15 mantissa. |
Detailed Description¶
Created by sstep_gain_from_ratio(); the mantissa is normalised (16384 <= |mant| <= 32767) for the best resolution, or 0.
Public Attributes Documentation¶
variable exp¶
Binary exponent, SSTEP_GAIN_EXP_MIN .
variable mant¶
Q15 mantissa.
The documentation for this class was generated from the following file src/sstep_math.h