-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCFilter.h
More file actions
33 lines (27 loc) · 750 Bytes
/
CFilter.h
File metadata and controls
33 lines (27 loc) · 750 Bytes
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
#ifndef CFILTER_H_
#define CFILTER_H_
/*
* CFilter.h - Comb filter class
*
* Copyright (C) 2022
* Mark Broihier
*
*/
/* ---------------------------------------------------------------------- */
/* ---------------------------------------------------------------------- */
class CFilter {
private:
static const bool debug = false;
int BUFFER_SIZE; // number of bytes to read from the pipe
signed char * inputBuffer; // buffer read directly from stream
float * outputBuffer; // filtered I/Q values
int decimation;
int readSignalPipe();
int writeSignalPipe();
void doWork(int decimation);
public:
explicit CFilter(int decimation);
void filterSignal();
~CFilter(void);
};
#endif // CFILTER_H_