You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
360 B
28 lines
360 B
7 years ago
|
/*
|
||
|
* adc.h
|
||
|
*
|
||
|
* Created on: Jul 20, 2017
|
||
|
* Author: Elmar
|
||
|
*/
|
||
|
|
||
|
#ifndef APP_ADC_H_
|
||
|
#define APP_ADC_H_
|
||
|
|
||
|
#include "sensor.h"
|
||
|
|
||
|
namespace rijnfel {
|
||
|
|
||
|
template<typename Sample, typename Voltage>
|
||
|
class cADC: public cSensor<Sample> {
|
||
|
public:
|
||
|
cADC() {
|
||
|
|
||
|
}
|
||
|
virtual Voltage ConvertSample(Sample & sample) = 0;
|
||
|
virtual ~cADC() {
|
||
|
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
#endif /* APP_ADC_H_ */
|