亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? mscomm.h

?? 圖像處理的壓縮算法
?? H
字號:
/*------------------------------------------------------------------------------*
 * File Name: mscomm.h															*
 * Creation:  JCG 8/22/2001														*
 * Purpose: Origin C serial communication functions								*
 * Copyright (C) OriginLab Corp.2001											*
 * All Rights Reserved															*
 *------------------------------------------------------------------------------*/


#ifndef _MSCOMM_
#define _MSCOMM_

#pragma dll(kernel32, system)


// Baud rates at which the communication device operates
#define CBR_110             110
#define CBR_300             300
#define CBR_600             600
#define CBR_1200            1200
#define CBR_2400            2400
#define CBR_4800            4800
#define CBR_9600            9600
#define CBR_14400           14400
#define CBR_19200           19200
#define CBR_38400           38400
#define CBR_56000           56000
#define CBR_57600           57600
#define CBR_115200          115200
#define CBR_128000          128000
#define CBR_256000          256000

typedef struct _DCB {
    DWORD DCBlength;     		// sizeof(DCB)                    
    DWORD BaudRate;       		// Baudrate at which running      
    DWORD fBinary: 1;     		// Binary Mode (skip EOF check)    
    DWORD fParity: 1;     		// Enable parity checking         
    DWORD fOutxCtsFlow:1; 		// CTS handshaking on output       
    DWORD fOutxDsrFlow:1; 		// DSR handshaking on output      
    DWORD fDtrControl:2;  		// DTR Flow control              
    DWORD fDsrSensitivity:1; 	// DSR Sensitivity              
    DWORD fTXContinueOnXoff: 1; // Continue TX when Xoff sent 
    DWORD fOutX: 1;       		// Enable output X-ON/X-OFF        
    DWORD fInX: 1;        		// Enable input X-ON/X-OFF        
    DWORD fErrorChar: 1;  		// Enable Err Replacement          
    DWORD fNull: 1;       		// Enable Null stripping           
    DWORD fRtsControl:2;  		// Rts Flow control                
    DWORD fAbortOnError:1; 		// Abort all reads and writes on Error 
    DWORD fDummy2:17;     		// Reserved                       
    WORD wReserved;       		// Not currently used              
    WORD XonLim;          		// Transmit X-ON threshold         
    WORD XoffLim;         		// Transmit X-OFF threshold       
    BYTE ByteSize;        		// Number of bits/byte, 4-8        
    BYTE Parity;          		// 0-4=None,Odd,Even,Mark,Space    
    BYTE StopBits;        		// 0,1,2 = 1, 1.5, 2               
    char XonChar;         		// Tx and Rx X-ON character        
    char XoffChar;        		// Tx and Rx X-OFF character       
    char ErrorChar;       		// Error replacement char          
    char EofChar;         		// End of Input character          
    char EvtChar;         		// Received Event character        
    WORD wReserved1;      		// Fill for now.                
} DCB, *LPDCB;

typedef struct _COMMTIMEOUTS {
    DWORD ReadIntervalTimeout;          // Maximum time between read chars. 
    DWORD ReadTotalTimeoutMultiplier;   // Multiplier of characters.        
    DWORD ReadTotalTimeoutConstant;     // Constant in milliseconds.        
    DWORD WriteTotalTimeoutMultiplier;  // Multiplier of characters.       
    DWORD WriteTotalTimeoutConstant;    // Constant in milliseconds.        
} COMMTIMEOUTS, *LPCOMMTIMEOUTS;

#define NOPARITY            0
#define ODDPARITY           1
#define EVENPARITY          2
#define MARKPARITY          3
#define SPACEPARITY         4

#define ONESTOPBIT          0
#define ONE5STOPBITS        1
#define TWOSTOPBITS         2

#define	MAXWORD    		 	0xffff      
typedef DWORD  				*LPDWORD;

