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

📄 btaudiogw.h

📁 CE下基于PXA255的蓝牙驱动
💻 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.
//
//

// Function pointer for Audio Gateway callback handler for parsing additional AT commands
typedef DWORD (*PFN_BTH_ATCMD_CALLBACK) (char* szATCmd, DWORD cdwLen);

extern "C" {
DWORD WINAPI BthInitializeAudioGateway(void);
DWORD WINAPI BthUninitializeAudioGateway(void);
DWORD WINAPI BthCreateHeadsetConnection(PFN_BTH_ATCMD_CALLBACK pfnCallback);
DWORD WINAPI BthCloseHeadsetConnection(void);
DWORD WINAPI BthRingHeadset(void);
DWORD WINAPI BthStopRingingHeadset(void);
DWORD WINAPI BthSendHeadsetCommand(char* pszCommand, DWORD cdwBuf);
DWORD WINAPI BthGetHeadsetSpkVolume(USHORT* pusVolume);
DWORD WINAPI BthSetHeadsetSpkVolume(USHORT usVolume);
DWORD WINAPI BthGetHeadsetMicVolume(USHORT* pusVolume);
DWORD WINAPI BthSetHeadsetMicVolume(USHORT usVolume);
DWORD WINAPI BthSetHeadsetEvents(HANDLE hButton, HANDLE hSpkVol, HANDLE hMicVol);
}

// Function pointers for exported Audio Gateway functions
typedef DWORD (*PFN_BthInitializeAudioGateway) (void);
typedef DWORD (*PFN_BthUninitializeAudioGateway) (void);
typedef DWORD (*PFN_BthCreateHeadsetConnection) (PFN_BTH_ATCMD_CALLBACK pfnCallback);
typedef DWORD (*PFN_BthCloseHeadsetConnection) (void);
typedef DWORD (*PFN_BthRingHeadset) (void);
typedef DWORD (*PFN_BthStopRingingHeadset) (void);
typedef DWORD (*PFN_BthGetHeadsetSpkVolume) (USHORT* pusVolume);
typedef DWORD (*PFN_BthSetHeadsetSpkVolume) (USHORT usVolume);
typedef DWORD (*PFN_BthGetHeadsetMicVolume) (USHORT* pusVolume);
typedef DWORD (*PFN_BthSetHeadsetMicVolume) (USHORT usVolume);
typedef DWORD (*PFN_BthSetHeadsetEvents) (HANDLE hButton, HANDLE hSpkVol, HANDLE hMicVol);

⌨️ 快捷键说明

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