simulavr  1.1.0
HWAdmuxM2560 Class Reference

#include <hwad.h>

Inheritance diagram for HWAdmuxM2560:

Public Member Functions

 HWAdmuxM2560 (AvrDevice *c, Pin *_ad0, Pin *_ad1, Pin *_ad2, Pin *_ad3, Pin *_ad4, Pin *_ad5, Pin *_ad6, Pin *_ad7, Pin *_ad8, Pin *_ad9, Pin *_ad10, Pin *_ad11, Pin *_ad12, Pin *_ad13, Pin *_ad14, Pin *_ad15)
 
virtual float GetValue (int select, float vcc)
 
- Public Member Functions inherited from HWAdmux
 HWAdmux (AvrDevice *_core, int _pins)
 
virtual ~HWAdmux ()
 
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 ()
 

Additional Inherited Members

- 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 180 of file hwad.h.

Constructor & Destructor Documentation

◆ HWAdmuxM2560()

HWAdmuxM2560::HWAdmuxM2560 ( AvrDevice c,
Pin _ad0,
Pin _ad1,
Pin _ad2,
Pin _ad3,
Pin _ad4,
Pin _ad5,
Pin _ad6,
Pin _ad7,
Pin _ad8,
Pin _ad9,
Pin _ad10,
Pin _ad11,
Pin _ad12,
Pin _ad13,
Pin _ad14,
Pin _ad15 
)

Definition at line 303 of file hwad.cpp.

References HWAdmux::ad, and Pin::RegisterCallback().

Member Function Documentation

◆ GetValue()

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

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