First Version
Dependencies: EthernetInterface mbed-rtos mbed
Headers/SignalProcessor.h@3:94a128e0f316, 2016-03-07 (annotated)
- Committer:
- rebonatto
- Date:
- Mon Mar 07 19:20:49 2016 +0000
- Revision:
- 3:94a128e0f316
- Parent:
- 0:9df41090ba33
Vers?o est?vel com nova forma de aquisi??o de valores e limpeza de c?digo desnecess?rio.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
rebonatto | 0:9df41090ba33 | 1 | /* |
rebonatto | 0:9df41090ba33 | 2 | * SignalProcessor.h |
rebonatto | 0:9df41090ba33 | 3 | * |
rebonatto | 0:9df41090ba33 | 4 | * Created on: |
rebonatto | 0:9df41090ba33 | 5 | * Author: |
rebonatto | 0:9df41090ba33 | 6 | */ |
rebonatto | 0:9df41090ba33 | 7 | |
rebonatto | 0:9df41090ba33 | 8 | #ifndef SIGNALPROCESSOR_H |
rebonatto | 0:9df41090ba33 | 9 | #define SIGNALPROCESSOR_H |
rebonatto | 0:9df41090ba33 | 10 | |
rebonatto | 0:9df41090ba33 | 11 | #include <math.h> |
rebonatto | 0:9df41090ba33 | 12 | |
rebonatto | 0:9df41090ba33 | 13 | #include "Capture.h" |
rebonatto | 0:9df41090ba33 | 14 | #include "Settings.h" |
rebonatto | 0:9df41090ba33 | 15 | |
rebonatto | 0:9df41090ba33 | 16 | class SignalProcessor |
rebonatto | 0:9df41090ba33 | 17 | { |
rebonatto | 0:9df41090ba33 | 18 | |
rebonatto | 0:9df41090ba33 | 19 | static float* ComplexFFT(unsigned short int* data, int sign, int ch); |
rebonatto | 0:9df41090ba33 | 20 | |
rebonatto | 0:9df41090ba33 | 21 | public: |
rebonatto | 0:9df41090ba33 | 22 | |
rebonatto | 0:9df41090ba33 | 23 | //static void CalculateRMSBulk(float *result); |
rebonatto | 0:9df41090ba33 | 24 | static void CalculateRMSBulk(float *result, float *vm2, int *under, int *over); |
rebonatto | 0:9df41090ba33 | 25 | static float CalculateRMS(unsigned short int *buffer,int nChannel); |
rebonatto | 0:9df41090ba33 | 26 | static void CalculateFFT(unsigned short int *buffer,float *sen,float *cos,float *vm,int sign, int ch); |
rebonatto | 0:9df41090ba33 | 27 | //static float DFT(float *data, float *seno, float *coss); |
rebonatto | 0:9df41090ba33 | 28 | |
rebonatto | 0:9df41090ba33 | 29 | }; |
rebonatto | 0:9df41090ba33 | 30 | |
rebonatto | 0:9df41090ba33 | 31 | #endif |