#include <serialtx.h>


Public Member Functions | |
| SerialTxBuffered () | |
| void | Reset () |
| virtual | ~SerialTxBuffered () |
| void | SetHexInput (bool newValue) |
| virtual int | Step (bool &trueHwStep, SystemClockOffset *timeToNextStepIn_ns=0) |
| Return nonzero if a breakpoint was hit. | |
| virtual void | Send (unsigned char data) |
| Add byte from UI to be sent to device's UART. | |
| virtual void | SetBaudRate (SystemClockOffset baud) |
| virtual Pin * | GetPin (const char *name) |
Protected Types | |
| enum | T_TxState { TX_DISABLED, TX_SEND_STARTBIT, TX_SEND_DATABIT, TX_SEND_STOPBIT, TX_STOPPING } |
Protected Attributes | |
| Pin | tx |
| std::map< std::string, Pin * > | allPins |
| unsigned long long | baudrate |
| T_TxState | txState |
| std::vector< unsigned char > | inputBuffer |
| unsigned int | data |
| unsigned int | bitCnt |
| unsigned int | maxBitCnt |
| bool | receiveInHex |
Definition at line 32 of file serialtx.h.
enum SerialTxBuffered::T_TxState [protected] |
Definition at line 39 of file serialtx.h.
| SerialTxBuffered::SerialTxBuffered | ( | ) |
Definition at line 33 of file serialtx.cpp.
References allPins, Reset(), and tx.

| virtual SerialTxBuffered::~SerialTxBuffered | ( | ) | [inline, virtual] |
Definition at line 59 of file serialtx.h.
| Pin * SerialTxBuffered::GetPin | ( | const char * | name | ) | [virtual] |
Definition at line 48 of file serialtx.cpp.
References allPins.
| void SerialTxBuffered::Reset | ( | void | ) |
Definition at line 39 of file serialtx.cpp.
References baudrate, maxBitCnt, receiveInHex, tx, TX_DISABLED, and txState.
Referenced by SerialTx::SerialTx(), and SerialTxBuffered().

| void SerialTxBuffered::Send | ( | unsigned char | data | ) | [virtual] |
Add byte from UI to be sent to device's UART.
Definition at line 106 of file serialtx.cpp.
References SystemClock::Add(), inputBuffer, SystemClock::Instance(), TX_DISABLED, TX_SEND_STARTBIT, and txState.
Referenced by SerialTx::SetNewValueFromUi().


| void SerialTxBuffered::SetBaudRate | ( | SystemClockOffset | baud | ) | [virtual] |
Definition at line 118 of file serialtx.cpp.
References baudrate.
| void SerialTxBuffered::SetHexInput | ( | bool | newValue | ) |
Definition at line 122 of file serialtx.cpp.
References receiveInHex.
| int SerialTxBuffered::Step | ( | bool & | trueHwStep, | |
| SystemClockOffset * | timeToNextStepIn_ns = 0 | |||
| ) | [virtual] |
Return nonzero if a breakpoint was hit.
Implements SimulationMember.
Definition at line 53 of file serialtx.cpp.
References avr_error, baudrate, bitCnt, data, inputBuffer, maxBitCnt, tx, TX_DISABLED, TX_SEND_DATABIT, TX_SEND_STARTBIT, TX_SEND_STOPBIT, TX_STOPPING, and txState.
std::map< std::string, Pin *> SerialTxBuffered::allPins [protected] |
Definition at line 36 of file serialtx.h.
Referenced by GetPin(), and SerialTxBuffered().
unsigned long long SerialTxBuffered::baudrate [protected] |
Definition at line 37 of file serialtx.h.
Referenced by Reset(), SetBaudRate(), and Step().
unsigned int SerialTxBuffered::bitCnt [protected] |
Definition at line 51 of file serialtx.h.
Referenced by Step().
unsigned int SerialTxBuffered::data [protected] |
Definition at line 50 of file serialtx.h.
Referenced by Step().
std::vector<unsigned char> SerialTxBuffered::inputBuffer [protected] |
Definition at line 49 of file serialtx.h.
unsigned int SerialTxBuffered::maxBitCnt [protected] |
Definition at line 52 of file serialtx.h.
bool SerialTxBuffered::receiveInHex [protected] |
Definition at line 54 of file serialtx.h.
Referenced by Reset(), SetHexInput(), and SerialTx::SetNewValueFromUi().
Pin SerialTxBuffered::tx [protected] |
Definition at line 34 of file serialtx.h.
Referenced by Reset(), SerialTxBuffered(), and Step().
T_TxState SerialTxBuffered::txState [protected] |
Definition at line 47 of file serialtx.h.
1.6.3