#include <pinatport.h>

Public Member Functions | |
| PinAtPort () | |
| PinAtPort (HWPort *p, unsigned char pn) | |
| void | SetPort (bool val) |
| void | SetDdr (bool val) |
| void | SetAlternateDdr (bool val) |
| void | SetUseAlternateDdr (bool val) |
| void | SetAlternatePort (bool val) |
| void | SetUseAlternatePort (bool val) |
| void | SetUseAlternatePortIfDdrSet (bool val) |
| bool | GetPort () |
| bool | GetDdr () |
| bool | GetAlternateDdr () |
| bool | GetUseAlterateDdr () |
| bool | GetAlternatePort () |
| bool | GetUseAlternatePort () |
| bool | GetUseAlternatePortIfDdrSet () |
| Pin & | GetPin () |
| operator bool () | |
| int | GetAnalog () const |
Protected Member Functions | |
| void | SetVal (unsigned char *adr, bool val) |
Protected Attributes | |
| HWPort * | port |
| unsigned char | pinNo |
Definition at line 32 of file pinatport.h.
| PinAtPort::PinAtPort | ( | ) |
Definition at line 32 of file pinatport.cpp.
| PinAtPort::PinAtPort | ( | HWPort * | p, | |
| unsigned char | pn | |||
| ) |
Definition at line 36 of file pinatport.cpp.
| bool PinAtPort::GetAlternateDdr | ( | ) |
Definition at line 102 of file pinatport.cpp.
References HWPort::alternateDdr, pinNo, and port.
| bool PinAtPort::GetAlternatePort | ( | ) |
Definition at line 110 of file pinatport.cpp.
References HWPort::alternatePort, pinNo, and port.
| int PinAtPort::GetAnalog | ( | void | ) | const |
Definition at line 52 of file pinatport.cpp.
References Pin::GetAnalog(), HWPort::p, pinNo, and port.
Referenced by HWAcomp::PinStateHasChanged().


| bool PinAtPort::GetDdr | ( | void | ) |
Definition at line 98 of file pinatport.cpp.
References HWPort::ddr, pinNo, and port.
Referenced by HWSpi::CpuCycle().

| Pin & PinAtPort::GetPin | ( | void | ) |
Definition at line 42 of file pinatport.cpp.
References HWPort::GetPin(), pinNo, and port.
Referenced by HWPrescalerAsync::CpuCycle(), HWAcomp::HWAcomp(), HWPrescalerAsync::HWPrescalerAsync(), and HWSpi::SetSPCR().


| bool PinAtPort::GetPort | ( | void | ) |
Definition at line 94 of file pinatport.cpp.
References pinNo, HWPort::port, and port.
| bool PinAtPort::GetUseAlterateDdr | ( | ) |
Definition at line 106 of file pinatport.cpp.
References pinNo, port, and HWPort::useAlternateDdr.
| bool PinAtPort::GetUseAlternatePort | ( | ) |
Definition at line 114 of file pinatport.cpp.
References pinNo, port, and HWPort::useAlternatePort.
| bool PinAtPort::GetUseAlternatePortIfDdrSet | ( | ) |
Definition at line 118 of file pinatport.cpp.
References pinNo, port, and HWPort::useAlternatePortIfDdrSet.
| PinAtPort::operator bool | ( | ) |
Definition at line 122 of file pinatport.cpp.
References HWPort::GetPin(), pinNo, and port.

| void PinAtPort::SetAlternateDdr | ( | bool | val | ) |
Definition at line 63 of file pinatport.cpp.
References HWPort::alternateDdr, HWPort::CalcOutputs(), port, and SetVal().
Referenced by HWSpi::SetSPCR(), and HWUart::SetUcr().


| void PinAtPort::SetAlternatePort | ( | bool | val | ) |
Definition at line 75 of file pinatport.cpp.
References HWPort::alternatePort, HWPort::CalcOutputs(), IOReg< P >::hardwareChange(), port, HWPort::port_reg, and SetVal().
Referenced by HWSpi::CpuCycle(), HWUart::CpuCycleTx(), BasicTimerUnit::SetCompareOutput(), BasicTimerUnit::SetCompareOutputMode(), BasicTimerUnit::SetPWMCompareOutput(), HWSpi::SetSPCR(), HWUart::SetUcr(), and HWSpi::txbit().


| void PinAtPort::SetDdr | ( | bool | val | ) |
Definition at line 57 of file pinatport.cpp.
References HWPort::CalcOutputs(), HWPort::ddr, port, and SetVal().

| void PinAtPort::SetPort | ( | bool | val | ) |
Definition at line 46 of file pinatport.cpp.
References HWPort::CalcOutputs(), HWPort::port, port, and SetVal().

| void PinAtPort::SetUseAlternateDdr | ( | bool | val | ) |
Definition at line 69 of file pinatport.cpp.
References HWPort::CalcOutputs(), port, SetVal(), and HWPort::useAlternateDdr.
Referenced by HWSpi::SetSPCR(), and HWUart::SetUcr().


| void PinAtPort::SetUseAlternatePort | ( | bool | val | ) |
Definition at line 82 of file pinatport.cpp.
References HWPort::CalcOutputs(), port, SetVal(), and HWPort::useAlternatePort.
Referenced by HWUart::SetUcr().


| void PinAtPort::SetUseAlternatePortIfDdrSet | ( | bool | val | ) |
Definition at line 88 of file pinatport.cpp.
References HWPort::CalcOutputs(), port, SetVal(), and HWPort::useAlternatePortIfDdrSet.
Referenced by BasicTimerUnit::SetCompareOutputMode(), and HWSpi::SetSPCR().


| void PinAtPort::SetVal | ( | unsigned char * | adr, | |
| bool | val | |||
| ) | [protected] |
Definition at line 127 of file pinatport.cpp.
References pinNo.
Referenced by SetAlternateDdr(), SetAlternatePort(), SetDdr(), SetPort(), SetUseAlternateDdr(), SetUseAlternatePort(), and SetUseAlternatePortIfDdrSet().

unsigned char PinAtPort::pinNo [protected] |
Definition at line 35 of file pinatport.h.
Referenced by GetAlternateDdr(), GetAlternatePort(), GetAnalog(), GetDdr(), GetPin(), GetPort(), GetUseAlterateDdr(), GetUseAlternatePort(), GetUseAlternatePortIfDdrSet(), operator bool(), PinAtPort(), and SetVal().
HWPort* PinAtPort::port [protected] |
Definition at line 34 of file pinatport.h.
Referenced by GetAlternateDdr(), GetAlternatePort(), GetAnalog(), GetDdr(), GetPin(), GetPort(), GetUseAlterateDdr(), GetUseAlternatePort(), GetUseAlternatePortIfDdrSet(), operator bool(), PinAtPort(), SetAlternateDdr(), SetAlternatePort(), SetDdr(), SetPort(), SetUseAlternateDdr(), SetUseAlternatePort(), and SetUseAlternatePortIfDdrSet().
1.6.3