#include <lcd.h>
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 () |
Pin * | GetPin (const char *name) |
Protected Member Functions | |
void | LcdWriteData (unsigned char data) |
unsigned int | LcdWriteCommand (unsigned char command) |
void | SendCursorPosition () |
Protected Attributes | |
UserInterface * | ui |
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 |
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.
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().
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().
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().
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().
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().
std::map<std::string, Pin*> Lcd::allPins [protected] |
unsigned int Lcd::CmdExecTime_ns [protected] |
unsigned char Lcd::command [protected] |
Pin Lcd::commandData [protected] |
std::ofstream Lcd::debugOut [protected] |
Pin Lcd::enable [protected] |
int Lcd::enableOld [protected] |
unsigned char Lcd::lastPortValue [protected] |
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().
unsigned char Lcd::myPortValue [protected] |
t_myState Lcd::myState [protected] |
std::string Lcd::name [protected] |
Definition at line 55 of file lcd.h.
Referenced by Lcd(), LcdWriteData(), and SendCursorPosition().
int Lcd::readLow [protected] |
Pin Lcd::readWrite [protected] |
UserInterface* Lcd::ui [protected] |
Definition at line 54 of file lcd.h.
Referenced by Lcd(), LcdWriteData(), and SendCursorPosition().