Skip to content

Struct sstep_gain

ClassList > 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 .

int8_t sstep_gain::exp;

. SSTEP_GAIN_EXP_MAX.


variable mant

Q15 mantissa.

int16_t sstep_gain::mant;



The documentation for this class was generated from the following file src/sstep_math.h