Versão sem FFT e aquisição por DMA. 256 amostras.
Dependencies: EthernetInterface NTPClient mbed-rtos mbed
Headers/SignalProcessor.h
- Committer:
- rebonatto
- Date:
- 2016-01-05
- Revision:
- 0:e57bc370d339
File content as of revision 0:e57bc370d339:
/* * SignalProcessor.h * * Created on: * Author: */ #ifndef SIGNALPROCESSOR_H #define SIGNALPROCESSOR_H #include <math.h> #include "Capture.h" #include "Settings.h" class SignalProcessor { static float* ComplexFFT(float* data, int sign, int ch); static float ComplexFFTTeste(unsigned short int* data, float *vector, int sign, int ch); public: //static void CalculateRMSBulk(float *result); static void CalculateRMSBulk(float *result, float *vm2, int *under, int *over); static float CalculateRMS(short int *buffer,int nChannel); static float CalculateRMSFloat( float *buffer,int nChannel); static void CalculateFFT(float *buffer,float *sen,float *cos,float *vm,int sign, int ch); //static float DFT(float *data, float *seno, float *coss); }; #endif