|
libsangoma
1
|
Wanpipe API Device Command Structure used with WANPIPE_IOCTL_API_CMD. More...
#include <wanpipe_api_iface.h>

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 | |
| wan_api_ss7_cfg_status_t ss7_cfg_status | |
| struct { | |
| unsigned char data [WANPIPE_API_CMD_SZ_UNION] | |
| unsigned int data_len | |
| } | |
| }; | |
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 714 of file wanpipe_api_iface.h.
| unsigned int wanpipe_api_cmd::cmd |
Command defined in enum wanpipe_api_cmds
Definition at line 716 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_ss7_force_rx(), sangoma_ss7_get_cfg_status(), 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().
| unsigned int wanpipe_api_cmd::result |
Result defined in: enum SANG_STATUS or SANG_STATUS_t
Definition at line 717 of file wanpipe_api_iface.h.
| unsigned char wanpipe_api_cmd::span |
span value, integer 1 to 255
Definition at line 718 of file wanpipe_api_iface.h.
| unsigned char wanpipe_api_cmd::chan |
chan value, integer 1 to 32
Definition at line 719 of file wanpipe_api_iface.h.
Referenced by sangoma_fe_reg_read(), and sangoma_fe_reg_write().
| unsigned int wanpipe_api_cmd::hw_tdm_coding |
Set/Get HW TDM coding: uLaw muLaw
Definition at line 723 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 724 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 725 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 726 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 727 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 728 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 729 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 730 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 731 of file wanpipe_api_iface.h.
| unsigned int wanpipe_api_cmd::rbs_poll |
Enable/Disable RBS Polling
Definition at line 732 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 733 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 734 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 735 of file wanpipe_api_iface.h.
| unsigned int wanpipe_api_cmd::idle_flag |
IDLE flag to Tx
Definition at line 736 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 737 of file wanpipe_api_iface.h.
Referenced by sangoma_get_full_cfg(), and sangoma_tdm_get_fe_alarms().
| unsigned char wanpipe_api_cmd::fe_status |
FE status - Connected or Disconnected
Definition at line 738 of file wanpipe_api_iface.h.
Referenced by sangoma_get_fe_status(), sangoma_get_link_status(), and sangoma_set_fe_status().
| unsigned int wanpipe_api_cmd::hw_dtmf |
HW DTMF enabled
Definition at line 739 of file wanpipe_api_iface.h.
Referenced by sangoma_tdm_get_hw_dtmf().
| unsigned int wanpipe_api_cmd::open_cnt |
Open cnt
Definition at line 740 of file wanpipe_api_iface.h.
Referenced by sangoma_get_open_cnt(), and sangoma_open_api_span_chan().
| unsigned int wanpipe_api_cmd::rx_queue_sz |
Rx queue size
Definition at line 741 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 742 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 744 of file wanpipe_api_iface.h.
Referenced by sangoma_set_rm_rxflashtime().
| wanpipe_chan_stats_t wanpipe_api_cmd::stats |
Wanpipe API Statistics
Definition at line 750 of file wanpipe_api_iface.h.
Referenced by sangoma_get_full_cfg(), and sangoma_get_stats().
| wp_api_event_t wanpipe_api_cmd::event |
Wanpipe API Event
Definition at line 752 of file wanpipe_api_iface.h.
Referenced by handle_tdm_event(), sangoma_disable_bri_bchan_loopback(), sangoma_enable_bri_bchan_loopback(), sangoma_read_event(), sangoma_set_rm_rx_gain(), sangoma_set_rm_tx_gain(), sangoma_tdm_disable_dtmf_events(), sangoma_tdm_disable_fax_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_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_txsig_kewl(), sangoma_tdm_txsig_offhook(), sangoma_tdm_txsig_onhook(), and sangoma_tdm_txsig_start().
1.8.5