|
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) |
Public Member Functions inherited from HWARefPin | |
| HWARefPin (AvrDevice *_core) | |
Public Member Functions inherited from HWARef | |
| HWARef (AvrDevice *_core) | |
| virtual | ~HWARef () |
Protected Attributes | |
| int | refType |
Protected Attributes inherited from HWARefPin | |
| Pin | aref_pin |
Protected Attributes inherited from HWARef | |
| 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().