simulavr  1.1.0
HWAdmuxT25 Class Reference

#include <hwad.h>

Inheritance diagram for HWAdmuxT25:

Public Member Functions

 HWAdmuxT25 (AvrDevice *c, Pin *_ad0, Pin *_ad1, Pin *_ad2, Pin *_ad3)
 
virtual float GetValue (int select, float vcc)
 
virtual bool IsDifferenceChannel (int select)
 
- Public Member Functions inherited from HWAdmuxM8
 HWAdmuxM8 (AvrDevice *c, Pin *_ad0, Pin *_ad1, Pin *_ad2, Pin *_ad3, Pin *_ad4, Pin *_ad5, Pin *_ad6, Pin *_ad7)
 
virtual float GetValueAComp (int select, float vcc)
 
- Public Member Functions inherited from HWAdmux
 HWAdmux (AvrDevice *_core, int _pins)
 
virtual ~HWAdmux ()
 
void SetMuxSelect (int select)
 
void PinStateHasChanged (Pin *)
 
void RegisterNotifyClient (AnalogSignalChange *client)
 
void UnregisterNotifyClient (void)
 
- Public Member Functions inherited from HasPinNotifyFunction
virtual ~HasPinNotifyFunction ()
 

Additional Inherited Members

- Protected Member Functions inherited from HWAdmuxM8
 HWAdmuxM8 (AvrDevice *c, Pin *_ad0, Pin *_ad1, Pin *_ad2, Pin *_ad3)
 
- Protected Attributes inherited from HWAdmux
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

Definition at line 168 of file hwad.h.

Constructor & Destructor Documentation

◆ HWAdmuxT25()

HWAdmuxT25::HWAdmuxT25 ( AvrDevice *  c,
Pin *  _ad0,
Pin *  _ad1,
Pin *  _ad2,
Pin *  _ad3 
)

Definition at line 259 of file hwad.cpp.

Member Function Documentation

◆ GetValue()

float HWAdmuxT25::GetValue ( int  select,
float  vcc 
)
virtual

Reimplemented from HWAdmuxM8.

Definition at line 265 of file hwad.cpp.

References HWAdmux::ad, avr_warning, HWAdmux::core, Pin::GetAnalogValue(), Pin::GetRawAnalog(), and AvrDevice::v_bandgap.

◆ IsDifferenceChannel()

bool HWAdmuxT25::IsDifferenceChannel ( int  select)
virtual

Reimplemented from HWAdmux.

Definition at line 298 of file hwad.cpp.


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