PinAtPort Class Reference

#include <pinatport.h>

Collaboration diagram for PinAtPort:
Collaboration graph
[legend]

List of all members.

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 ()
PinGetPin ()
 operator bool ()
int GetAnalog () const

Protected Member Functions

void SetVal (unsigned char *adr, bool val)

Protected Attributes

HWPortport
unsigned char pinNo

Detailed Description

Definition at line 32 of file pinatport.h.


Constructor & Destructor Documentation

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.

References pinNo, and port.


Member Function Documentation

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().

Here is the call graph for this function:

Here is the caller graph for this function:

bool PinAtPort::GetDdr ( void   ) 

Definition at line 98 of file pinatport.cpp.

References HWPort::ddr, pinNo, and port.

Referenced by HWSpi::CpuCycle().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the call graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void PinAtPort::SetAlternatePort ( bool  val  ) 
void PinAtPort::SetDdr ( bool  val  ) 

Definition at line 57 of file pinatport.cpp.

References HWPort::CalcOutputs(), HWPort::ddr, port, and SetVal().

Here is the call graph for this function:

void PinAtPort::SetPort ( bool  val  ) 

Definition at line 46 of file pinatport.cpp.

References HWPort::CalcOutputs(), HWPort::port, port, and SetVal().

Here is the call graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the caller graph for this function:


Member Data Documentation

unsigned char PinAtPort::pinNo [protected]
HWPort* PinAtPort::port [protected]

The documentation for this class was generated from the following files:
Generated on Sun Feb 12 16:52:57 2012 for Simulavr by  doxygen 1.6.3