Version

typedef struct {
BYTE alarms ; /* 0 = no alarm
* 1 = Far end loss of frame ("yellow")
* 2 = Alarm Indication Signal ("blue")
* 4 = Loss of frame (T1 "red") E1: Loss of
* sync, excessive BER
* 8 = (E1) Far end loss of MF sync
* 0x10 = (E1) TS16AIS
*/
BYTE sync /* 0 = in sync
* 1 = loss of signal
* 2 = no (frame) sync
* 4 = no multiframe sync
* 8 = No CRC Multiframe Sync
*/
BYTE alarmsent /* 0 = no alarms
* 1 = sending loss of frame
* 2 = sending AIS
* 4 = sending loss of multiframe (E1 CAS)
* 8 = sending TS16AIS (E1)
*/
BYTE spare
} DTM_TRUNK_STATE ;

typedef struct
{
DWORD size ; /* size of this structure */
DWORD board ; /* board number */
DWORD trunk ; /* trunk number */
DTM_TRUNK_STATE state ; /* alarms and sync status */
DWORD starttime; /* when counts started (time_t)*/
DWORD slips; /* slips accumulator */
DWORD lineerrors; /* line code violations (BPVs) */
DWORD frameerrors; /* frame bit errors+ CRC errors*/
DWORD es; /* errored seconds accumulator */
DWORD ses; /* severely errored seconds */
DWORD uas; /* unavailable seconds */
} DTM_TRUNK_STATUS ;

typedef struct
{
DWORD size; /* size of this structure */
DWORD maxevents; /* max number of events per second */
DWORD reportmask; /* controls when to send events */
} DTM_START_PARMS ;
Version