simulavr  1.1.0
HWARef4 Class Reference

ADC reference is selected on 3 or 4 different sources: Vcc, aref pin, bandgap or 2.56V reference. More...

#include <hwad.h>

Inheritance diagram for HWARef4:

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
AvrDevicecore
 

Detailed Description

ADC reference is selected on 3 or 4 different sources: Vcc, aref pin, bandgap or 2.56V reference.

Definition at line 60 of file hwad.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
REFTYPE_NOBG 

0:aref, 1:vcc, 2:-, 3:2.56V

REFTYPE_BG3 

0:aref, 1:vcc, 2:bg, 3:2.56V

REFTYPE_BG4 

0:aref, 1:vcc, 2:-, 3:bg

Definition at line 66 of file hwad.h.

Constructor & Destructor Documentation

◆ HWARef4()

HWARef4::HWARef4 ( AvrDevice _core,
int  _type 
)

Definition at line 40 of file hwad.cpp.

Member Function Documentation

◆ GetRefValue()

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

Member Data Documentation

◆ refType

int HWARef4::refType
protected

Definition at line 63 of file hwad.h.

Referenced by GetRefValue().


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