|
Yate
|
An UART receiver/transmitter. More...
#include <yatemodem.h>
Public Types | |
| enum | State { Idle , BitStart , BitData , BitParity , BitStop , UARTError } |
| enum | Error { EFraming , EParity , EChksum , EInvalidData , EUnknown , EStopped , ENone } |
Public Member Functions | |
| UART (State state, const NamedList ¶ms, const char *name=0) | |
| virtual | ~UART () |
| State | state () const |
| Error | error () const |
| int | modemType () const |
| const BitAccumulator & | accumulator () const |
| virtual void | reset (State newState=Idle) |
| bool | demodulate (const DataBlock &data) |
| bool | modulate (DataBlock &dest, NamedList ¶ms) |
| void | modulate (DataBlock &dest, const DataBlock &src) |
| bool | recvBit (bool value) |
| virtual bool | recvByte (unsigned char data) |
| virtual bool | fskStarted () |
Public Member Functions inherited from DebugEnabler | |
| DebugEnabler (int level=TelEngine::debugLevel(), bool enabled=true) | |
| int | debugLevel () const |
| int | debugLevel (int level) |
| bool | debugEnabled () const |
| void | debugEnabled (bool enable) |
| const char * | debugName () const |
| bool | debugAt (int level) const |
| bool | debugChained () const |
| void | debugChain (const DebugEnabler *chain=0) |
| void | debugCopy (const DebugEnabler *original=0) |
Static Public Attributes | |
| static TokenDict | s_errors [] |
Protected Member Functions | |
| virtual int | idleRecvByte (unsigned char data) |
| virtual bool | createMsg (NamedList ¶ms, DataBlock &data) |
| bool | error (Error e) |
Protected Member Functions inherited from DebugEnabler | |
| void | debugName (const char *name) |
An UART receiver/transmitter.
Accumulate data bits received from a modem
|
inlinevirtual |
Destructor
|
inline |
Create a buffer containing the byte representation of a message to be sent
| params | The list containing message parameters |
| data | Destination message data buffer |
Reimplemented in ETSIModem.
Referenced by modulate().
|
inline |
Send data to the enclosed modem to be demodulated
| data | The data to process |
|
inline |
|
inlinevirtual |
Notification from modem that the FSK start was detected
|
inlineprotectedvirtual |
Process an accumulated byte in Idle state
| data | The byte to process |
Reimplemented in ETSIModem.
|
inline |
Create a buffer containing the modulated representation of another one
| dest | Destination buffer |
| src | Source buffer |
Create a buffer containing the modulated representation of a list of parameters
| dest | Destination buffer |
| params | The list containing the values to be modulated |
References createMsg().
| bool recvBit | ( | bool | value | ) |
Push a bit of data into this UART. Once a data byte is accumulated, push it back to itself
| value | The bit to be processed |
|
inlinevirtual |
|
virtual |
Reset this UART
| newState | The state to reset to |
|
inline |