simulavr
1.1.0
|
ADC reference is selected on 3 or 4 different sources: Vcc, aref pin, bandgap or 2.56V reference. More...
#include <hwad.h>
Public Types | |
enum | { REFTYPE_NOBG, REFTYPE_BG3, REFTYPE_BG4 } |
Public Member Functions | |
HWARef4 (AvrDevice *_core, int _type) | |
virtual float | GetRefValue (int select, float vcc) |
![]() | |
HWARefPin (AvrDevice *_core) | |
![]() | |
HWARef (AvrDevice *_core) | |
virtual | ~HWARef () |
Protected Attributes | |
int | refType |
![]() | |
Pin | aref_pin |
![]() | |
AvrDevice * | core |
ADC reference is selected on 3 or 4 different sources: Vcc, aref pin, bandgap or 2.56V reference.
anonymous enum |
|
virtual |
Reimplemented from HWARefPin.
Definition at line 44 of file hwad.cpp.
References HWARefPin::aref_pin, avr_warning, HWARef::core, Pin::GetAnalogValue(), Pin::GetRawAnalog(), refType, REFTYPE_BG3, REFTYPE_BG4, and AvrDevice::v_bandgap.
|
protected |
Definition at line 63 of file hwad.h.
Referenced by GetRefValue().