-
Notifications
You must be signed in to change notification settings - Fork 1
/
dspp.h
74 lines (65 loc) · 2.22 KB
/
dspp.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/*
* dspp.h - DSP Pipes class
*
* Copyright (C) 2019
* Mark Broihier
*
*/
/* ---------------------------------------------------------------------- */
#include <netinet/in.h>
#include <sys/socket.h>
#include <sys/types.h>
#include "FIRFilter.h"
#include "DsppFFT.h"
#include "FMMod.h"
#include "RTLTCPClient.h"
#include "RTLTCPServer.h"
#include "SFIRFilter.h"
#include "CFilter.h"
#include "AGC.h"
#include "FT8Window.h"
#include "WSPRWindow.h"
#include "WindowSample.h"
/* ---------------------------------------------------------------------- */
class dspp {
private:
public:
int convert_byte_sInt16();
int convert_byte_f();
int convert_f_byte();
int convert_uByte_f();
int convert_uByte_byte();
int shift_frequency_cc(float cyclesPerSample);
int shift_frequency_uByteuByte(float cyclesPerSample);
int fsSlash4_byte_byte();
int decimate_cc(float cutOffFrequency, int M, int amount, int N, const char * window);
int fmdemod_cf();
int decimate_ff(float cutOffFrequency, int M, int amount, int N, const char * window);
int convert_f_uInt16();
int convert_f_sInt16();
int convert_tcp_byte(const char * IPAddress, int port, int frequency, int sampleRate, int mode, int gain);
int convert_byte_tcp(const char * IPAddress, int port);
int custom_fir_ff(const char * filePath, int M, int N, FIRFilter::WindowType window);
int custom_fir_cc(const char * filePath, int M, int N, FIRFilter::WindowType window);
int real_to_complex_fc();
int real_of_complex_cf();
int mag_cf();
int gain(float gain);
int fmmod_fc(float sampleRate);
int head(int amount);
int tail(int amount);
int convert_sInt16_f();
int fft_cc(int numberOfComplexSamples);
int tee(char * otherStream);
int limit_real_stream();
int dc_removal(float * buffer, int size);
int agc(float target);
int split_stream(char ** paths);
int FT8_window(float dialFrequency, char * prefix, int numberOfCandidates, char * reporterID,
char * reporterLocation);
int WSPR_window(float dialFrequency, char * prefix, int numberOfCandidates, char * reporterID,
char * reporterLocation);
int window_sample(int samplesInPeriod, int modulo, int syncTo);
//dspp(void);
//~dspp(void);
};