#include <wanpipe_api_iface.h>
Collaboration diagram for wanpipe_api_cmd:

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 | |
| struct { | |
| unsigned char data [WANPIPE_API_CMD_SZ_UNION] | |
| unsigned int data_len | |
| } | |
| }; | |
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 637 of file wanpipe_api_iface.h.
| unsigned int wanpipe_api_cmd::cmd |
Command defined in enum wanpipe_api_cmds
Definition at line 639 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_firmware_version(), sangoma_get_full_cfg(), sangoma_get_hw_coding(), sangoma_get_open_cnt(), sangoma_get_rx_queue_sz(), sangoma_get_stats(), sangoma_get_tx_queue_sz(), sangoma_read_event(), sangoma_set_rm_rxflashtime(), sangoma_set_rx_queue_sz(), sangoma_set_tx_queue_sz(), 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_read_rbs(), sangoma_tdm_set_codec(), sangoma_tdm_set_polarity(), sangoma_tdm_set_power_level(), sangoma_tdm_set_usr_period(), sangoma_tdm_txsig_onhooktransfer(), and sangoma_tdm_write_rbs().
| unsigned int wanpipe_api_cmd::result |
Result defined in: enum SANG_STATUS or SANG_STATUS_t
Definition at line 640 of file wanpipe_api_iface.h.
| unsigned char wanpipe_api_cmd::span |
span value, integer 1 to 255
Definition at line 641 of file wanpipe_api_iface.h.
| unsigned char wanpipe_api_cmd::chan |
chan value, integer 1 to 32
Definition at line 642 of file wanpipe_api_iface.h.
| unsigned int wanpipe_api_cmd::hw_tdm_coding |
Set/Get HW TDM coding: uLaw muLaw
Definition at line 646 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 647 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 648 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 649 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 650 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 651 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 652 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 653 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 654 of file wanpipe_api_iface.h.
| unsigned int wanpipe_api_cmd::rbs_poll |
Enable/Disable RBS Polling
Definition at line 655 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 656 of file wanpipe_api_iface.h.
Referenced by sangoma_tdm_read_rbs().
| unsigned int wanpipe_api_cmd::rbs_tx_bits |
Tx RBS Bits
Definition at line 657 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 658 of file wanpipe_api_iface.h.
| unsigned int wanpipe_api_cmd::idle_flag |
IDLE flag to Tx
Definition at line 659 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 660 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 661 of file wanpipe_api_iface.h.
| unsigned int wanpipe_api_cmd::hw_dtmf |
HW DTMF enabled
Definition at line 662 of file wanpipe_api_iface.h.
| unsigned int wanpipe_api_cmd::open_cnt |
| unsigned int wanpipe_api_cmd::rx_queue_sz |
Rx queue size
Definition at line 664 of file wanpipe_api_iface.h.
Referenced by sangoma_get_rx_queue_sz(), and sangoma_set_rx_queue_sz().
| unsigned int wanpipe_api_cmd::tx_queue_sz |
Tx queue size
Definition at line 665 of file wanpipe_api_iface.h.
Referenced by sangoma_get_tx_queue_sz(), and sangoma_set_tx_queue_sz().
| unsigned int wanpipe_api_cmd::rxflashtime |
Set Rxflash time for Wink-Flash
Definition at line 667 of file wanpipe_api_iface.h.
Referenced by sangoma_set_rm_rxflashtime().
Wanpipe API Statistics
Definition at line 673 of file wanpipe_api_iface.h.
Referenced by sangoma_get_full_cfg(), and sangoma_get_stats().
Wanpipe API Event
Definition at line 675 of file wanpipe_api_iface.h.
Referenced by sangoma_disable_bri_bchan_loopback(), sangoma_enable_bri_bchan_loopback(), sangoma_read_event(), sangoma_tdm_set_polarity(), and sangoma_tdm_txsig_onhooktransfer().
1.4.7