|
simulavr
1.1.0
|
#include <hwad.h>
Public Member Functions | |
| HWAdmuxM8 (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 float | GetValueAComp (int select, float vcc) |
Public Member Functions inherited from HWAdmux | |
| HWAdmux (AvrDevice *_core, int _pins) | |
| virtual | ~HWAdmux () |
| 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 Member Functions | |
| HWAdmuxM8 (AvrDevice *c, Pin *_ad0, Pin *_ad1, Pin *_ad2, Pin *_ad3) | |
Additional Inherited Members | |
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 |
Definition at line 171 of file hwad.cpp.
References HWAdmux::ad, and Pin::RegisterCallback().
| HWAdmuxM8::HWAdmuxM8 | ( | AvrDevice * | c, |
| Pin * | _ad0, | ||
| Pin * | _ad1, | ||
| Pin * | _ad2, | ||
| Pin * | _ad3, | ||
| Pin * | _ad4, | ||
| Pin * | _ad5, | ||
| Pin * | _ad6, | ||
| Pin * | _ad7 | ||
| ) |
Definition at line 144 of file hwad.cpp.
References HWAdmux::ad, and Pin::RegisterCallback().
|
virtual |
Implements HWAdmux.
Reimplemented in HWAdmuxT25, and HWAdmuxM16.
Definition at line 190 of file hwad.cpp.
References HWAdmux::ad, avr_warning, HWAdmux::core, Pin::GetAnalogValue(), Pin::GetRawAnalog(), HWAdmux::numPins, and AvrDevice::v_bandgap.
|
virtual |
Reimplemented from HWAdmux.
Definition at line 203 of file hwad.cpp.
References HWAdmux::ad, and Pin::GetAnalogValue().