forked from wpats/scanner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathutility.h
26 lines (24 loc) · 1.26 KB
/
utility.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma once
class Utility
{
public:
static void short_complex_to_float_complex(int16_t * realSamples,
int16_t * complexSamples,
fftwf_complex * destination,
uint32_t sampleCount,
uint32_t enob,
bool correctDCOffset);
static void byte_complex_to_float_complex(int8_t source[][2],
fftwf_complex * destination,
uint32_t sampleCount,
uint32_t enob,
bool correctDCOffset);
static void short_complex_to_float_complex(int16_t source[][2],
fftwf_complex * destination,
uint32_t sampleCount,
uint32_t enob,
bool correctDCOffset);
static void complex_to_magnitude(fftwf_complex * fft_data,
float * magnitudes,
uint32_t sampleCount);
};