-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOptoFilter.h
More file actions
40 lines (33 loc) · 1.01 KB
/
Copy pathOptoFilter.h
File metadata and controls
40 lines (33 loc) · 1.01 KB
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
/*
* OptoFilter.h
*
* Created: 11/11/2013 5:58:14 PM
* Author: Caroline
*/
#ifndef OPTOFILTER_H_
#define OPTOFILTER_H_
#include <stdio.h>
#include <stdint.h>
#include "dsp.h"
/************************************************************************/
/* Bandpass filtering for each of the 6 guitar strings
/*
/* Parameters:
/* uint16_t *signal_data - address of stored ADC samples
/* uint8_t string_num - corresponding guitar string number
/*
/* Returns:
/* Filtered data for the corresponding string number
/************************************************************************/
uint16_t fir_bpf(uint16_t *signal_data, uint8_t string_num);
/************************************************************************/
/* Sum all six string data together
/*
/* Parameters:
/* uint16_t *signal_data - address of filtered samples
/*
/* Returns:
/* Summation of all string data
/************************************************************************/
uint16_t sum_signal(uint16_t *signal_data);
#endif /* OPTOFILTER_H_ */