protegemed, aquisição via A/D simples utilizando interrupção do timer

Dependencies:   EthernetInterface NTPClient mbed-rtos mbed

Fork of ptgm_semDMA by Marcelo Rebonatto

Headers/SignalProcessor.h

Committer:
viniciushl
Date:
2016-01-13
Revision:
1:8129536051df
Parent:
0:fac116e94d44

File content as of revision 1:8129536051df:

/*
 * 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