|
simulavr
1.1.0
|
ADC reference is selected on 4 diff. sources: Vcc, aref pin, bandgap or 2.56V reference. More...
#include <hwad.h>
Public Member Functions | |
| HWARef8 (AvrDevice *_core, Pin *_refpin) | |
| virtual float | GetRefValue (int select, float vcc) |
Public Member Functions inherited from HWARef | |
| HWARef (AvrDevice *_core) | |
| virtual | ~HWARef () |
Protected Attributes | |
| Pin * | aref_pin |
Protected Attributes inherited from HWARef | |
| AvrDevice * | core |
ADC reference is selected on 4 diff. sources: Vcc, aref pin, bandgap or 2.56V reference.
Definition at line 84 of file hwad.h.
References HWARef::GetRefValue().
|
virtual |
Implements HWARef.
Definition at line 68 of file hwad.cpp.
References HWARefPin::aref_pin, avr_warning, HWARef::core, Pin::GetAnalogValue(), Pin::GetRawAnalog(), and AvrDevice::v_bandgap.