First Version
Dependencies: EthernetInterface mbed-rtos mbed
Diff: Headers/SignalProcessor.h
- Revision:
- 0:9df41090ba33
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Headers/SignalProcessor.h Tue Jul 21 21:29:49 2015 +0000 @@ -0,0 +1,31 @@ +/* + * 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(unsigned short int* data, int sign, int ch); + +public: + + //static void CalculateRMSBulk(float *result); + static void CalculateRMSBulk(float *result, float *vm2, int *under, int *over); + static float CalculateRMS(unsigned short int *buffer,int nChannel); + static void CalculateFFT(unsigned short int *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