Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: EthernetInterface mbed-rtos mbed
Headers/Capture.h
- Committer:
- rebonatto
- Date:
- 2016-03-04
- Revision:
- 2:bf4bbf7d6793
- Parent:
- 0:9df41090ba33
File content as of revision 2:bf4bbf7d6793:
/*
* capture.h
*
* Created on:
* Author:
*/
#ifndef CAPTURE_H
#define CAPTURE_H
#include <stdio.h>
#include <string.h>
#include <math.h>
#include "mbed.h"
#include "rtos.h"
#include "dma.h"
#include "adc.h"
#include "Settings.h"
class Capture
{
protected:
static bool flag_capture;
static int cnt_buffer;
static int channel_number;
static int cnt_interrupt;
public:
//Usa buffe r de 256 * 2 valores para usar na FFT
static float m_AdcBuffers[NUMBER_OF_CHANNELS][NUMBER_OF_SAMPLES];
public:
static float GetValue(int nsamples, int nchannel);
static void PutValue(int nsamples, int nchannel, float value);
static void CopyBuffer(int channel, float *dest);
static void AcquireValues();
static void InitializeAD();
static void FcnTimerInt(void);
static void ReadRFID(int channel,char *rfid);
};
#endif
