|
libsangoma
1
|
WANPIPE(tm) Driver API Interface -. More...
#include "wanpipe_api_hdr.h"

Go to the source code of this file.
Classes | |
| struct | _wp_bert_status |
| BERT status and statistics. More... | |
| struct | wan_api_ss7_cfg_status |
| struct | wanpipe_chan_stats |
| TDM API channel statistics. More... | |
| struct | _DRIVER_VERSION |
| struct | wanpipe_api_dev_cfg |
| TDM API Device Configuration Structure. More... | |
| struct | wanpipe_api_cmd |
| Wanpipe API Device Command Structure used with WANPIPE_IOCTL_API_CMD. More... | |
| struct | wanpipe_api_callbacks |
| Wanpipe API Callback Structure. More... | |
| struct | wanpipe_api |
| Wanpipe API Command Structure. More... | |
Macros | |
| #define | WP_API_FEATURE_DTMF_EVENTS 1 |
| Indicates to developer that dtmf feature is available. | |
| #define | WP_API_FEATURE_FE_ALARM 1 |
| Indicates to developer that fe alarm feature is available. | |
| #define | WP_API_FEATURE_EVENTS 1 |
| Indicates to developer that events feature is available. | |
| #define | WP_API_FEATURE_LINK_STATUS 1 |
| Indicates to developer that link status feature is available. | |
| #define | WP_API_FEATURE_POL_REV 1 |
| Indicates to developer that polarity reversal feature is available. | |
| #define | WP_API_FEATURE_LOGGER 1 |
| Indicates to developer that Wanpipe Logger API feature is available. | |
| #define | WP_API_FEATURE_FAX_EVENTS 1 |
| #define | WP_API_FEATURE_RM_GAIN 1 |
| Indicates to developer that analog hardware gain feature is available. | |
| #define | WP_API_FEATURE_LOOP 1 |
| Indicates to developer that loop feature is available. | |
| #define | WP_API_FEATURE_BUFFER_MULT 1 |
| Indicates to developer that buffer multiplier featere is available. | |
| #define | WP_API_FEATURE_RX_TX_ERRS 1 |
| Indicates to developer that rx tx error reporting feature is available. | |
| #define | WP_API_FEATURE_EC_CHAN_STAT 1 |
| Indicates to developer that echo channel status feature is available. | |
| #define | WP_API_FEATURE_LIBSNG_HWEC 1 |
| #define | WP_API_FEATURE_DRIVER_GAIN 1 |
| #define | WP_API_FEATURE_FE_RW 1 |
| #define | WP_API_FEATURE_HWEC_PERSIST 1 |
| #define | WP_API_FEATURE_FAX_TYPE_EVENTS 1 |
| #define | WP_API_FEATURE_HARDWARE_RESCAN 1 |
| #define | WP_API_FEATURE_LED_CTRL 1 |
| #define | WP_API_FEATURE_SS7_FORCE_RX 1 |
| #define | WP_API_FEATURE_SS7_CFG_STATUS 1 |
| #define | WP_API_FEATURE_LIBSNG_HWEC_DTMF_REMOVAL 1 |
| #define | WP_BERT_DECODE_SEQUENCE_TYPE(sequence) |
| #define | WP_BERT_STATUS_OUT_OF_SYNCH 0 |
| #define | WP_BERT_STATUS_IN_SYNCH 1 |
| #define | WP_API_EVENT_SET 0x01 |
| Option to write a particular command. | |
| #define | WP_API_EVENT_GET 0x02 |
| Option to read a particular command. | |
| #define | WP_API_EVENT_ENABLE 0x01 |
| Option to enable command. | |
| #define | WP_API_EVENT_DISABLE 0x02 |
| Option to disable command. | |
| #define | WP_API_EVENT_MODE_DECODE(mode) |
| Decode disable/enable command. More... | |
| #define | WPTDM_A_BIT WAN_RBS_SIG_A |
| RBS BIT A. | |
| #define | WPTDM_B_BIT WAN_RBS_SIG_B |
| RBS BIT B. | |
| #define | WPTDM_C_BIT WAN_RBS_SIG_C |
| RBS BIT C. | |
| #define | WPTDM_D_BIT WAN_RBS_SIG_D |
| #define | WP_API_EVENT_RXHOOK_OFF 0x01 |
| Rx Off Hook indication value. | |
| #define | WP_API_EVENT_RXHOOK_ON 0x02 |
| Rx ON Hook indication value. | |
| #define | WP_API_EVENT_RXHOOK_FLASH 0x03 |
| Rx WINK FLASH indication value. | |
| #define | WP_API_EVENT_RXHOOK_DECODE(state) |
| Print out the hook state. More... | |
| #define | WP_API_EVENT_RING_PRESENT 0x01 |
| Ring Present Value. | |
| #define | WP_API_EVENT_RING_STOP 0x02 |
| Ring Stop Value. | |
| #define | WP_API_EVENT_RING_DECODE(state) |
| Print out the Ring state. More... | |
| #define | WP_API_EVENT_RING_TRIP_PRESENT 0x01 |
| Ring Trip Present Value. | |
| #define | WP_API_EVENT_RING_TRIP_STOP 0x02 |
| Ring Trip Stop Value. | |
| #define | WP_API_EVENT_RING_TRIP_DECODE(state) |
| Print out the Ring Trip state. More... | |
| #define | WP_API_EVENT_LINK_STATUS_CONNECTED 0x01 |
| Link Connected state value. | |
| #define | WP_API_EVENT_LINK_STATUS_DISCONNECTED 0x02 |
| Link Disconnected state value. | |
| #define | WP_API_EVENT_LINK_STATUS_DECODE(status) |
| Print out the Link state. More... | |
| #define | WP_API_EVENT_POL_REV_POS_TO_NEG 0x01 |
| Polarity Reversal Postive to Negative. | |
| #define | WP_API_EVENT_POL_REV_NEG_TO_POS 0x02 |
| Polarity Reversal Negative to Positive. | |
| #define | WP_API_EVENT__POL_REV_NEG_TO_POS WP_API_EVENT_POL_REV_NEG_TO_POS |
| #define | WP_API_EVENT_POLARITY_REVERSE_DECODE(polarity_reverse) |
| Print out the Polarity state. More... | |
| #define | WP_API_EVENT_TONE_DIAL 0x01 |
| Dial tone value. | |
| #define | WP_API_EVENT_TONE_BUSY 0x02 |
| Busy tone value. | |
| #define | WP_API_EVENT_TONE_RING 0x03 |
| Ring tone value. | |
| #define | WP_API_EVENT_TONE_CONGESTION 0x04 |
| Contestion tone value. | |
| #define | WP_API_EVENT_TONE_DTMF 0x05 |
| Define tone indicates TONE type DTMF. | |
| #define | WP_API_EVENT_TONE_FAXCALLING 0x06 |
| Define tone indicates TONE type FAXCALLING. | |
| #define | WP_API_EVENT_TONE_FAXCALLED 0x07 |
| Define tone indicates TONE type FAXCALLED. | |
| #define | WAN_BRI_BCHAN1 0x01 |
| BRI Channel 1. | |
| #define | WAN_BRI_BCHAN2 0x02 |
| BRI Channel 2. | |
| #define | WAN_BRI_DCHAN 0x03 |
| BRI Dchan Channel. | |
| #define | WP_PORT_NAME_FORM "wanpipe%d" |
| String define of a wanpipe port name. | |
| #define | WP_INTERFACE_NAME_FORM "wanpipe%d_if%d" |
| String define of a wanpipe interface name. | |
| #define | WP_CTRL_DEV_NAME "wanpipe_ctrl" |
| #define | WP_CONFIG_DEV_NAME "wanpipe" |
| #define | WP_TIMER_DEV_NAME_FORM "wanpipe_timer%d" |
| #define | WP_LOGGER_DEV_NAME "wanpipe_logger" |
| #define | WP_AFT_CHAN_ERROR_STATS(chan_stats, var) chan_stats.var++;chan_stats.errors++ |
| #define | WP_AFT_RX_ERROR_SUM(chan_stats) |
| #define | WP_AFT_TX_ERROR_SUM(chan_stats) |
| #define | WANPIPE_API_CMD_SZ 512 |
| #define | WANPIPE_API_DEV_CFG_MAX_SZ 337 |
| #define | WANPIPE_API_CMD_SZ_UNION WANPIPE_API_CMD_SZ - (sizeof(unsigned int)*3) - (sizeof(unsigned char)*2) |
| #define | WANPIPE_API_CMD_RESERVED_SZ 128 - sizeof(int)*1 - sizeof(char)*3 |
| #define | WANPIPE_API_DEV_CFG_SZ sizeof(int)*20 + sizeof(char)*4 + WANPIPE_API_CMD_RESERVED_SZ + sizeof(wanpipe_chan_stats_t) |
| #define | WANPIPE_API_CMD_INIT_SPAN(wp_cmd_ptr, span_no) ((wp_cmd_ptr)->span = (unsigned char)span_no) |
| #define | WANPIPE_API_CMD_INIT_CHAN(wp_cmd_ptr, chan_no) ((wp_cmd_ptr)->chan = (unsigned char)chan_no) |
| #define | WANPIPE_API_INIT_SPAN(wanpipe_api_ptr, span_no) WANPIPE_API_CMD_INIT_SPAN(&wanpipe_api_ptr->wp_cmd, span_no) |
| #define | WANPIPE_API_INIT_CHAN(wanpipe_api_ptr, chan_no) WANPIPE_API_CMD_INIT_CHAN(&wanpipe_api_ptr->wp_cmd, chan_no) |
Typedefs | |
| typedef int | sng_fd_t |
| Windows/Unix file handle abstraction. | |
| typedef enum wp_bert_sequence_type | wp_bert_sequence_type_t |
| typedef struct _wp_bert_status | wp_bert_status_t |
|
typedef struct wan_api_ss7_cfg_status | wan_api_ss7_cfg_status_t |
| typedef struct wanpipe_chan_stats | wanpipe_chan_stats_t |
| typedef struct _DRIVER_VERSION | wan_driver_version_t |
| typedef struct _DRIVER_VERSION | DRIVER_VERSION |
| typedef struct _DRIVER_VERSION * | PDRIVER_VERSION |
| typedef struct wanpipe_api_dev_cfg | wanpipe_api_dev_cfg_t |
| typedef struct wanpipe_api_cmd | wanpipe_api_cmd_t |
|
typedef struct wanpipe_api_callbacks | wanpipe_api_callbacks_t |
| typedef struct wanpipe_api | wanpipe_api_t |
WANPIPE(tm) Driver API Interface -.
Provides IO/Event API Only
Authors: Nenad Corbic ncorbic@sangoma.com David Rokhvarg davidr@sangoma.com
Copyright (c) 2007 - 08, Sangoma Technologies All rights reserved.
THIS SOFTWARE IS PROVIDED BY Sangoma Technologies ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL Sangoma Technologies BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
Definition in file wanpipe_api_iface.h.
| #define WP_BERT_DECODE_SEQUENCE_TYPE | ( | sequence | ) |
Definition at line 197 of file wanpipe_api_iface.h.
| #define WP_API_EVENT_MODE_DECODE | ( | mode | ) |
Decode disable/enable command.
Definition at line 385 of file wanpipe_api_iface.h.
| #define WP_API_EVENT_RXHOOK_DECODE | ( | state | ) |
Print out the hook state.
Definition at line 420 of file wanpipe_api_iface.h.
| #define WP_API_EVENT_RING_DECODE | ( | state | ) |
Print out the Ring state.
Definition at line 435 of file wanpipe_api_iface.h.
| #define WP_API_EVENT_RING_TRIP_DECODE | ( | state | ) |
Print out the Ring Trip state.
Definition at line 450 of file wanpipe_api_iface.h.
| #define WP_API_EVENT_LINK_STATUS_DECODE | ( | status | ) |
Print out the Link state.
Definition at line 465 of file wanpipe_api_iface.h.
| #define WP_API_EVENT_POLARITY_REVERSE_DECODE | ( | polarity_reverse | ) |
Print out the Polarity state.
Definition at line 482 of file wanpipe_api_iface.h.
| #define WP_AFT_RX_ERROR_SUM | ( | chan_stats | ) |
Definition at line 616 of file wanpipe_api_iface.h.
| #define WP_AFT_TX_ERROR_SUM | ( | chan_stats | ) |
Definition at line 625 of file wanpipe_api_iface.h.
| enum WANPIPE_IOCTL_CODE |
Wanpipe IOCTL Commands.
Wanpipe System/IOCTL Commands for API Devices The system calls perform, configration/management/operation/io
Definition at line 108 of file wanpipe_api_iface.h.
Commands used with WANPIPE_IOCTL_PIPEMON IOCTL.
Definition at line 133 of file wanpipe_api_iface.h.
| enum wanpipe_api_cmds |
Commands used with WANPIPE_IOCTL_API_CMD IOCTL.
Definition at line 239 of file wanpipe_api_iface.h.
| enum wanpipe_api_events |
Events available on wanpipe api device.
The events are can be enabled or disabled by application. Events are passed up to the user application by the driver. If event occours and applicatoin has enabled such event, then event is passed up to the api device. User application will receive a poll() signal idicating that event has occoured.
Definition at line 336 of file wanpipe_api_iface.h.
1.8.5