simulavr  1.1.0
HWAdmuxM16 Class Reference

#include <hwad.h>

Inheritance diagram for HWAdmuxM16:

Public Member Functions

 HWAdmuxM16 (AvrDevice *c, Pin *_ad0, Pin *_ad1, Pin *_ad2, Pin *_ad3, Pin *_ad4, Pin *_ad5, Pin *_ad6, Pin *_ad7)
 
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
Pinad [16]
 
AnalogSignalChangenotifyClient
 
int muxSelect
 
int numPins
 Multiplexer channel, can't be used for ADC sampling because of buffering on conversion start! More...
 
AvrDevicecore
 

Detailed Description

Definition at line 152 of file hwad.h.

Constructor & Destructor Documentation

◆ HWAdmuxM16()

HWAdmuxM16::HWAdmuxM16 ( AvrDevice c,
Pin _ad0,
Pin _ad1,
Pin _ad2,
Pin _ad3,
Pin _ad4,
Pin _ad5,
Pin _ad6,
Pin _ad7 
)

Definition at line 208 of file hwad.cpp.

Member Function Documentation

◆ GetValue()

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

Reimplemented from HWAdmuxM8.

Definition at line 218 of file hwad.cpp.

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

◆ IsDifferenceChannel()

bool HWAdmuxM16::IsDifferenceChannel ( int  select)
virtual

Reimplemented from HWAdmux.

Definition at line 254 of file hwad.cpp.


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