/** >Communications 
	Remarks:
		The SetCommState function configures a communications device according to the specifications 
		in a device-control block (a DCB structure). The function reinitializes all hardware and control 
		settings, but it does not empty output or input queues. 
	Example:
		file ff;

		//Open comm port
		if (!ff.Open("COM1:",  file::modeReadWrite ))
		{
			ASSERT(FALSE);
			return FALSE;
		}

		UINT hCom = ff.GetHandle();
		
		if (hCom == file::hFileNull ) 
		{
			ASSERT(FALSE);
			return FALSE;
		}
		
		DCB dcb;

		if (!GetCommState((HANDLE)hCom, &dcb)) 
		{
			ASSERT(FALSE);
			return FALSE;
		}

		//dcb parameters for user
		dcb.BaudRate = CBR_9600;  		// set the baud rate
		dcb.ByteSize = 8;   			// data size, xmit, and rcv
		dcb.Parity = NOPARITY;        	// no parity bit
		dcb.StopBits = ONESTOPBIT;    	// one stop bit
		
		//dcb fixed parameters 
		dcb.fBinary=1; 
		dcb.fParity=0; 
		dcb.fOutxCtsFlow=0; 
		dcb.fOutxDsrFlow=0; 
		dcb.fDtrControl=0; 
		dcb.fDsrSensitivity=0; 
		
		dcb.fTXContinueOnXoff=0; 
		dcb.fRtsControl=0;

		if (!SetCommState((HANDLE)hCom, &dcb)) 
		{
			ASSERT(FALSE);
			return FALSE;
		}
		
		//...
		
		if( !ff.Close() ) // Close() function will happen automatically by the file class destructor.
		{
			ASSERT(FALSE);
			return FALSE;
		}
	Parameters:
		hFile = handle to the communications device. 
		lpDCB = Pointer to a DCB structure that contains the configuration information for the specified communications device. 
	Return:
		If the function succeeds, the return value is nonzero.
		If the function fails, the return value is zero. 
	SeeAlso:
		file::Open, file::GetHandle, GetCommState.
*/
BOOL WINAPI SetCommState(
    HANDLE hFile,
    LPDCB lpDCB
    );
    
/** >Communications
	Remarks:
		The GetCommState function retrieves the current control settings for a specified communications device. 
	Example:
		file ff;

		//Open comm port
		if (!ff.Open("COM1:",  file::modeReadWrite ))
		{
			ASSERT(FALSE);
			return FALSE;
		}

		UINT hCom = ff.GetHandle();
		
		if (hCom == file::hFileNull ) 
		{
			ASSERT(FALSE);
			return FALSE;
		}
		
		DCB dcb;

		if (!GetCommState((HANDLE)hCom, &dcb)) 
		{
			ASSERT(FALSE);
			return FALSE;
		}

		//dcb parameters for user
		dcb.BaudRate = CBR_9600;  		// set the baud rate
		dcb.ByteSize = 8;   			// data size, xmit, and rcv
		dcb.Parity = NOPARITY;        	// no parity bit
		dcb.StopBits = ONESTOPBIT;    	// one stop bit
		
		//dcb fixed parameters 
		dcb.fBinary=1; 
		dcb.fParity=0; 
		dcb.fOutxCtsFlow=0; 
		dcb.fOutxDsrFlow=0; 
		dcb.fDtrControl=0; 
		dcb.fDsrSensitivity=0; 
		
		dcb.fTXContinueOnXoff=0; 
		dcb.fRtsControl=0;

		if (!SetCommState((HANDLE)hCom, &dcb)) 
		{
			ASSERT(FALSE);
			return FALSE;
		}

		//...
		
		if( !ff.Close() ) // Close() function will happen automatically by the file class destructor.
		{
			ASSERT(FALSE);
			return FALSE;
		}
	Parameters
		hFile = Handle to the communications device. 
		lpDCB = Pointer to a DCB structure that receives the control settings information. 
	Return:
		If the function succeeds, the return value is nonzero.
		If the function fails, the return value is zero. 	
	SeeAlso:
		file::Open, file::GetHandle, SetCommState.
		
*/
BOOL WINAPI GetCommState(
    HANDLE hFile,
    LPDCB lpDCB
    );

