wp_api_event Struct Reference

Wanpipe API Event Structure. More...

#include <wanpipe_api_hdr.h>

List of all members.

Public Attributes

u_int8_t event_type
u_int8_t mode
u_int8_t channel
u_int8_t span
u_int32_t time_stamp_sec
u_int32_t time_stamp_usec
union {
   struct {
      u_int32_t   alarm
   }   te1_alarm
   struct {
      u_int8_t   rbs_bits
   }   te1_rbs
   struct {
      u_int8_t   state
      u_int8_t   sig
   }   rm_hook
   struct {
      u_int8_t   state
   }   rm_ring
   struct {
      u_int16_t   type
   }   rm_tone
   struct {
      u_int8_t   digit
      u_int8_t   port
      u_int8_t   type
   }   dtmf
   struct {
      u_int16_t   polarity
      u_int16_t   ohttimer
      u_int16_t   polarity_reverse
   }   rm_common
   struct {
      int32_t   gain
   }   rm_gain
   struct {
      u_int16_t   status
   }   linkstatus
   struct {
      u_int32_t   status
   }   serial
   unsigned char   reserved [WAN_MAX_EVENT_SZ_UNION]
}; 


Detailed Description

Wanpipe API Event Structure.

Definition at line 60 of file wanpipe_api_hdr.h.


Member Data Documentation

Event Type defined in enum wanpipe_tdm_api_events

Definition at line 62 of file wanpipe_api_hdr.h.

Mode (Enable/Disable), WP_TDMAPI_EVENT_DISABLE, WP_TDMAPI_EVENT_ENABLE

Definition at line 63 of file wanpipe_api_hdr.h.

TDM channel num, integer from 1 to 32

Definition at line 64 of file wanpipe_api_hdr.h.

Referenced by sangoma_disable_bri_bchan_loopback(), and sangoma_enable_bri_bchan_loopback().

TDM span num, integer from 1 to 255

Definition at line 65 of file wanpipe_api_hdr.h.

timestamp in sec

Definition at line 66 of file wanpipe_api_hdr.h.

timestamp in microseconds

Definition at line 67 of file wanpipe_api_hdr.h.

contains bit map of T1/E1 alarms

Definition at line 70 of file wanpipe_api_hdr.h.

contains bit map of T1/E1 rbs bits

Definition at line 73 of file wanpipe_api_hdr.h.

contains rx hook state: WP_TDMAPI_EVENT_RXHOOK_OFF, WP_TDMAPI_EVENT_RXHOOK_ON

Ring state, WP_TDMAPI_EVENT_RING_PRESENT, WP_TDMAPI_EVENT_RING_STOP

Definition at line 76 of file wanpipe_api_hdr.h.

Definition at line 77 of file wanpipe_api_hdr.h.

u_int16_t wp_api_event::type

Ring tone type, enum WP_TDMAPI_EVENT_TONE_xxx

Definition at line 83 of file wanpipe_api_hdr.h.

DTMF: digit

Definition at line 86 of file wanpipe_api_hdr.h.

DTMF: SOUT/ROUT

Definition at line 87 of file wanpipe_api_hdr.h.

DTMF: PRESET/STOP

Definition at line 88 of file wanpipe_api_hdr.h.

Definition at line 91 of file wanpipe_api_hdr.h.

Definition at line 92 of file wanpipe_api_hdr.h.

Definition at line 93 of file wanpipe_api_hdr.h.

Link Status (connected/disconnnected)

Definition at line 99 of file wanpipe_api_hdr.h.

Serial Modem Status: DCD/CTS

Definition at line 102 of file wanpipe_api_hdr.h.

unsigned char wp_api_event::reserved[WAN_MAX_EVENT_SZ_UNION]

Padding up to WAN_MAX_EVENT_SZ

Definition at line 104 of file wanpipe_api_hdr.h.


The documentation for this struct was generated from the following file:

Generated on Wed Jun 1 17:30:48 2011 for libsangoma by  doxygen 1.5.6