wp_api_hdr Struct Reference

Wanpipe API Header Structure. More...

#include <wanpipe_api_hdr.h>

List of all members.

Public Attributes

u_int8_t operation_status
u_int16_t data_length
u_int32_t time_stamp_sec
u_int32_t time_stamp_usec
union {
   struct {
      u_int16_t   crc
      u_int8_t   max_rx_queue_length
      u_int8_t   current_number_of_frames_in_rx_queue
      u_int32_t   errors
   }   rx_h
   struct {
      u_int8_t   max_tx_queue_length
      u_int8_t   current_number_of_frames_in_tx_queue
      u_int32_t   tx_idle_packets
      u_int32_t   errors
   }   tx_h
   struct {
      u_int8_t   status
   }   serial
   struct {
      u_int8_t   exception
      u_int8_t   pf
   }   lapb
   struct {
      u_int8_t   state
      u_int8_t   address
      u_int16_t   exception
   }   xdlc
   struct {
      u_int8_t   channel
      u_int8_t   direction
   }   bitstrm
   struct {
      u_int8_t   repeat
      u_int8_t   len
      u_int8_t   data [8]
   }   rpt
   struct {
      u_int8_t   type
      u_int8_t   force_tx
      u_int8_t   data [8]
   }   ss7_hw
   u_int8_t   reserved [WAN_MAX_HDR_SZ_UNION]
}; 


Detailed Description

Wanpipe API Header Structure.

Definition at line 165 of file wanpipe_api_hdr.h.


Member Data Documentation

Status defined in enum SANG_STATUS_T

Definition at line 167 of file wanpipe_api_hdr.h.

Referenced by sangoma_readmsg(), sangoma_writemsg(), and tx_file().

Length of tx/rx data packet

Definition at line 168 of file wanpipe_api_hdr.h.

Referenced by handle_data(), PrintRxData(), sangoma_readmsg(), sangoma_writemsg(), and tx_file().

timestamp in seconds

Definition at line 169 of file wanpipe_api_hdr.h.

Referenced by PrintRxData().

timestamp in miliseconds

Definition at line 170 of file wanpipe_api_hdr.h.

Referenced by PrintRxData().

u_int16_t wp_api_hdr::crc

bit map of possible errors: CRC/ABORT/FRAME/DMA

Definition at line 177 of file wanpipe_api_hdr.h.

max data queue configured

Definition at line 178 of file wanpipe_api_hdr.h.

current buffers in device rx queue

Definition at line 179 of file wanpipe_api_hdr.h.

u_int32_t wp_api_hdr::errors

number of rx errors since driver start

number of tx errors since driver start

Definition at line 180 of file wanpipe_api_hdr.h.

struct { ... } wp_api_hdr::rx_h

The rx_h and tx_h are to be used with all AFT Hardware

max data queue configured

Definition at line 184 of file wanpipe_api_hdr.h.

current buffers in device tx queue

Definition at line 185 of file wanpipe_api_hdr.h.

number of tx idle packes transmitted

Definition at line 186 of file wanpipe_api_hdr.h.

struct { ... } wp_api_hdr::serial

Defines below are Deprecated and are for backward compability


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