|
Yate
|
An analog signal processor as defined by ETSI. More...
#include <yatemodem.h>
Public Types | |
| enum | State { StateError , WaitFSKStart , WaitMark , WaitMsg , WaitMsgLen , WaitParam , WaitParamLen , WaitData , WaitChksum } |
| enum | MsgType { MsgCallSetup = 0x80 , MsgMWI = 0x82 , MsgCharge = 0x86 , MsgSMS = 0x89 } |
| enum | MsgParam { DateTime = 0x01 , CallerId = 0x02 , CalledId = 0x03 , CallerIdReason = 0x04 , CallerName = 0x07 , CallerNameReason = 0x08 , VisualIndicator = 0x0B , MessageId = 0x0D , LastMsgCLI = 0x0E , CompDateTime = 0x0F , CompCallerId = 0x10 , CallType = 0x11 , FirstCalledId = 0x12 , MWICount = 0x13 , FwdCallType = 0x15 , CallerType = 0x16 , RedirNumber = 0x1A , Charge = 0x20 , AdditionalCharge = 0x21 , Duration = 0x23 , NetworkID = 0x30 , CarrierId = 0x31 , SelectFunction = 0x40 , Display = 0x50 , ServiceInfo = 0x55 , Extension = 0xE0 , Unknown } |
Public Types inherited from UART | |
| enum | State { Idle , BitStart , BitData , BitParity , BitStop , UARTError } |
| enum | Error { EFraming , EParity , EChksum , EInvalidData , EUnknown , EStopped , ENone } |
Public Member Functions | |
| ETSIModem (const NamedList ¶ms, const char *name=0) | |
| virtual | ~ETSIModem () |
| virtual void | reset () |
| virtual bool | recvByte (unsigned char data) |
Public Member Functions inherited from UART | |
| 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 | 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_msg [] |
| static TokenDict | s_msgParams [] |
Static Public Attributes inherited from UART | |
| static TokenDict | s_errors [] |
Protected Member Functions | |
| virtual int | idleRecvByte (unsigned char data) |
| virtual bool | recvParams (MsgType msg, const NamedList ¶ms) |
| virtual bool | decode (MsgType msg, const DataBlock &buffer) |
| virtual bool | createMsg (NamedList ¶ms, DataBlock &data) |
Protected Member Functions inherited from UART | |
| bool | error (Error e) |
Protected Member Functions inherited from DebugEnabler | |
| void | debugName (const char *name) |
An analog signal processor as defined by ETSI.
This class implements a modem/UART pair used to demodulate/decode analog signal as defined in ETSI EN 300 659-1, ETSI EN 300 659-2, ETSI EN 300 659-3
| enum MsgParam |
Message parameters defined in ETSI EN 659-3 5.3
| enum MsgType |
Message type defined in ETSI EN 659-3 5.2
| enum State |
The state of this ETSI decoder
Constructor
| params | Decoder parameters |
| name | The name of this debug enabler |
|
virtual |
Destructor
Create a buffer containing the byte representation of a message to be sent
| params | The list containing message parameters. The name of the list must be a valid (known) message |
| data | Destination message data buffer |
Reimplemented from UART.
Process (decode) a valid received buffer. Call recvParams() after decoding the message
| msg | The message type as enumeration |
| buffer | The accumulated data bytes |
|
protectedvirtual |
Process an accumulated byte in Idle state
| data | The byte to process |
Reimplemented from UART.
|
virtual |
Process a list of received message parameters
| msg | The message type as enumeration |
| params | Message parameters |
|
virtual |
Reset this decoder (modem and UART)
|
static |
Keeps the text associated with message type enumeration
|
static |
Keeps the text associated with parameter type enumeration