simulavr  1.1.0
Lcd Class Reference

#include <lcd.h>

Inheritance diagram for Lcd:

Public Member Functions

virtual int Step (bool &trueHwStep, SystemClockOffset *timeToNextStepIn_ns=0)
 Return nonzero if a breakpoint was hit. More...
 
 Lcd (UserInterface *ui, const char *name, const char *baseWindow)
 
virtual ~Lcd ()
 
PinGetPin (const char *name)
 
- Public Member Functions inherited from SimulationMember
virtual ~SimulationMember ()
 

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::Lcd ( UserInterface ui,
const char *  name,
const char *  baseWindow 
)

◆ ~Lcd()

virtual Lcd::~Lcd ( )
virtual

Member Function Documentation

◆ GetPin()

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

◆ LcdWriteCommand()

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

◆ LcdWriteData()

void Lcd::LcdWriteData ( unsigned char  data)
protected

◆ SendCursorPosition()

void Lcd::SendCursorPosition ( )
protected

◆ Step()

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

Return nonzero if a breakpoint was hit.

Implements SimulationMember.

Member Data Documentation

◆ allPins

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

Definition at line 57 of file lcd.h.

◆ CmdExecTime_ns

unsigned int Lcd::CmdExecTime_ns
protected

Definition at line 67 of file lcd.h.

◆ command

unsigned char Lcd::command
protected

Definition at line 83 of file lcd.h.

◆ commandData

Pin Lcd::commandData
protected

Definition at line 65 of file lcd.h.

◆ d0

Pin Lcd::d0
protected

Definition at line 58 of file lcd.h.

◆ d1

Pin Lcd::d1
protected

Definition at line 59 of file lcd.h.

◆ d2

Pin Lcd::d2
protected

Definition at line 60 of file lcd.h.

◆ d3

Pin Lcd::d3
protected

Definition at line 61 of file lcd.h.

◆ debugOut

std::ofstream Lcd::debugOut
protected

Definition at line 78 of file lcd.h.

◆ enable

Pin Lcd::enable
protected

Definition at line 63 of file lcd.h.

◆ enableOld

int Lcd::enableOld
protected

Definition at line 84 of file lcd.h.

◆ lastPortValue

unsigned char Lcd::lastPortValue
protected

Definition at line 81 of file lcd.h.

◆ merke_x

int Lcd::merke_x
protected

Definition at line 72 of file lcd.h.

◆ merke_y

int Lcd::merke_y
protected

Definition at line 73 of file lcd.h.

◆ myd3

char Lcd::myd3
protected

Definition at line 69 of file lcd.h.

◆ myPortValue

unsigned char Lcd::myPortValue
protected

Definition at line 56 of file lcd.h.

◆ myState

t_myState Lcd::myState
protected

Definition at line 68 of file lcd.h.

◆ name

std::string Lcd::name
protected

Definition at line 55 of file lcd.h.

◆ readLow

int Lcd::readLow
protected

Definition at line 82 of file lcd.h.

◆ readWrite

Pin Lcd::readWrite
protected

Definition at line 64 of file lcd.h.

◆ ui

UserInterface* Lcd::ui
protected

Definition at line 54 of file lcd.h.


The documentation for this class was generated from the following file: