Versão sem FFT e aquisição por DMA. 256 amostras.
Dependencies: EthernetInterface NTPClient mbed-rtos mbed
Headers/SignalProcessor.h@0:e57bc370d339, 2016-01-05 (annotated)
- Committer:
- rebonatto
- Date:
- Tue Jan 05 11:45:44 2016 +0000
- Revision:
- 0:e57bc370d339
Vers?o est?vel sem calculo de FFT. Aquisi??o por DMA. Usa 256 amostras.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
rebonatto | 0:e57bc370d339 | 1 | /* |
rebonatto | 0:e57bc370d339 | 2 | * SignalProcessor.h |
rebonatto | 0:e57bc370d339 | 3 | * |
rebonatto | 0:e57bc370d339 | 4 | * Created on: |
rebonatto | 0:e57bc370d339 | 5 | * Author: |
rebonatto | 0:e57bc370d339 | 6 | */ |
rebonatto | 0:e57bc370d339 | 7 | |
rebonatto | 0:e57bc370d339 | 8 | #ifndef SIGNALPROCESSOR_H |
rebonatto | 0:e57bc370d339 | 9 | #define SIGNALPROCESSOR_H |
rebonatto | 0:e57bc370d339 | 10 | |
rebonatto | 0:e57bc370d339 | 11 | #include <math.h> |
rebonatto | 0:e57bc370d339 | 12 | |
rebonatto | 0:e57bc370d339 | 13 | #include "Capture.h" |
rebonatto | 0:e57bc370d339 | 14 | #include "Settings.h" |
rebonatto | 0:e57bc370d339 | 15 | |
rebonatto | 0:e57bc370d339 | 16 | class SignalProcessor |
rebonatto | 0:e57bc370d339 | 17 | { |
rebonatto | 0:e57bc370d339 | 18 | |
rebonatto | 0:e57bc370d339 | 19 | static float* ComplexFFT(float* data, int sign, int ch); |
rebonatto | 0:e57bc370d339 | 20 | static float ComplexFFTTeste(unsigned short int* data, float *vector, int sign, int ch); |
rebonatto | 0:e57bc370d339 | 21 | |
rebonatto | 0:e57bc370d339 | 22 | public: |
rebonatto | 0:e57bc370d339 | 23 | |
rebonatto | 0:e57bc370d339 | 24 | //static void CalculateRMSBulk(float *result); |
rebonatto | 0:e57bc370d339 | 25 | static void CalculateRMSBulk(float *result, float *vm2, int *under, int *over); |
rebonatto | 0:e57bc370d339 | 26 | static float CalculateRMS(short int *buffer,int nChannel); |
rebonatto | 0:e57bc370d339 | 27 | static float CalculateRMSFloat( float *buffer,int nChannel); |
rebonatto | 0:e57bc370d339 | 28 | static void CalculateFFT(float *buffer,float *sen,float *cos,float *vm,int sign, int ch); |
rebonatto | 0:e57bc370d339 | 29 | //static float DFT(float *data, float *seno, float *coss); |
rebonatto | 0:e57bc370d339 | 30 | |
rebonatto | 0:e57bc370d339 | 31 | }; |
rebonatto | 0:e57bc370d339 | 32 | |
rebonatto | 0:e57bc370d339 | 33 | #endif |