simulavr  1.1.0
HWARefPin Class Reference

ADC reference is taken from special ADREF pin (no port pin) More...

#include <hwad.h>

Inheritance diagram for HWARefPin:

Public Member Functions

 HWARefPin (AvrDevice *_core)
 
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
AvrDevicecore
 

Detailed Description

ADC reference is taken from special ADREF pin (no port pin)

Definition at line 48 of file hwad.h.

Constructor & Destructor Documentation

◆ HWARefPin()

HWARefPin::HWARefPin ( AvrDevice _core)

Definition at line 30 of file hwad.cpp.

References aref_pin, HWARef::core, and AvrDevice::RegisterPin().

Member Function Documentation

◆ GetRefValue()

float HWARefPin::GetRefValue ( int  select,
float  vcc 
)
virtual

Implements HWARef.

Reimplemented in HWARef4.

Definition at line 36 of file hwad.cpp.

References aref_pin, and Pin::GetAnalogValue().

Member Data Documentation

◆ aref_pin

Pin HWARefPin::aref_pin
protected

Definition at line 51 of file hwad.h.

Referenced by GetRefValue(), HWARef4::GetRefValue(), HWARef8::GetRefValue(), and HWARefPin().


The documentation for this class was generated from the following files: