wanpipe_tdm_api_cmd Struct Reference

TDM API Device Configuration Structure used with WANPIPE_IOCTL_TDM_API. More...

#include <wanpipe_api_iface.h>

Collaboration diagram for wanpipe_tdm_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
   } 
   wp_tdm_chan_stats_t   stats
   wp_api_event_t   event
   struct {
      unsigned char   data [WANPIPE_TDM_API_CMD_SZ-WANPIPE_TDM_API_CMD_SZ_LESS]
      unsigned int   data_len
   } 
}; 

Detailed Description

TDM API Device Configuration Structure used with WANPIPE_IOCTL_TDM_API.

TDM API Commands structure used to execute WANPIPE_IOCTL_TDM_API iocl commands All commands are defined in: enum wanpipe_tdm_api_cmds enum wanpipe_tdm_api_events

Definition at line 382 of file wanpipe_api_iface.h.


Member Data Documentation

unsigned int wanpipe_tdm_api_cmd::cmd

Command defined in enum wanpipe_tdm_api_cmds

Definition at line 384 of file wanpipe_api_iface.h.

Referenced by sangoma_get_full_cfg(), sangoma_tdm_cmd_exec(), sangoma_tdm_disable_hwec(), sangoma_tdm_disable_rbs_events(), sangoma_tdm_enable_hwec(), sangoma_tdm_enable_rbs_events(), sangoma_tdm_flush_bufs(), sangoma_tdm_get_codec(), sangoma_tdm_get_hw_coding(), sangoma_tdm_get_power_level(), sangoma_tdm_get_usr_mtu_mru(), sangoma_tdm_get_usr_period(), sangoma_tdm_read_event(), sangoma_tdm_set_codec(), sangoma_tdm_set_power_level(), sangoma_tdm_set_usr_period(), and sangoma_tdm_write_rbs().

unsigned int wanpipe_tdm_api_cmd::result

Result defined in: enum SANG_STATUS or SANG_STATUS_t

Definition at line 385 of file wanpipe_api_iface.h.

unsigned char wanpipe_tdm_api_cmd::span

span value, integer 1 to 255

Definition at line 386 of file wanpipe_api_iface.h.

unsigned char wanpipe_tdm_api_cmd::chan

chan value, integer 1 to 32

Definition at line 387 of file wanpipe_api_iface.h.

unsigned int wanpipe_tdm_api_cmd::hw_tdm_coding

Set/Get HW TDM coding: uLaw muLaw

Definition at line 391 of file wanpipe_api_iface.h.

Referenced by sangoma_get_full_cfg(), and sangoma_tdm_get_hw_coding().

unsigned int wanpipe_tdm_api_cmd::hw_mtu_mru

Set/Get HW TDM MTU/MRU

Definition at line 392 of file wanpipe_api_iface.h.

Referenced by sangoma_get_full_cfg().

unsigned int wanpipe_tdm_api_cmd::usr_period

Set/Get User Period in ms

Definition at line 393 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_tdm_api_cmd::tdm_codec

Set/Get TDM Codec: SLinear

Definition at line 394 of file wanpipe_api_iface.h.

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

unsigned int wanpipe_tdm_api_cmd::power_level

Set/Get Power level treshold

Definition at line 395 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_tdm_api_cmd::rx_disable

Enable/Disable Rx

Definition at line 396 of file wanpipe_api_iface.h.

Referenced by sangoma_get_full_cfg().

unsigned int wanpipe_tdm_api_cmd::tx_disable

Enable/Disable Tx

Definition at line 397 of file wanpipe_api_iface.h.

Referenced by sangoma_get_full_cfg().

unsigned int wanpipe_tdm_api_cmd::usr_mtu_mru

Set/Get User TDM MTU/MRU

Definition at line 398 of file wanpipe_api_iface.h.

Referenced by sangoma_get_full_cfg(), and sangoma_tdm_get_usr_mtu_mru().

unsigned int wanpipe_tdm_api_cmd::ec_tap

Echo Cancellation Tap

Definition at line 399 of file wanpipe_api_iface.h.

unsigned int wanpipe_tdm_api_cmd::rbs_poll

Enable/Disable RBS Polling

Definition at line 400 of file wanpipe_api_iface.h.

Referenced by sangoma_tdm_enable_rbs_events().

unsigned int wanpipe_tdm_api_cmd::rbs_rx_bits

Rx RBS Bits

Definition at line 401 of file wanpipe_api_iface.h.

unsigned int wanpipe_tdm_api_cmd::rbs_tx_bits

Tx RBS Bits

Definition at line 402 of file wanpipe_api_iface.h.

Referenced by sangoma_tdm_write_rbs().

unsigned int wanpipe_tdm_api_cmd::hdlc

HDLC based device

Definition at line 403 of file wanpipe_api_iface.h.

unsigned int wanpipe_tdm_api_cmd::idle_flag

IDLE flag to Tx

Definition at line 404 of file wanpipe_api_iface.h.

Referenced by sangoma_get_full_cfg().

unsigned int wanpipe_tdm_api_cmd::fe_alarms

FE Alarms detected

Definition at line 405 of file wanpipe_api_iface.h.

Referenced by sangoma_get_full_cfg().

unsigned char wanpipe_tdm_api_cmd::fe_status

FE status - Connected or Disconnected

Definition at line 406 of file wanpipe_api_iface.h.

unsigned int wanpipe_tdm_api_cmd::hw_dtmf

HW DTMF enabled

Definition at line 407 of file wanpipe_api_iface.h.

wp_tdm_chan_stats_t wanpipe_tdm_api_cmd::stats

TDM Statistics

Definition at line 409 of file wanpipe_api_iface.h.

Referenced by sangoma_get_full_cfg().

wp_api_event_t wanpipe_tdm_api_cmd::event

TDM Event

Definition at line 410 of file wanpipe_api_iface.h.

Referenced by sangoma_tdm_read_event().


The documentation for this struct was generated from the following file:
Generated on Wed Dec 17 19:01:30 2008 for libsangoma by  doxygen 1.4.7