First Version
Dependencies: EthernetInterface mbed-rtos mbed
Capture.h
00001 /* 00002 * capture.h 00003 * 00004 * Created on: 00005 * Author: 00006 */ 00007 00008 #ifndef CAPTURE_H 00009 #define CAPTURE_H 00010 00011 #include <stdio.h> 00012 #include <string.h> 00013 #include <math.h> 00014 00015 #include "mbed.h" 00016 #include "rtos.h" 00017 #include "dma.h" 00018 #include "adc.h" 00019 00020 #include "Settings.h" 00021 00022 class Capture 00023 { 00024 00025 protected: 00026 static bool flag_capture; 00027 static int cnt_buffer; 00028 static int channel_number; 00029 static int cnt_interrupt; 00030 00031 public: 00032 //Usa buffe r de 256 * 2 valores para usar na FFT 00033 static float m_AdcBuffers[NUMBER_OF_CHANNELS][NUMBER_OF_SAMPLES]; 00034 00035 public: 00036 00037 static float GetValue(int nsamples, int nchannel); 00038 static void PutValue(int nsamples, int nchannel, float value); 00039 static void CopyBuffer(int channel, float *dest); 00040 00041 static void AcquireValues(); 00042 static void InitializeAD(); 00043 static void FcnTimerInt(void); 00044 00045 static void ReadRFID(int channel,char *rfid); 00046 00047 }; 00048 00049 #endif
Generated on Thu Jul 21 2022 16:56:17 by 1.7.2