AEM
|
#include <adcMgr.h>
Public Member Functions | |
virtual float | getValue (uint8_t channel) const =0 |
ADCMgr (uint8_t id, uint8_t nbChan) | |
Data Fields | |
const uint8_t | nbChannels |
Protected Member Functions | |
virtual void | doSelfTest () const =0 |
virtual YSPI * | usartInit () const =0 |
virtual YSPI * | hwInit () const =0 |
Protected Attributes | |
YADC * | adc |
boolean | usingUSARTSPI = true |
const uint8_t | adcID |
ADCMgr is the pure abstract class that provides the interface to all test running sublcasses. This is used because Yannick tests on a harvester board, whereas Bob tests on an Iteaduino Mega. Configurations differ but share some common methods and variales
ADCMgr::ADCMgr | ( | uint8_t | id, |
uint8_t | nbChan | ||
) |
App instance constructor inits the adc ID
id | ADC id |
nbChan | the nmber of channels that the adc is using |
|
protectedpure virtual |
doSelfTest pure virtual exectues the ADC self test runs the adc self-test and informs, blocks if failure
Implemented in YADCMgr.
|
pure virtual |
get the channle value
channel | the channel to check and on which to inform |
Implemented in YADCMgr.
|
protectedpure virtual |
|
protectedpure virtual |
|
protected |
pointer to instance of ADC that will be created
|
protected |
identifying which adc (or USART channel) we are testing in this app instance
const uint8_t ADCMgr::nbChannels |
adc number of channels to be polled
|
protected |
value may be changed during setup based on reading of yspiOnPin