SerialRx Class Reference

#include <serialrx.h>

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

List of all members.

Public Member Functions

 SerialRx (UserInterface *_ui, const char *_name, const char *baseWindow)
virtual ~SerialRx ()
virtual void SetNewValueFromUi (const std::string &)

Protected Member Functions

virtual void CharReceived (unsigned char c)

Protected Attributes

UserInterfaceui
std::string name

Detailed Description

Reads bits from device pins, reconstructs UART bytes and sends them to UI.

Definition at line 85 of file serialrx.h.


Constructor & Destructor Documentation

SerialRx::SerialRx ( UserInterface _ui,
const char *  _name,
const char *  baseWindow 
)

Definition at line 153 of file serialrx.cpp.

References UserInterface::AddExternalType(), name, Pin::RegisterCallback(), SerialRxBasic::Reset(), SerialRxBasic::rx, ui, and UserInterface::Write().

Here is the call graph for this function:

virtual SerialRx::~SerialRx (  )  [inline, virtual]

Definition at line 93 of file serialrx.h.


Member Function Documentation

void SerialRx::CharReceived ( unsigned char  c  )  [protected, virtual]

Implements SerialRxBasic.

Definition at line 171 of file serialrx.cpp.

References name, SerialRxBasic::sendInHex, ui, and UserInterface::Write().

Here is the call graph for this function:

void SerialRx::SetNewValueFromUi ( const std::string &   )  [virtual]

Implements ExternalType.

Definition at line 193 of file serialrx.cpp.


Member Data Documentation

std::string SerialRx::name [protected]

Definition at line 88 of file serialrx.h.

Referenced by CharReceived(), and SerialRx().

Definition at line 87 of file serialrx.h.

Referenced by CharReceived(), and SerialRx().


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