/** >Communications
	Remarks:
		The SetCommTimeouts function sets the time-out parameters for all read and write operations on a specified 
		communications device. 
	Example:
		file ff;

		//Open comm port
		if (!ff.Open("COM1:",  file::modeReadWrite ))
		{
			ASSERT(FALSE);
			return FALSE;
		}
		
		UINT hCom = ff.GetHandle();
		
		if ( hCom == file::hFileNull ) 
		{
			ASSERT(FALSE);
			return FALSE;
		}
		
		COMMTIMEOUTS tTimeout; 
		tTimeout.ReadIntervalTimeout = MAXWORD; 
		tTimeout.ReadTotalTimeoutMultiplier = 0; 
		tTimeout.ReadTotalTimeoutConstant = 500; // pas de time out = 0 
		tTimeout.WriteTotalTimeoutMultiplier = 0; 
		tTimeout.WriteTotalTimeoutConstant = 0; 
		
		// config the timeout 
		if( !SetCommTimeouts((HANDLE)hCom,&tTimeout) )
		{
			ASSERT(FALSE);
			return FALSE;
		}
		
		//...
		
		if( !ff.Close() ) // Close() function will happen automatically by the file class destructor.
		{
			ASSERT(FALSE);
			return FALSE;
		}
	Parameters:
		hFile = Handle to the communications device. 
		lpCommTimeouts = Pointer to a COMMTIMEOUTS structure that contains the new time-out values. 
	Return:
		If the function succeeds, the return value is nonzero.
		If the function fails, the return value is zero. 
	SeeAlso:
		file::Open, file::GetHandle, GetCommTimeouts.
*/
BOOL WINAPI SetCommTimeouts(
    HANDLE hFile,
    LPCOMMTIMEOUTS lpCommTimeouts
    );
    
/** >Communications
	Remarks:
		The GetCommTimeouts function retrieves the time-out parameters for all read and write operations on a 
		specified communications device. 
	Example:
		file ff;

		//Open comm port
		if (!ff.Open("COM1:",  file::modeReadWrite ))
		{
			ASSERT(FALSE);
			return FALSE;
		}
		
		UINT hCom = ff.GetHandle();
		
		if ( hCom == file::hFileNull ) 
		{
			ASSERT(FALSE);
			return FALSE;
		}
		
		COMMTIMEOUTS tTimeout; 
		// get the timeout 
		if( !GetCommTimeouts((HANDLE)hCom,&tTimeout) )
		{
			ASSERT(FALSE);  
			return FALSE;
		}

		//...
		
		if( !ff.Close() ) // Close() function will happen automatically by the file class destructor.
		{
			ASSERT(FALSE);
			return FALSE;
		}		
	Parameters:
		hFile = Handle to the communications device.
		lpCommTimeouts = Pointer to a COMMTIMEOUTS structure in which the time-out information is returned. 
	Return:
		If the function succeeds, the return value is nonzero.
		If the function fails, the return value is zero. 
	SeeAlso:
		file::Open, file::GetHandle, SetCommTimeouts.
*/   
BOOL WINAPI GetCommTimeouts(
    HANDLE hFile,
    LPCOMMTIMEOUTS lpCommTimeouts
    );

