📄 wcebtdef.h
字号:
//
// 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 __WCEBTDEF__
#define __WCEBTDEF__
typedef struct _WSSBT_CLIENT_CONTEXT
{
// from active key
CARD_SOCKET_HANDLE hSocket;
// from Registration Callback
CARD_CLIENT_HANDLE hCardClient;
// Handle to BT I/O register window
CARD_WINDOW_HANDLE hBTReg;
HANDLE hWriteEvent;
HANDLE hReadEvent;
//Identifier that is used in ISR to detect our interrupts
DWORD identifier;
//The base address for our IO-window
unsigned char *ioBase;
//
// Our receive buffer that holds received data until fetched by
// the application
//
DataBuffer *receiveBuffer;
//
//Our tx-buffer that holds data waiting to be sent off
DataBuffer *sendBuffer;
//
// Pointer to current TxBuffer
WORD currentTxBuffer;
//
// Is first txBuffer free
BOOL firstTxBufferFull;
//
// Is second txBuffer free
BOOL secondTxBufferFull;
//
//Pointer to current RxBuffer
WORD currentRxBuffer;
//
//Shadow register for control register
BYTE controlShadowRegister;
// Flags
unsigned int fReleaseConfig : 1;
unsigned int fOverflow : 1;
unsigned int fDriverStarted : 1;
unsigned int fDriverFlowOff : 1;
unsigned int fReading : 1;
unsigned int fWriting : 1;
unsigned int fOpening : 1;
unsigned int fTxPending : 1;
COMMTIMEOUTS CommTimeOuts;
int iRefCnt;
} WSSBTCLIENT_CONTEXT, *PWSSBTCLIENT_CONTEXT;
#endif //#ifndef __WCEBTDEF__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -