-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfilter_fir_F.h
More file actions
48 lines (28 loc) · 731 Bytes
/
filter_fir_F.h
File metadata and controls
48 lines (28 loc) · 731 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
34
35
36
37
38
39
40
41
42
43
44
45
#pragma once
#include "base.h"
#ifdef __cplusplus
namespace fastdsp {
namespace filter {
#endif
typedef struct {
float32 *weights; //!< Weights
float32 *buffer; //!< Circular buffer
count_t cb_index; //!< Circular index of buffer
count_t size; //!< Weights and buffer sizes
float32 input; //!< Current input value
float32 output; //!< Current output value
} fir_f_t;
EXTERN int fir_init_F(
fir_f_t *fir,
float32 *weights,
float32 *buffer,
count_t size
);
EXTERN float32 fir_process_F(
fir_f_t *fir,
float32 input
);
#ifdef __cplusplus
}; //namespace filter
}; //namespace fastdsp
#endif