prototypes.h

来自「Windows CE操作系统中适用的蓝牙驱动程序」· C头文件 代码 · 共 59 行

H
59
字号
//
// Copyright (c) Microsoft Corporation.  All rights reserved.
//
//
// Use of this source code is subject to the terms of the Microsoft end-user
// license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
// If you did not accept the terms of the EULA, you are not authorized to use
// this source code. For a copy of the EULA, please see the LICENSE.RTF on your
// install media.
//
#ifndef __BTWSSPROTOTYPES__
#define __BTWSSPROTOTYPES__

void BTWSSLedStart (DWORD ioBase);
void BTWSSLedStop (void);
void BTWSSLedBlink (void);

BOOLEAN InterruptServiceRoutine (PVOID ServiceContext);

// The following execute under critical section
void EnableInterrupts(PWSSBTCLIENT_CONTEXT ptrcc);
void EnableInterrupt(PWSSBTCLIENT_CONTEXT ptrcc, BYTE interrupt);
void DisableInterrupts(PWSSBTCLIENT_CONTEXT ptrcc);
void DisableInterrupt(PWSSBTCLIENT_CONTEXT ptrcc, BYTE interrupt);
void BTWSSInterruptRead(PWSSBTCLIENT_CONTEXT ptrcc, BYTE reason);
void BTWSSWriteFromSendBuffer(PWSSBTCLIENT_CONTEXT ptrcc);
void RxInit(PWSSBTCLIENT_CONTEXT ptrcc);

int  BTWSSResetCard(PWSSBTCLIENT_CONTEXT ptrcc);
int  BTWSSSetRTSState(PWSSBTCLIENT_CONTEXT ptrcc, int fOn);

///////////////////////////////////////////////////////
// PROT0TYPING
///////////////////////////////////////////////////////
#ifdef __cplusplus
extern "C"
{
#endif

	DWORD WBT_Init(DWORD dwContext);
	BOOL WBT_Deinit(DWORD dwClientContext);
    DWORD WBT_Open(DWORD dwClientContext, DWORD dwAccess, DWORD dwShareMode);
	BOOL WBT_Close(DWORD dwOpenContext);
	DWORD WBT_Read(DWORD dwOpenContext, LPVOID pBuffer, DWORD dwNumBytes);
	DWORD WBT_Write(DWORD dwOpenContext, LPCVOID pBuffer, DWORD dwNumBytes);
	DWORD WBT_Seek(DWORD dwOpenContext, long lDistance, DWORD dwMoveMethod);
	BOOL WBT_IOControl(DWORD dwOpenContext, DWORD dwIoControlCode, PBYTE pInBuf, 
									   DWORD nInBufSize, PBYTE pOutBuf, DWORD nOutBufSize, 
									   PDWORD pBytesReturned);
	void WBT_PowerUp(void);
	void WBT_PowerDown(void);

#ifdef __cplusplus
}
#endif



#endif

⌨️ 快捷键说明

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