|
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) |
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) |
Friends | |
| class | SignallingReceiver |
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
| SignallingInterface | ( | ) | [inline] |
Constructor
| virtual ~SignallingInterface | ( | ) | [virtual] |
Destructor, stops and detaches the interface
| virtual void attach | ( | SignallingReceiver * | receiver | ) | [virtual] |
Attach a receiver to the interface. Detach from the old one if valid
| receiver | Pointer to receiver to attach |
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 |
| bool notify | ( | Notification | event | ) | [protected] |
Generate a notification event to the attached receiver
| event | Notification event to be reported |
| bool receivedPacket | ( | const DataBlock & | packet | ) | [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.
| SignallingReceiver* receiver | ( | ) | const [inline] |
Retrieve the signalling receiver attached to this interface
| virtual bool transmitPacket | ( | const DataBlock & | packet, |
| bool | repeat, | ||
| PacketType | type | ||
| ) | [protected, pure 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 |
const TokenDict s_notifName[] [static] |
Keeps the names associated with the notifications
1.7.6.1