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.
ADC_Driver.h
- Committer:
- nguyenmanhthao996tn
- Date:
- 2017-09-30
- Revision:
- 0:a3a6ffc62b06
File content as of revision 0:a3a6ffc62b06:
#ifndef __ADC_DRIVER__
#define __ADC_DRIVER__
/*********** Libraries ***********/
#include "mbed.h"
#include "PinConfiguration.h"
#define REFERENCE_VOLTAGE 3.3
/*********** Data Types ***********/
class ADC_Driver
{
private:
AnalogIn *mag, *phs;
public:
ADC_Driver(PinName MagnitudePin, PinName PhasePin);
float readMag(void);
float readPhs(void);
};
#endif /* __ADC_DRIVER__ */