|
Yate
|
Abstract digital signalling interface (hardware access) More...
#include <yatesig.h>
Public Types | |
| enum | Operation { Specific = 0 , EnableTx = 0x01 , EnableRx = 0x02 , Enable = 0x03 , DisableTx = 0x04 , DisableRx = 0x08 , Disable = 0x0c , FlushTx = 0x10 , FlushRx = 0x20 , Flush = 0x30 , QueryTx = 0x40 , QueryRx = 0x80 , Query = 0xc0 } |
| enum | Notification { LinkUp = 0 , LinkDown , HardwareError , TxClockError , RxClockError , AlignError , CksumError , TxOversize , RxOversize , TxOverflow , RxOverflow , TxUnderrun , RxUnderrun } |
| enum | PacketType { Unknown = 0 , SS7Fisu , SS7Lssu , SS7Msu , Q921 } |
Public Member Functions | |
| SignallingInterface () | |
| virtual | ~SignallingInterface () |
| virtual void | attach (SignallingReceiver *receiver) |
| SignallingReceiver * | receiver () const |
| virtual bool | control (Operation oper, NamedList *params=0) |
Public Member Functions inherited from SignallingComponent | |
| virtual | ~SignallingComponent () |
| virtual const String & | toString () const |
| virtual bool | initialize (const NamedList *config) |
| virtual bool | control (NamedList ¶ms) |
| virtual NamedList * | controlCreate (const char *oper=0) |
| virtual bool | controlExecute (NamedList *params) |
| virtual void | engine (SignallingEngine *eng) |
| SignallingEngine * | engine () const |
| int | debugLevel (int level) |
| const String & | componentType () const |
Public Member Functions inherited from RefObject | |
| RefObject () | |
| virtual | ~RefObject () |
| virtual void * | getObject (const String &name) const |
| virtual bool | alive () const |
| bool | ref () |
| bool | deref () |
| int | refcount () const |
| virtual void | destruct () |
Public Member Functions inherited from GenObject | |
| GenObject () | |
| virtual | ~GenObject () |
| virtual const String & | traceId () const |
| NamedCounter * | getObjCounter () const |
| NamedCounter * | setObjCounter (NamedCounter *counter) |
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 const TokenDict | s_notifName [] |
Protected Member Functions | |
| virtual bool | transmitPacket (const DataBlock &packet, bool repeat, PacketType type)=0 |
| bool | receivedPacket (const DataBlock &packet) |
| bool | notify (Notification event) |
Protected Member Functions inherited from SignallingComponent | |
| SignallingComponent (const char *name=0, const NamedList *params=0, const char *type="unknown") | |
| virtual void | destroyed () |
| void | insert (SignallingComponent *component) |
| virtual void | detach () |
| virtual void | timerTick (const Time &when) |
| void | setName (const char *name) |
| void | setCompType (const char *type) |
| unsigned long | tickSleep (unsigned long usec=1000000) const |
Protected Member Functions inherited from RefObject | |
| virtual void | zeroRefs () |
| bool | resurrect () |
Protected Member Functions inherited from DebugEnabler | |
| void | debugName (const char *name) |
Friends | |
| class | SignallingReceiver |
Additional Inherited Members | |
Static Public Member Functions inherited from SignallingComponent | |
| static bool | resolveConfig (const String &cmpName, NamedList ¶ms, const NamedList *config) |
Static Public Member Functions inherited from RefObject | |
| static bool | alive (const RefObject *obj) |
| static bool | efficientIncDec () |
Static Public Member Functions inherited from GenObject | |
| static void * | getObject (const String &name, const GenObject *obj) |
| static bool | getObjCounting () |
| static void | setObjCounting (bool enable) |
| static NamedCounter * | getObjCounter (const String &name, bool create=true) |
| static ObjList & | getObjCounters () |
Abstract digital signalling interface (hardware access)
An interface to an abstraction of a Layer 1 (hardware HDLC) interface
| enum Notification |
Interface generated notifications
| enum Operation |
Interface control operations
| enum PacketType |
Packet types
|
inline |
Constructor
|
virtual |
Destructor, stops and detaches the interface
|
virtual |
Attach a receiver to the interface. Detach from the old one if valid
| receiver | Pointer to receiver to attach |
References receiver().
Execute a control operation. Operations can enable, disable or flush the transmitter, receiver or both. The status (enabled/disabled) can be queried and also interface-specific operations can be executed.
| oper | Operation to execute |
| params | Optional parameters for the operation |
|
protected |
Generate a notification event to the attached receiver
| event | Notification event to be reported |
|
protected |
Push a valid received Signalling Packet up the protocol stack. The starting and ending flags and any CRC are not part of the data.
|
inline |
Retrieve the signalling receiver attached to this interface
Referenced by attach().
|
protectedpure virtual |
Transmit a packet over the hardware interface
| packet | Packet data to send |
| repeat | Continuously send a copy of the packet while no other data is available for transmission |
| type | Type of the packet to send |
|
static |
Keeps the names associated with the notifications