#include <hwad.h>
Public Member Functions | |
HWAdmux (AvrDevice *c, Pin *_ad0, Pin *_ad1, Pin *_ad2, Pin *_ad3, Pin *_ad4, Pin *_ad5, Pin *_ad6, Pin *_ad7) | |
unsigned char | GetAdmux () |
void | SetAdmux (unsigned char) |
void | Reset () |
int | GetMuxOutput () |
Get analog voltage (0..INT_MAX=Vcc) of the selected pin. | |
Public Attributes | |
IOReg< HWAdmux > | admux_reg |
Protected Attributes | |
unsigned char | admux |
Pin * | ad [8] |
AvrDevice * | core |
ADC multiplexer. This version does not handle differential inputs.
Definition at line 36 of file hwad.h.
unsigned char HWAdmux::GetAdmux | ( | ) |
Definition at line 75 of file hwad.cpp.
References admux.
Referenced by HWAd::CpuCycle().
int HWAdmux::GetMuxOutput | ( | ) |
Get analog voltage (0..INT_MAX=Vcc) of the selected pin.
Definition at line 79 of file hwad.cpp.
References ad, admux, Pin::GetAnalog(), MUX0, MUX1, and MUX2.
Referenced by HWAd::CpuCycle().
void HWAdmux::Reset | ( | void | ) | [virtual] |
void HWAdmux::SetAdmux | ( | unsigned char | val | ) |
Pin* HWAdmux::ad[8] [protected] |
Definition at line 39 of file hwad.h.
Referenced by GetMuxOutput(), and HWAdmux().
unsigned char HWAdmux::admux [protected] |
Definition at line 38 of file hwad.h.
Referenced by GetAdmux(), GetMuxOutput(), Reset(), and SetAdmux().
Definition at line 60 of file hwad.h.
Referenced by AvrDevice_at90canbase::AvrDevice_at90canbase(), AvrDevice_at90s4433::AvrDevice_at90s4433(), AvrDevice_atmega128::AvrDevice_atmega128(), AvrDevice_atmega1284Abase::AvrDevice_atmega1284Abase(), AvrDevice_atmega16_32::AvrDevice_atmega16_32(), AvrDevice_atmega668base::AvrDevice_atmega668base(), and AvrDevice_atmega8::AvrDevice_atmega8().
AvrDevice* HWAdmux::core [protected] |