Versão estável sem DMA e FFT. 128 amostras.

Dependencies:   EthernetInterface NTPClient mbed-rtos mbed

Revision:
0:fac116e94d44
diff -r 000000000000 -r fac116e94d44 Headers/SignalProcessor.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Headers/SignalProcessor.h	Tue Jan 05 11:47:35 2016 +0000
@@ -0,0 +1,33 @@
+/*
+ * 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(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
\ No newline at end of file