AEM
yADC.h
Go to the documentation of this file.
1 #ifndef YADC_H
2 #define YADC_H
3 
4 #if defined(ARDUINO) && ARDUINO >= 100
5 #include <Arduino.h>
6 #else
7 #include <WProgram.h>
8 #endif
9 
10 #include "yspi.h"
11 
17 class YADC {
18  protected:
19  const YSPI *const yspi = NULL;
20  void selfTestFailed() const ;
21 
22  public:
23  YADC(const YSPI *const y);
24  virtual float acquireChannel(uint8_t channel) = 0;
25  virtual bool selftest(void) = 0;
26 };
27 #endif
28 
29 
virtual bool selftest(void)=0
virtual float acquireChannel(uint8_t channel)=0
Definition: yspi.h:34
const YSPI *const yspi
Definition: yADC.h:19
void selfTestFailed() const
Definition: yADC.cpp:8
YADC(const YSPI *const y)
Definition: yADC.cpp:6
Definition: yADC.h:17