GNU Radio 3.3.0 C++ API
|
Go to the source code of this file.
#define U2_DOUBLE_TO_FXPT_FREQ | ( | f | ) | (int64_t)((f) * (1LL << U2_FPF_RP)) |
Referenced by u2_double_to_fxpt_freq().
#define U2_DOUBLE_TO_FXPT_GAIN | ( | g | ) | (int16_t)((g) * (1 << U2_FPG_RP)) |
Referenced by u2_double_to_fxpt_gain().
#define U2_FPF_RP 20 |
Referenced by u2_fxpt_freq_round_to_int(), u2_fxpt_freq_round_to_uint(), and u2_fxpt_freq_to_double().
#define U2_FPG_RP 7 |
Referenced by u2_fxpt_gain_round_to_int(), and u2_fxpt_gain_to_double().
typedef int16_t u2_fxpt_gain_t |
Fixed point representation of a gain in dB (VITA-49 compatible)
16-bit two's complement, with the radix point 7 bits up from the bottom. Q9.7 format (7 bits to the right of the radix point)
static u2_fxpt_freq_t u2_double_to_fxpt_freq | ( | double | f | ) | [inline, static] |
References U2_DOUBLE_TO_FXPT_FREQ.
static u2_fxpt_gain_t u2_double_to_fxpt_gain | ( | double | g | ) | [inline, static] |
References U2_DOUBLE_TO_FXPT_GAIN.
static u2_fxpt_freq_t u2_fxpt_freq_from_hilo | ( | uint32_t | hi, |
uint32_t | lo | ||
) | [inline, static] |
References u2_fxpt_freq_t.
static uint32_t u2_fxpt_freq_hi | ( | u2_fxpt_freq_t | f | ) | [inline, static] |
static uint32_t u2_fxpt_freq_lo | ( | u2_fxpt_freq_t | f | ) | [inline, static] |
static int u2_fxpt_freq_round_to_int | ( | u2_fxpt_freq_t | fx | ) | [inline, static] |
References U2_FPF_RP.
static unsigned int u2_fxpt_freq_round_to_uint | ( | u2_fxpt_freq_t | fx | ) | [inline, static] |
References U2_FPF_RP.
static double u2_fxpt_freq_to_double | ( | u2_fxpt_freq_t | fx | ) | [inline, static] |
References U2_FPF_RP.
static int u2_fxpt_gain_round_to_int | ( | u2_fxpt_gain_t | fx | ) | [inline, static] |
References U2_FPG_RP.
static float u2_fxpt_gain_to_double | ( | u2_fxpt_gain_t | fx | ) | [inline, static] |
References U2_FPG_RP.
__U2_BEGIN_DECLS typedef int64_t u2_fxpt_freq_t |
Fixed point representation of a frequency in Hertz (VITA-49 compatible)
64-bit two's complement, with the radix point 20 bits up from the bottom. Q44.20 format (20 bits to the right of the radix point)
Values range from +/- 8.79 terahertz with a resolution of 0.95 microhertz.
Referenced by u2_fxpt_freq_from_hilo().