⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 coddllapi.h

📁 北京航空航天大学指纹识别系统源码
💻 H
字号:
// CodDllApi.h: interface for the CFunktions class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_CODDLLAPI_H__3D084943_CCAA_4C4E_B038_8BE7505C0D1D__INCLUDED_)
#define AFX_CODDLLAPI_H__3D084943_CCAA_4C4E_B038_8BE7505C0D1D__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/*++
CODOpenSerialInterface:
	
	 This funktion open the serial interface for read and write
			
Arguments:

	none
    
Return Value:

    A BOOL value indicating the status of the requested action.

	Return			Meaning
	======			=======
	TRUE			CODOpenSerialInterface() succeeds
	FALSE			CODOpenSerialInterface() fails
	
Author:

Notes:	
--*/
extern "C" BOOL WINAPI CODOpenSerialInterface();


/*++
CODCloseSerialInterface:
	
	 This funktion close the serial interface
	 
Arguments:

	none
    
Return Value:

    A BOOL value indicating the status of the requested action.

	Return			Meaning
	======			=======
	TRUE			CODCloseSerialInterface() succeeds
	FALSE			CODCloseSerialInterface() fails
	
Author:

Notes:	
--*/
extern "C" BOOL WINAPI CODCloseSerialInterface();

/*++
CODInitSerialInterface:
	
	 This funktion inital the serial interface
			
Arguments:

	sPort -	string for the port name			e.g. "COM1"
	sBaud -	string for the baud rate			e.g. "9600"
	sParity - string for the parity				e.g. "odd","even","none"
	sData -	string for the data length			e.g. "8"
	sStop -	string for the number of stop bits	e.g. "1"
    
Return Value:

   none
	
Author:

Notes:	
--*/
extern "C" void WINAPI CODInitSerialInterface(char *sPort,char *sBaud,
									          char *sParity,char *sData,char *sStop);


/*++
tr_raw:
	
	 This funktion sends and receives an buffer. You can simulate any other functions
	 with tr_raw.
	 
Arguments:

	pInBuf - a Pointer to a buffer with the hexcode for the function to be simulated
	InBufLen - the length of the Input-Buffer in byte
	pOutBuf - a Pointer to a buffer for the response of tht simulated function
	lOutBufLen - the length of the Output-Buffer in byte
	plRetByte - the realy length of the response in byte
    
Return Value:

    A BOOL value indicating the status of the requested action.

	Return			Meaning
	======			=======
	TRUE			tr_raw() succeeds
	FALSE			tr_raw() fails
	
Author:

Notes:	
--*/
extern "C" BOOL WINAPI tr_raw(IN LPBYTE pInBuf,IN LONG InBufLen,
							  OUT LPBYTE pOutBuf, IN LONG lOutBufLen,
							  OUT int* plRetByte);

#endif // !defined(AFX_CODDLLAPI_H__3D084943_CCAA_4C4E_B038_8BE7505C0D1D__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -