📄 device.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.
//
//
#define MAX_SEND_BUF 16
#define MAX_RECV_BUF 16
#define AT_RING "\r\nRING\r\n"
#define AT_VGS "\r\n+VGS=%d\r\n"
#define AT_VGM "\r\n+VGS=%d\r\n"
#define AT_OK "\r\nOK\r\n"
#define AT_ERROR "\r\nERROR\r\n"
enum {
AG_UNINITIALIZED,
AG_DISCONNECTED,
AG_CONNECTED
};
typedef DWORD (*PFN_BTH_ATCMD_CALLBACK) (char* szATCmd, DWORD cdwLen);
extern HANDLE g_hCloseEvent;
extern HANDLE g_hSpkVolEvent;
extern HANDLE g_hMicVolEvent;
extern HANDLE g_hRingAnswerEvent;
extern USHORT g_usMicVol;
extern USHORT g_usSpkVol;
extern DWORD g_dwAGState;
extern BOOL g_fPcmMode;
extern CRITICAL_SECTION g_csData;
extern PFN_BTH_ATCMD_CALLBACK g_pfnATCmdCallback;
DWORD InitializeDevice(void);
DWORD DeInitializeDevice(void);
DWORD StartDevice(void);
DWORD StopDevice(void);
DWORD SendATCommand(char* szCommand, DWORD cdwBuf);
void SetRingingState(BOOL fRinging);
DWORD DeinitSco(void);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -