Lcd Class Reference

#include <lcd.h>

Inheritance diagram for Lcd:
Inheritance graph
[legend]
Collaboration diagram for Lcd:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual int Step (bool &trueHwStep, SystemClockOffset *timeToNextStepIn_ns=0)
 Return nonzero if a breakpoint was hit.
 Lcd (UserInterface *ui, const char *name, const char *baseWindow)
virtual ~Lcd ()
PinGetPin (const char *name)

Protected Member Functions

void LcdWriteData (unsigned char data)
unsigned int LcdWriteCommand (unsigned char command)
void SendCursorPosition ()

Protected Attributes

UserInterfaceui
std::string name
unsigned char myPortValue
std::map< std::string, Pin * > allPins
Pin d0
Pin d1
Pin d2
Pin d3
Pin enable
Pin readWrite
Pin commandData
unsigned int CmdExecTime_ns
t_myState myState
char myd3
int merke_x
int merke_y
std::ofstream debugOut
unsigned char lastPortValue
int readLow
unsigned char command
int enableOld

Detailed Description

Simulates a HD44780 character-LCD controller with a 4 bit interface. This HD-controller is boring slow :-) like some original.

Definition at line 52 of file lcd.h.


Constructor & Destructor Documentation

Lcd::Lcd ( UserInterface ui,
const char *  name,
const char *  baseWindow 
)

Definition at line 295 of file lcd.cpp.

References allPins, CmdExecTime_ns, command, commandData, d0, d1, d2, d3, enable, enableOld, lastPortValue, merke_x, merke_y, myd3, myPortValue, myState, name, POWER_ON, Power_onTimes, readLow, readWrite, ui, and UserInterface::Write().

Here is the call graph for this function:

Lcd::~Lcd (  )  [virtual]

Definition at line 335 of file lcd.cpp.


Member Function Documentation

Pin * Lcd::GetPin ( const char *  name  ) 

Definition at line 336 of file lcd.cpp.

References allPins.

unsigned int Lcd::LcdWriteCommand ( unsigned char  command  )  [protected]

Definition at line 61 of file lcd.cpp.

References LcdWriteData(), merke_x, merke_y, Power_onTimes, and SendCursorPosition().

Referenced by Step().

Here is the call graph for this function:

Here is the caller graph for this function:

void Lcd::LcdWriteData ( unsigned char  data  )  [protected]

Definition at line 45 of file lcd.cpp.

References merke_x, merke_y, name, SendCursorPosition(), ui, and UserInterface::Write().

Referenced by LcdWriteCommand(), and Step().

Here is the call graph for this function:

Here is the caller graph for this function:

void Lcd::SendCursorPosition (  )  [protected]

Definition at line 55 of file lcd.cpp.

References merke_x, merke_y, name, ui, and UserInterface::Write().

Referenced by LcdWriteCommand(), and LcdWriteData().

Here is the call graph for this function:

Here is the caller graph for this function:

int Lcd::Step ( bool &  trueHwStep,
SystemClockOffset timeToNextStepIn_ns = 0 
) [virtual]

Return nonzero if a breakpoint was hit.

Implements SimulationMember.

Definition at line 179 of file lcd.cpp.

References CMDEXEC, CmdExecTime_ns, command, COMMANDDATA, d3, ENABLE, enableOld, IDLE, lastPortValue, LcdWriteCommand(), LcdWriteData(), myd3, myPortValue, myState, POWER_ON, Power_onTimes, PWR_AFTER_FS1, PWR_AFTER_FS2, PWR_ON_FINISH, readLow, READWRITE, and setInitNext().

Here is the call graph for this function:


Member Data Documentation

std::map<std::string, Pin*> Lcd::allPins [protected]

Definition at line 57 of file lcd.h.

Referenced by GetPin(), and Lcd().

unsigned int Lcd::CmdExecTime_ns [protected]

Definition at line 67 of file lcd.h.

Referenced by Lcd(), and Step().

unsigned char Lcd::command [protected]

Definition at line 83 of file lcd.h.

Referenced by Lcd(), and Step().

Pin Lcd::commandData [protected]

Definition at line 65 of file lcd.h.

Referenced by Lcd().

Pin Lcd::d0 [protected]

Definition at line 58 of file lcd.h.

Referenced by Lcd().

Pin Lcd::d1 [protected]

Definition at line 59 of file lcd.h.

Referenced by Lcd().

Pin Lcd::d2 [protected]

Definition at line 60 of file lcd.h.

Referenced by Lcd().

Pin Lcd::d3 [protected]

Definition at line 61 of file lcd.h.

Referenced by Lcd(), and Step().

std::ofstream Lcd::debugOut [protected]

Definition at line 78 of file lcd.h.

Pin Lcd::enable [protected]

Definition at line 63 of file lcd.h.

Referenced by Lcd().

int Lcd::enableOld [protected]

Definition at line 84 of file lcd.h.

Referenced by Lcd(), and Step().

unsigned char Lcd::lastPortValue [protected]

Definition at line 81 of file lcd.h.

Referenced by Lcd(), and Step().

int Lcd::merke_x [protected]

Definition at line 72 of file lcd.h.

Referenced by Lcd(), LcdWriteCommand(), LcdWriteData(), and SendCursorPosition().

int Lcd::merke_y [protected]

Definition at line 73 of file lcd.h.

Referenced by Lcd(), LcdWriteCommand(), LcdWriteData(), and SendCursorPosition().

char Lcd::myd3 [protected]

Definition at line 69 of file lcd.h.

Referenced by Lcd(), and Step().

unsigned char Lcd::myPortValue [protected]

Definition at line 56 of file lcd.h.

Referenced by Lcd(), and Step().

t_myState Lcd::myState [protected]

Definition at line 68 of file lcd.h.

Referenced by Lcd(), and Step().

std::string Lcd::name [protected]

Definition at line 55 of file lcd.h.

Referenced by Lcd(), LcdWriteData(), and SendCursorPosition().

int Lcd::readLow [protected]

Definition at line 82 of file lcd.h.

Referenced by Lcd(), and Step().

Pin Lcd::readWrite [protected]

Definition at line 64 of file lcd.h.

Referenced by Lcd().

UserInterface* Lcd::ui [protected]

Definition at line 54 of file lcd.h.

Referenced by Lcd(), LcdWriteData(), and SendCursorPosition().


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