simulavr  1.1.0
Keyboard Class Reference

#include <keyboard.h>

Inheritance diagram for Keyboard:

Public Member Functions

void SetNewValueFromUi (const std::string &)
 
virtual int Step (bool &trueHwStep, SystemClockOffset *timeToNextStepIn_ns=0)
 Return nonzero if a breakpoint was hit. More...
 
 Keyboard (UserInterface *, const char *name, const char *baseWindow)
 
void SetClockFreq (SystemClockOffset f)
 
virtual ~Keyboard ()
 
- Public Member Functions inherited from SimulationMember
virtual ~SimulationMember ()
 
- Public Member Functions inherited from ExternalType
virtual ~ExternalType ()
 

Protected Member Functions

void InsertMakeCodeToBuffer (int)
 
void InsertBreakCodeToBuffer (int)
 
int InsertScanCodeToBuffer (unsigned char scan)
 

Protected Attributes

unsigned char myPortValue
 
Pin clk
 
Pin data
 
unsigned int bitCnt
 
SystemClockOffset myClockFreq
 
unsigned int buffer [KBD_BUFFER_SIZE]
 
unsigned int bufferWriteIndex
 
unsigned int bufferReadIndex
 
unsigned char actualChar
 
unsigned char lastPortValue
 

Detailed Description

A PS2-style keyboard sending scan-codes obtained from UI to pins on device (I guess).

Definition at line 41 of file keyboard.h.

Constructor & Destructor Documentation

◆ Keyboard()

Keyboard::Keyboard ( UserInterface ,
const char *  name,
const char *  baseWindow 
)

◆ ~Keyboard()

virtual Keyboard::~Keyboard ( )
virtual

Member Function Documentation

◆ InsertBreakCodeToBuffer()

void Keyboard::InsertBreakCodeToBuffer ( int  )
protected

◆ InsertMakeCodeToBuffer()

void Keyboard::InsertMakeCodeToBuffer ( int  )
protected

◆ InsertScanCodeToBuffer()

int Keyboard::InsertScanCodeToBuffer ( unsigned char  scan)
protected

◆ SetClockFreq()

void Keyboard::SetClockFreq ( SystemClockOffset  f)

◆ SetNewValueFromUi()

void Keyboard::SetNewValueFromUi ( const std::string &  )
virtual

Implements ExternalType.

◆ Step()

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

Return nonzero if a breakpoint was hit.

Implements SimulationMember.

Member Data Documentation

◆ actualChar

unsigned char Keyboard::actualChar
protected

Definition at line 60 of file keyboard.h.

◆ bitCnt

unsigned int Keyboard::bitCnt
protected

Definition at line 47 of file keyboard.h.

◆ buffer

unsigned int Keyboard::buffer[KBD_BUFFER_SIZE]
protected

Definition at line 52 of file keyboard.h.

◆ bufferReadIndex

unsigned int Keyboard::bufferReadIndex
protected

Definition at line 54 of file keyboard.h.

◆ bufferWriteIndex

unsigned int Keyboard::bufferWriteIndex
protected

Definition at line 53 of file keyboard.h.

◆ clk

Pin Keyboard::clk
protected

Definition at line 44 of file keyboard.h.

◆ data

Pin Keyboard::data
protected

Definition at line 45 of file keyboard.h.

◆ lastPortValue

unsigned char Keyboard::lastPortValue
protected

Definition at line 61 of file keyboard.h.

◆ myClockFreq

SystemClockOffset Keyboard::myClockFreq
protected

Definition at line 50 of file keyboard.h.

◆ myPortValue

unsigned char Keyboard::myPortValue
protected

Definition at line 43 of file keyboard.h.


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