#endif //_MSCOMM_

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品伦理在线| 午夜精品123| 亚洲综合成人网| 麻豆91在线观看| 91丨九色丨国产丨porny| 欧美电影精品一区二区| 亚洲欧美日韩久久| 国产伦精品一区二区三区免费迷| 一本色道久久综合狠狠躁的推荐| 精品国产露脸精彩对白| 亚洲午夜电影在线| 99麻豆久久久国产精品免费优播| 欧美第一区第二区| 亚洲va中文字幕| 91啦中文在线观看| 中文字幕乱码亚洲精品一区| 日本成人在线不卡视频| 欧美在线高清视频| 亚洲欧美视频在线观看视频| 国产成人av电影免费在线观看| 欧美欧美欧美欧美| 亚洲国产色一区| 色婷婷综合久久| 亚洲素人一区二区| www.亚洲精品| 国产精品久久三| 国产欧美日本一区视频| 麻豆一区二区99久久久久| 在线观看一区不卡| 亚洲黄色小视频| 91美女片黄在线观看| 中文字幕一区二区三区在线观看| 国产福利精品一区| 国产三级欧美三级日产三级99| 激情综合网最新| 精品国产区一区| 国产精品综合在线视频| 久久精品免费在线观看| 国产99久久久国产精品免费看| 久久久久久久久岛国免费| 韩国理伦片一区二区三区在线播放 | 国产精品超碰97尤物18| 国产成人午夜99999| 日本一区二区三区久久久久久久久不 | 成人国产精品免费网站| 欧美激情综合在线| 99久久婷婷国产综合精品电影 | 国产白丝网站精品污在线入口| 欧美国产乱子伦| 91在线观看高清| 亚洲国产精品精华液网站| 在线播放中文一区| 九色综合国产一区二区三区| 美女视频黄频大全不卡视频在线播放 | 日产欧产美韩系列久久99| 日韩欧美高清一区| 国产91在线看| 一区二区三区自拍| 欧美一区二区三区播放老司机| 精品一区二区三区在线播放| 久久网站最新地址| 99国产精品国产精品久久| 亚洲国产婷婷综合在线精品| 亚洲精品在线免费观看视频| 成人三级伦理片| 亚洲va中文字幕| 国产亚洲精品bt天堂精选| 日本精品一区二区三区四区的功能| 午夜久久久久久久久| 久久综合中文字幕| 欧美综合久久久| 激情久久五月天| 一区二区三区四区在线| 精品乱人伦小说| 色美美综合视频| 韩国精品一区二区| 亚洲一区二区在线免费观看视频| 欧美成人精品福利| 色猫猫国产区一区二在线视频| 久久97超碰国产精品超碰| 亚洲老妇xxxxxx| 久久欧美中文字幕| 欧美高清激情brazzers| 成人午夜精品在线| 日本成人在线不卡视频| 伊人色综合久久天天| 国产清纯美女被跳蛋高潮一区二区久久w| 色婷婷一区二区| 不卡免费追剧大全电视剧网站| 日韩激情视频在线观看| 亚洲品质自拍视频| 国产精品视频观看| 精品久久一区二区| 69精品人人人人| 色综合av在线| www.欧美精品一二区| 国产在线播放一区二区三区| 视频一区在线播放| 亚洲精品成a人| 亚洲欧洲日产国码二区| 国产拍欧美日韩视频二区| 日韩欧美一区二区不卡| 欧美三级日韩在线| 欧美中文字幕一区| 91成人看片片| 色综合久久六月婷婷中文字幕| 国产91精品露脸国语对白| 久久综合九色欧美综合狠狠| 日韩欧美一区电影| 日韩久久免费av| 日韩视频免费观看高清完整版| 欧美午夜片在线看| 亚洲精品一二三区| 亚洲欧美一区二区久久| 亚洲色图一区二区三区| 亚洲欧洲精品一区二区三区不卡 | 亚洲精品乱码久久久久久久久 | 日韩激情av在线| 午夜国产精品一区| 日本视频在线一区| 蜜臀av性久久久久av蜜臀妖精| 午夜精品福利一区二区三区av| 亚洲一区国产视频| 免费在线观看精品| 久久er精品视频| 国产精品一区久久久久| 成人激情视频网站| 色综合中文字幕国产 | 激情欧美日韩一区二区| 精品一区二区久久久| 紧缚捆绑精品一区二区| 韩国视频一区二区| 成人免费黄色大片| 色哟哟精品一区| 欧美日韩你懂的| 日韩亚洲欧美成人一区| 欧美一级高清大全免费观看| 欧美xxxxx牲另类人与| 久久人人爽人人爽| 国产精品第四页| 亚洲制服欧美中文字幕中文字幕| 日日夜夜免费精品视频| 国产一区欧美一区| 91视频一区二区| 在线观看91精品国产入口| 91精品午夜视频| 国产视频一区二区三区在线观看 | 欧美国产精品久久| 伊人色综合久久天天人手人婷| 日本网站在线观看一区二区三区| 国产成人三级在线观看| 91国产免费观看| 精品噜噜噜噜久久久久久久久试看 | 欧美一卡2卡3卡4卡| 国产色综合一区| 亚洲一级电影视频| 国产成人免费视频网站| 欧美撒尿777hd撒尿| 国产亚洲精品超碰| 天天射综合影视| www.色综合.com| 精品日韩99亚洲| 亚洲一线二线三线久久久| 国产综合久久久久久久久久久久| 94-欧美-setu| 国产亚洲综合在线| 日韩av二区在线播放| 99久久精品99国产精品| 欧美成人三级电影在线| 亚洲国产乱码最新视频| 成人av免费网站| 日韩久久精品一区| 婷婷久久综合九色综合绿巨人| 成人动漫在线一区| 精品免费视频一区二区| 五月天激情综合网| 一本大道久久a久久综合| 中日韩免费视频中文字幕| 麻豆精品新av中文字幕| 欧美色视频在线| 亚洲欧洲美洲综合色网| 成人一级片网址| 欧美一级午夜免费电影| 亚洲图片有声小说| 一本色道久久综合狠狠躁的推荐| 国产色91在线| 国产一区在线观看视频| 日韩美女一区二区三区四区| 日本一道高清亚洲日美韩| 欧美三片在线视频观看| 亚洲一二三区视频在线观看| 99精品视频一区二区| 国产精品久久久久毛片软件| 国产一区二区看久久| 欧美精品一区二区三| 美国十次了思思久久精品导航| 欧美一区日韩一区| 日韩av中文字幕一区二区| 欧美一二三区在线观看| 天天综合色天天|