📄 comctrl_ex.h
字号:
/* * Copyright (c) 2003-2004 Linuxant inc. * Copyright (c) 2001-2004 Conexant Systems, Inc. * * 1. Permitted use. Redistribution and use in source and binary forms, * without modification, are only permitted under the terms set forth herein. * * 2. Disclaimer of Warranties. LINUXANT, ITS SUPPLIERS, AND OTHER CONTRIBUTORS * MAKE NO REPRESENTATION ABOUT THE SUITABILITY OF THIS SOFTWARE FOR ANY PURPOSE. * IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTIES OF ANY KIND. * LINUXANT AND OTHER CONTRIBUTORS DISCLAIMS ALL WARRANTIES WITH REGARD * TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE, GOOD TITLE AND AGAINST INFRINGEMENT. * * This software has not been formally tested, and there is no guarantee that * it is free of errors including, but not limited to, bugs, defects, * interrupted operation, or unexpected results. Any use of this software is * at user's own risk. * * 3. No Liability. * * (a) Linuxant, its suppliers, or contributors shall not be responsible for * any loss or damage to users, customers, or any third parties for any reason * whatsoever, and LINUXANT, ITS SUPPLIERS OR CONTRIBUTORS SHALL NOT BE LIABLE * FOR ANY ACTUAL, DIRECT, INDIRECT, SPECIAL, PUNITIVE, INCIDENTAL, OR * CONSEQUENTIAL (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED, WHETHER IN CONTRACT, STRICT OR OTHER LEGAL THEORY OF * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY * WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY * OF SUCH DAMAGE. * * (b) User agrees to hold Linuxant, its suppliers, and contributors harmless * from any liability, loss, cost, damage or expense, including attorney's fees, * as a result of any claims which may be made by any person, including * but not limited to User, its agents and employees, its customers, or * any third parties that arise out of or result from the manufacture, * delivery, actual or alleged ownership, performance, use, operation * or possession of the software furnished hereunder, whether such claims * are based on negligence, breach of contract, absolute liability or any * other legal theory. * * 4. Notices. User hereby agrees not to remove, alter or destroy any * copyright, trademark, credits, other proprietary notices or confidential * legends placed upon, contained within or associated with the Software, * and shall include all such unaltered copyright, trademark, credits, * other proprietary notices or confidential legends on or in every copy of * the Software. * * 5. Reverse-engineering. User hereby agrees not to reverse engineer, * decompile, or disassemble the portions of this software provided solely * in object form, nor attempt in any manner to obtain their source-code. * * 6. Redistribution. Redistribution of this software is only permitted * for exact copies (without modification) of versions explicitly marked * and officially released by Linuxant with the word "free" in their name. * Redistribution or disclosure of other versions, derivatives or license key * information is expressly prohibited without explicit written approval signed * by an authorized Linuxant officer. * * 7. Performance. V.92 modems are designed to be capable of receiving data at * up to 56Kbps with compatible phone line and server equipment, and transmitting * data at up to 31.2Kbps. V.90 modems are designed to be capable of receiving * data at up to 56 Kbps from a compatible service provider and transmitting data * at up to about 28.8 Kbps. Public networks currently limit download speeds to * about 53Kbps. The free version of the drivers is limited to 14.4Kbps. * Actual speeds vary and are often less than the maximum possible. * * *//**************************************************************************************** * Version Control Information * * * * $Header: R:/pvcs68/vm/common/Cyprus Project/archives/HSF4Octopus/SC_include/ComCtrl_Ex.h_v 1.7 03 Mar 2004 19:34:06 shay $ * *****************************************************************************************//****************************************************************************************File Name: ComCtrl_Ex.h File Description: Com Controller object data structures*****************************************************************************************/#ifndef __COMCTRL_EX_H__#define __COMCTRL_EX_H__/* Current ComController version */#define COMCTRL_MAJOR_VERSION 0#define COMCTRL_MINOR_VERSION 1#define COMCTRL_VERSION (((COMCTRL_MAJOR_VERSION) << 16) | (COMCTRL_MINOR_VERSION))/* Supported Configure codes */typedef enum { COMCTRL_CONFIG_DEVICE_ID, /* [in] PVOID - required before Init()*/ COMCTRL_CONFIG_EVENT_HANDLER, /* [in] PPORT_EVENT_HANDLER - optional */ COMCTRL_CONFIG_PORT_NAME, /* [in] PVOID - requred before Init()???*/ COMCTRL_CONFIG_LAST /* Dummy */}COMCTRL_CONFIG_CODE;#if !defined(NO_POUNDUG_SUPPORT) && (OS_TYPE == OS_LINUX)#define COMCTRL_MONITOR_POUND_UG_SUPPORT#endif/* Supported Monitor codes */typedef enum { COMCTRL_MONITOR_STATUS, /* [out] UINT32 - combination of status bits STS_XXX */ COMCTRL_MONITOR_DEVICEID, /* Device Node */ COMCTRL_MONITOR_TXSIZE, COMCTRL_MONITOR_TXCOUNT, COMCTRL_MONITOR_TXFREE, COMCTRL_MONITOR_RXSIZE, COMCTRL_MONITOR_RXCOUNT, COMCTRL_MONITOR_RXFREE, COMCTRL_MONITOR_PORTNAME, COMCTRL_MONITOR_MOH, /* [out] UINT32 - connection supports MOH *//*#$YS$ */ COMCTRL_MONITOR_SYSINST,#ifdef COMCTRL_MONITOR_POUND_UG_SUPPORT COMCTRL_MONITOR_POUND_UG, COMCTRL_MONITOR_POUND_UD,#endif COMCTRL_MONITOR_LAST /* Dummy */}COMCTRL_MONITOR_CODE;/* Supported Control codes*/typedef enum { COMCTRL_CONTROL_SETRTS, /* Set RTS high - no extra data */ COMCTRL_CONTROL_CLRRTS, /* Set RTS low - no extra data */ COMCTRL_CONTROL_SETDTR, /* Set DTR high - no extra data */ COMCTRL_CONTROL_CLRDTR, /* Set DTR low - no extra data */ COMCTRL_CONTROL_SET_XON, COMCTRL_CONTROL_SET_XOFF, COMCTRL_CONTROL_SEND_XON, COMCTRL_CONTROL_SEND_XOFF, COMCTRL_CONTROL_RESETDEV, /* Reset device if possible - no extra data */ COMCTRL_CONTROL_CHAR, /* Send immediate character. - [IN] (char)pData - char to send */ COMCTRL_CONTROL_START_MONITOR_CHAR, /* Start monitoring special character in Rx queue */ COMCTRL_CONTROL_STOP_MONITOR_CHAR, /* Stop monitoring special character in Rx queue */ COMCTRL_CONTROL_INIT_STATE, COMCTRL_CONTROL_PORTCONFIG, /* Set Port Configuration - [IN] (PPORT_CONFIG)pData */ COMCTRL_CONTROL_SLEEP, COMCTRL_CONTROL_WAKEUP, COMCTRL_CONTROL_FLUSH, /* flushing FIFO *//*#$YS$ Added for Break handling */ COMCTRL_CONTROL_SET_BREAK_ON, /* Set break ON */ COMCTRL_CONTROL_SET_BREAK_OFF, /* Set break OFF */ COMCTRL_CONTROL_LAST /* Dummy */}COMCTRL_CONTROL_CODE;/*#$YS$ Added for Voice support */typedef enum tagQueueType{ TX_QUEUE, RX_QUEUE} QUEUE_TYPE;/*Port Configuration bits - specify which fields of PORT_CONFIG structure are valid*/#define PC_DTE_SPEED 0x00000001#define PC_PARITY 0x00000010
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -