#include <ui.h>


Public Member Functions | |
| void | AddExternalType (const char *name, ExternalType *p) |
| void | AddExternalType (const std::string &name, ExternalType *p) |
| UserInterface (int port, bool withUpdateControl=true) | |
| ~UserInterface () | |
| void | SendUiNewState (const std::string &s, const char &c) |
| int | Step (bool &, SystemClockOffset *nextStepIn_ns=0) |
| Return nonzero if a breakpoint was hit. | |
| void | SwitchUpdateOnOff (bool PollFreq) |
| void | Write (const std::string &s) |
Protected Member Functions | |
| void | SetNewValueFromUi (const std::string &) |
Protected Attributes | |
| std::map< std::string, ExternalType * > | extMembers |
| bool | updateOn |
| SystemClockOffset | pollFreq |
| std::string | dummy |
| std::map< std::string, char > | LastState |
| int | waitOnAckFromTclRequest |
| int | waitOnAckFromTclDone |
Interfacing between "UI" application on TCP port and ExternalType objects which interface with device peripherals.
Definition at line 41 of file ui.h.
| UserInterface::UserInterface | ( | int | port, | |
| bool | withUpdateControl = true | |||
| ) |
Definition at line 37 of file ui.cpp.
References AddExternalType(), waitOnAckFromTclDone, waitOnAckFromTclRequest, and Write().

| void UserInterface::AddExternalType | ( | const std::string & | name, | |
| ExternalType * | p | |||
| ) | [inline] |
Definition at line 58 of file ui.h.
References AddExternalType().

| void UserInterface::AddExternalType | ( | const char * | name, | |
| ExternalType * | p | |||
| ) | [inline] |
Definition at line 54 of file ui.h.
References extMembers.
Referenced by AddExternalType(), ExtAnalogPin::ExtAnalogPin(), ExtPin::ExtPin(), Keyboard::Keyboard(), SerialRx::SerialRx(), SerialTx::SerialTx(), and UserInterface().

| void UserInterface::SendUiNewState | ( | const std::string & | s, | |
| const char & | c | |||
| ) |
Definition at line 129 of file ui.cpp.
References LastState, and Write().
Referenced by ExtAnalogPin::SetInState(), and ExtPin::SetInState().


| void UserInterface::SetNewValueFromUi | ( | const std::string & | value | ) | [protected, virtual] |
Implements ExternalType.
Definition at line 144 of file ui.cpp.
References updateOn.
Referenced by Step().

| int UserInterface::Step | ( | bool & | trueHwStep, | |
| SystemClockOffset * | timeToNextStepIn_ns = 0 | |||
| ) | [virtual] |
Return nonzero if a breakpoint was hit.
Implements SimulationMember.
Definition at line 56 of file ui.cpp.
References avr_error, dummy, extMembers, Socket::Poll(), pollFreq, Socket::Read(), SetNewValueFromUi(), updateOn, waitOnAckFromTclDone, and waitOnAckFromTclRequest.

| void UserInterface::SwitchUpdateOnOff | ( | bool | PollFreq | ) |
| void UserInterface::Write | ( | const std::string & | s | ) |
Reimplemented from Socket.
Definition at line 153 of file ui.cpp.
References updateOn, and waitOnAckFromTclRequest.
Referenced by SerialRx::CharReceived(), ExtAnalogPin::ExtAnalogPin(), ExtPin::ExtPin(), Keyboard::Keyboard(), Lcd::Lcd(), Lcd::LcdWriteData(), Scope::Scope(), Lcd::SendCursorPosition(), SendUiNewState(), SerialRx::SerialRx(), SerialTx::SerialTx(), Scope::SetInStateForChannel(), and UserInterface().

std::string UserInterface::dummy [protected] |
std::map<std::string, ExternalType*> UserInterface::extMembers [protected] |
Definition at line 43 of file ui.h.
Referenced by AddExternalType(), and Step().
std::map<std::string, char> UserInterface::LastState [protected] |
Definition at line 47 of file ui.h.
Referenced by SendUiNewState().
SystemClockOffset UserInterface::pollFreq [protected] |
bool UserInterface::updateOn [protected] |
Definition at line 44 of file ui.h.
Referenced by SetNewValueFromUi(), Step(), SwitchUpdateOnOff(), and Write().
int UserInterface::waitOnAckFromTclDone [protected] |
Definition at line 49 of file ui.h.
Referenced by Step(), and UserInterface().
int UserInterface::waitOnAckFromTclRequest [protected] |
Definition at line 48 of file ui.h.
Referenced by Step(), UserInterface(), and Write().
1.6.3