simulavr
1.1.0
|
#include <hwad.h>
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) |
![]() | |
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) |
![]() | |
virtual | ~HasPinNotifyFunction () |
Additional Inherited Members | |
![]() | |
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 |
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().
|
virtual |
Implements HWAdmux.
Definition at line 354 of file hwad.cpp.
References HWAdmux::ad, avr_warning, HWAdmux::core, Pin::GetAnalogValue(), Pin::GetRawAnalog(), and AvrDevice::v_bandgap.