wanpipe_api_cmd Struct Reference

Wanpipe API Device Configuration 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 char   open_cnt
      wanpipe_chan_stats_t   stats
   } 
   wp_api_event_t   event
   struct {
      unsigned char   data [WANPIPE_API_CMD_SZ_UNION]
      unsigned int   data_len
   } 
}; 

Detailed Description

Wanpipe API Device Configuration 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 448 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 450 of file wanpipe_api_iface.h.

Referenced by sangoma_cmd_exec(), sangoma_flush_bufs(), sangoma_get_full_cfg(), sangoma_get_hw_coding(), sangoma_read_event(), sangoma_tdm_disable_hwec(), sangoma_tdm_disable_rbs_events(), sangoma_tdm_enable_hwec(), sangoma_tdm_enable_rbs_events(), sangoma_tdm_get_codec(), sangoma_tdm_get_power_level(), sangoma_tdm_get_usr_mtu_mru(), sangoma_tdm_get_usr_period(), sangoma_tdm_set_codec(), sangoma_tdm_set_power_level(), sangoma_tdm_set_usr_period(), and sangoma_tdm_write_rbs().

unsigned int wanpipe_api_cmd::result

Result defined in: enum SANG_STATUS or SANG_STATUS_t

Definition at line 451 of file wanpipe_api_iface.h.

unsigned char wanpipe_api_cmd::span

span value, integer 1 to 255

Definition at line 452 of file wanpipe_api_iface.h.

unsigned char wanpipe_api_cmd::chan

chan value, integer 1 to 32

Definition at line 453 of file wanpipe_api_iface.h.

unsigned int wanpipe_api_cmd::hw_tdm_coding

Set/Get HW TDM coding: uLaw muLaw

Definition at line 457 of file wanpipe_api_iface.h.

Referenced by sangoma_get_full_cfg(), and sangoma_get_hw_coding().

unsigned int wanpipe_api_cmd::hw_mtu_mru

Set/Get HW TDM MTU/MRU

Definition at line 458 of file wanpipe_api_iface.h.

Referenced by sangoma_get_full_cfg().

unsigned int wanpipe_api_cmd::usr_period

Set/Get User Period in ms

Definition at line 459 of file wanpipe_api_iface.h.

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

unsigned int wanpipe_api_cmd::tdm_codec

Set/Get TDM Codec: SLinear

Definition at line 460 of file wanpipe_api_iface.h.

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

unsigned int wanpipe_api_cmd::power_level

Set/Get Power level treshold

Definition at line 461 of file wanpipe_api_iface.h.

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

unsigned int wanpipe_api_cmd::rx_disable

Enable/Disable Rx

Definition at line 462 of file wanpipe_api_iface.h.

Referenced by sangoma_get_full_cfg().

unsigned int wanpipe_api_cmd::tx_disable

Enable/Disable Tx

Definition at line 463 of file wanpipe_api_iface.h.

Referenced by sangoma_get_full_cfg().

unsigned int wanpipe_api_cmd::usr_mtu_mru

Set/Get User TDM MTU/MRU

Definition at line 464 of file wanpipe_api_iface.h.

Referenced by sangoma_get_full_cfg(), and sangoma_tdm_get_usr_mtu_mru().

unsigned int wanpipe_api_cmd::ec_tap

Echo Cancellation Tap

Definition at line 465 of file wanpipe_api_iface.h.

unsigned int wanpipe_api_cmd::rbs_poll

Enable/Disable RBS Polling

Definition at line 466 of file wanpipe_api_iface.h.

Referenced by sangoma_tdm_enable_rbs_events().

unsigned int wanpipe_api_cmd::rbs_rx_bits

Rx RBS Bits

Definition at line 467 of file wanpipe_api_iface.h.

unsigned int wanpipe_api_cmd::rbs_tx_bits

Tx RBS Bits

Definition at line 468 of file wanpipe_api_iface.h.

Referenced by sangoma_tdm_write_rbs().

unsigned int wanpipe_api_cmd::hdlc

HDLC based device

Definition at line 469 of file wanpipe_api_iface.h.

unsigned int wanpipe_api_cmd::idle_flag

IDLE flag to Tx

Definition at line 470 of file wanpipe_api_iface.h.

Referenced by sangoma_get_full_cfg().

unsigned int wanpipe_api_cmd::fe_alarms

FE Alarms detected

Definition at line 471 of file wanpipe_api_iface.h.

Referenced by sangoma_get_full_cfg().

unsigned char wanpipe_api_cmd::fe_status

FE status - Connected or Disconnected

Definition at line 472 of file wanpipe_api_iface.h.

unsigned int wanpipe_api_cmd::hw_dtmf

HW DTMF enabled

Definition at line 473 of file wanpipe_api_iface.h.

unsigned char wanpipe_api_cmd::open_cnt

Open cnt

Definition at line 474 of file wanpipe_api_iface.h.

wanpipe_chan_stats_t wanpipe_api_cmd::stats

Wanpipe API Statistics

Definition at line 475 of file wanpipe_api_iface.h.

Referenced by sangoma_get_full_cfg().

wp_api_event_t wanpipe_api_cmd::event

Wanpipe API Event

Definition at line 477 of file wanpipe_api_iface.h.

Referenced by sangoma_read_event().


The documentation for this struct was generated from the following file:
Generated on Tue Jan 6 18:07:45 2009 for sample_c by  doxygen 1.4.7