DTM_TRUNK_STATE

DTM_TRUNK_STATE is a 4-byte data structure that describes the current alarm and synchronization state of a trunk. This structure is included in DTM_TRUNK_STATUS and in the status event. The structure is defined as follows:

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 ;