|
libsangoma
1
|
Wanpipe API Header Structure. More...
#include <wanpipe_api_hdr.h>
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 channel | |
| u_int8_t status | |
| } aft_legacy_rbs | |
| 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] | |
| }; | |
Wanpipe API Header Structure.
Definition at line 165 of file wanpipe_api_hdr.h.
| u_int8_t wp_api_hdr::operation_status |
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().
| u_int16_t wp_api_hdr::data_length |
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().
| u_int32_t wp_api_hdr::time_stamp_sec |
| u_int32_t wp_api_hdr::time_stamp_usec |
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.
| u_int8_t wp_api_hdr::max_rx_queue_length |
max data queue configured
Definition at line 178 of file wanpipe_api_hdr.h.
| u_int8_t wp_api_hdr::current_number_of_frames_in_rx_queue |
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
| u_int8_t wp_api_hdr::max_tx_queue_length |
max data queue configured
Definition at line 184 of file wanpipe_api_hdr.h.
| u_int8_t wp_api_hdr::current_number_of_frames_in_tx_queue |
current buffers in device tx queue
Definition at line 185 of file wanpipe_api_hdr.h.
| u_int32_t wp_api_hdr::tx_idle_packets |
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
1.8.5