wanpipe_api_cmd Struct Reference

Wanpipe API Device Command Structure used with WANPIPE_IOCTL_API_CMD. More...

#include <wanpipe_api_iface.h>

Collaboration diagram for wanpipe_api_cmd:

Collaboration graph
[legend]

List of all members.

Public Attributes

unsigned int cmd
unsigned int result
unsigned char span
unsigned char chan
union {
   struct {
      unsigned int   hw_tdm_coding
      unsigned int   hw_mtu_mru
      unsigned int   usr_period
      unsigned int   tdm_codec
      unsigned int   power_level
      unsigned int   rx_disable
      unsigned int   tx_disable
      unsigned int   usr_mtu_mru
      unsigned int   ec_tap
      unsigned int   rbs_poll
      unsigned int   rbs_rx_bits
      unsigned int   rbs_tx_bits
      unsigned int   hdlc
      unsigned int   idle_flag
      unsigned int   fe_alarms
      unsigned char   fe_status
      unsigned int   hw_dtmf
      unsigned int   open_cnt
      unsigned int   rx_queue_sz
      unsigned int   tx_queue_sz
      unsigned int   rxflashtime
      unsigned char   hw_ec
      unsigned char   hw_fax
      unsigned char   loop
      unsigned char   reserved [WANPIPE_API_CMD_RESERVED_SZ]
      wanpipe_chan_stats_t   stats
   } 
   wp_api_event_t   event
   wan_driver_version_t   version
   wan_iovec_list_t   iovec_list
   struct {
      unsigned char   data [WANPIPE_API_CMD_SZ_UNION]
      unsigned int   data_len
   } 
}; 


Detailed Description

Wanpipe API Device Command Structure used with WANPIPE_IOCTL_API_CMD.

Wanpipe API Commands structure used to execute WANPIPE_IOCTL_API_CMD iocl commands All commands are defined in: enum wanpipe_api_cmds enum wanpipe_api_events

Definition at line 694 of file wanpipe_api_iface.h.


Member Data Documentation

unsigned int wanpipe_api_cmd::cmd

Command defined in enum wanpipe_api_cmds

Definition at line 696 of file wanpipe_api_iface.h.

Referenced by sangoma_cmd_exec(), sangoma_disable_bri_bchan_loopback(), sangoma_enable_bri_bchan_loopback(), sangoma_flush_bufs(), sangoma_flush_event_bufs(), sangoma_flush_rx_bufs(), sangoma_flush_stats(), sangoma_flush_tx_bufs(), sangoma_get_cpld_version(), sangoma_get_driver_version(), sangoma_get_fe_status(), sangoma_get_firmware_version(), sangoma_get_full_cfg(), sangoma_get_hw_coding(), sangoma_get_link_status(), sangoma_get_open_cnt(), sangoma_get_rx_queue_sz(), sangoma_get_stats(), sangoma_get_tx_queue_sz(), sangoma_open_api_span_chan(), sangoma_read_event(), sangoma_set_fe_status(), sangoma_set_rm_rx_gain(), sangoma_set_rm_rxflashtime(), sangoma_set_rm_tx_gain(), sangoma_set_rx_queue_sz(), sangoma_set_tx_queue_sz(), sangoma_tdm_disable_dtmf_events(), sangoma_tdm_disable_fax_events(), sangoma_tdm_disable_hwec(), sangoma_tdm_disable_loop(), sangoma_tdm_disable_rbs_events(), sangoma_tdm_disable_ring_detect_events(), sangoma_tdm_disable_ring_events(), sangoma_tdm_disable_ring_trip_detect_events(), sangoma_tdm_disable_rm_dtmf_events(), sangoma_tdm_disable_rxhook_events(), sangoma_tdm_disable_tone_events(), sangoma_tdm_enable_dtmf_events(), sangoma_tdm_enable_fax_events(), sangoma_tdm_enable_hwec(), sangoma_tdm_enable_loop(), sangoma_tdm_enable_rbs_events(), sangoma_tdm_enable_ring_detect_events(), sangoma_tdm_enable_ring_events(), sangoma_tdm_enable_ring_trip_detect_events(), sangoma_tdm_enable_rm_dtmf_events(), sangoma_tdm_enable_rxhook_events(), sangoma_tdm_enable_tone_events(), sangoma_tdm_get_codec(), sangoma_tdm_get_fe_alarms(), sangoma_tdm_get_hw_dtmf(), sangoma_tdm_get_hw_ec(), sangoma_tdm_get_hw_fax(), sangoma_tdm_get_hwec_chan_status(), sangoma_tdm_get_hwec_persist_status(), sangoma_tdm_get_power_level(), sangoma_tdm_get_usr_mtu_mru(), sangoma_tdm_get_usr_period(), sangoma_tdm_read_rbs(), sangoma_tdm_set_buffer_multiplier(), sangoma_tdm_set_codec(), sangoma_tdm_set_power_level(), sangoma_tdm_set_usr_period(), sangoma_tdm_txsig_kewl(), sangoma_tdm_txsig_offhook(), sangoma_tdm_txsig_onhook(), sangoma_tdm_txsig_start(), and sangoma_tdm_write_rbs().

Result defined in: enum SANG_STATUS or SANG_STATUS_t

Definition at line 697 of file wanpipe_api_iface.h.

unsigned char wanpipe_api_cmd::span

span value, integer 1 to 255

Definition at line 698 of file wanpipe_api_iface.h.

unsigned char wanpipe_api_cmd::chan

chan value, integer 1 to 32

Definition at line 699 of file wanpipe_api_iface.h.

Referenced by sangoma_fe_reg_read(), and sangoma_fe_reg_write().

Set/Get HW TDM coding: uLaw muLaw

Definition at line 703 of file wanpipe_api_iface.h.

Referenced by sangoma_get_full_cfg(), and sangoma_get_hw_coding().

Set/Get HW TDM MTU/MRU

Definition at line 704 of file wanpipe_api_iface.h.

Referenced by sangoma_get_full_cfg().

Set/Get User Period in ms

Definition at line 705 of file wanpipe_api_iface.h.

Referenced by sangoma_get_full_cfg(), sangoma_tdm_get_usr_period(), and sangoma_tdm_set_usr_period().

Set/Get TDM Codec: SLinear

Definition at line 706 of file wanpipe_api_iface.h.

Referenced by sangoma_get_full_cfg(), sangoma_tdm_get_codec(), and sangoma_tdm_set_codec().

Set/Get Power level treshold

Definition at line 707 of file wanpipe_api_iface.h.

Referenced by sangoma_get_full_cfg(), sangoma_tdm_get_power_level(), and sangoma_tdm_set_power_level().

Enable/Disable Rx

Definition at line 708 of file wanpipe_api_iface.h.

Referenced by sangoma_get_full_cfg().

Enable/Disable Tx

Definition at line 709 of file wanpipe_api_iface.h.

Referenced by sangoma_get_full_cfg().

Set/Get User TDM MTU/MRU

Definition at line 710 of file wanpipe_api_iface.h.

Referenced by sangoma_get_full_cfg(), and sangoma_tdm_get_usr_mtu_mru().

Echo Cancellation Tap

Definition at line 711 of file wanpipe_api_iface.h.

Enable/Disable RBS Polling

Definition at line 712 of file wanpipe_api_iface.h.

Referenced by sangoma_tdm_enable_rbs_events().

Rx RBS Bits

Definition at line 713 of file wanpipe_api_iface.h.

Referenced by sangoma_tdm_read_rbs().

Tx RBS Bits

Definition at line 714 of file wanpipe_api_iface.h.

Referenced by sangoma_tdm_read_rbs(), and sangoma_tdm_write_rbs().

unsigned int wanpipe_api_cmd::hdlc

HDLC based device

Definition at line 715 of file wanpipe_api_iface.h.

IDLE flag to Tx

Definition at line 716 of file wanpipe_api_iface.h.

Referenced by sangoma_get_full_cfg().

FE Alarms detected

Definition at line 717 of file wanpipe_api_iface.h.

Referenced by sangoma_get_full_cfg(), and sangoma_tdm_get_fe_alarms().

FE status - Connected or Disconnected

Definition at line 718 of file wanpipe_api_iface.h.

Referenced by sangoma_get_fe_status(), sangoma_get_link_status(), and sangoma_set_fe_status().

HW DTMF enabled

Definition at line 719 of file wanpipe_api_iface.h.

Referenced by sangoma_tdm_get_hw_dtmf().

Open cnt

Definition at line 720 of file wanpipe_api_iface.h.

Referenced by sangoma_get_open_cnt(), and sangoma_open_api_span_chan().

Rx queue size

Definition at line 721 of file wanpipe_api_iface.h.

Referenced by sangoma_get_rx_queue_sz(), and sangoma_set_rx_queue_sz().

Tx queue size

Definition at line 722 of file wanpipe_api_iface.h.

Referenced by sangoma_get_tx_queue_sz(), and sangoma_set_tx_queue_sz().

Set Rxflash time for Wink-Flash

Definition at line 724 of file wanpipe_api_iface.h.

Referenced by sangoma_set_rm_rxflashtime().

Wanpipe API Statistics

Definition at line 730 of file wanpipe_api_iface.h.

Referenced by sangoma_get_full_cfg(), and sangoma_get_stats().


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