simulavr  1.1.0
HWAdmux Class Referenceabstract

#include <hwad.h>

Inheritance diagram for HWAdmux:

Public Member Functions

 HWAdmux (AvrDevice *_core, int _pins)
 
virtual ~HWAdmux ()
 
virtual float GetValue (int select, float vcc)=0
 
virtual float GetValueAComp (int select, float vcc)
 
virtual bool IsDifferenceChannel (int select)
 
void SetMuxSelect (int select)
 
void PinStateHasChanged (Pin *)
 
void RegisterNotifyClient (AnalogSignalChange *client)
 
void UnregisterNotifyClient (void)
 
- Public Member Functions inherited from HasPinNotifyFunction
virtual ~HasPinNotifyFunction ()
 

Protected Attributes

Pin * ad [16]
 
AnalogSignalChange * notifyClient
 
int muxSelect
 
int numPins
 Multiplexer channel, can't be used for ADC sampling because of buffering on conversion start! More...
 
AvrDevice * core
 

Detailed Description

ADC multiplexer base class

Definition at line 90 of file hwad.h.

Constructor & Destructor Documentation

◆ HWAdmux()

HWAdmux::HWAdmux ( AvrDevice *  _core,
int  _pins 
)
inline

Definition at line 100 of file hwad.h.

◆ ~HWAdmux()

virtual HWAdmux::~HWAdmux ( )
inlinevirtual

Definition at line 106 of file hwad.h.

Member Function Documentation

◆ GetValue()

virtual float HWAdmux::GetValue ( int  select,
float  vcc 
)
pure virtual

Implemented in HWAdmuxM2560, HWAdmuxT25, HWAdmuxM16, HWAdmuxM8, and HWAdmux6.

Referenced by HWAd::CpuCycle().

◆ GetValueAComp()

virtual float HWAdmux::GetValueAComp ( int  select,
float  vcc 
)
inlinevirtual

Reimplemented in HWAdmuxM8.

Definition at line 110 of file hwad.h.

Referenced by HWAd::GetADMuxValue().

◆ IsDifferenceChannel()

virtual bool HWAdmux::IsDifferenceChannel ( int  select)
inlinevirtual

Reimplemented in HWAdmuxT25, and HWAdmuxM16.

Definition at line 111 of file hwad.h.

Referenced by HWAd::CpuCycle().

◆ PinStateHasChanged()

void HWAdmux::PinStateHasChanged ( Pin *  p)
virtual

Implements HasPinNotifyFunction.

Definition at line 104 of file hwad.cpp.

◆ RegisterNotifyClient()

void HWAdmux::RegisterNotifyClient ( AnalogSignalChange *  client)
inline

Definition at line 114 of file hwad.h.

Referenced by HWAd::HWAd().

◆ SetMuxSelect()

void HWAdmux::SetMuxSelect ( int  select)

Definition at line 93 of file hwad.cpp.

Referenced by HWAd::SetAdmux().

◆ UnregisterNotifyClient()

void HWAdmux::UnregisterNotifyClient ( void  )
inline

Definition at line 115 of file hwad.h.

Referenced by HWAd::~HWAd().

Member Data Documentation

◆ ad

◆ core

AvrDevice* HWAdmux::core
protected

◆ muxSelect

int HWAdmux::muxSelect
protected

Definition at line 95 of file hwad.h.

◆ notifyClient

AnalogSignalChange* HWAdmux::notifyClient
protected

Definition at line 94 of file hwad.h.

◆ numPins

int HWAdmux::numPins
protected

Multiplexer channel, can't be used for ADC sampling because of buffering on conversion start!

Definition at line 96 of file hwad.h.

Referenced by HWAdmux6::GetValue(), and HWAdmuxM8::GetValue().


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