📄 hcilinkcontrolcmdproc.h
字号:
//--------------------------------------------------------------- %FILH_BEG% --
//
// Project: $$ProjectName
//
// File name: HCILinkControlCmdProc.h
//
// Author:
// Description:
//
// Revision History:
// $Log: $
//
// Rev 1.00 15 July 2000 Initial release
//
//
// Copyright (c) TelenComm Corporation 2000 - All rights reserved
//--------------------------------------------------------------- %FILH_END%
#ifndef HCI_LINK_CONTROL_CMD_H
#define HCI_LINK_CONTROL_CMD_H
//------------------------------------------------------------------------------
//
// Includes
//
//------------------------------------------------------------------------------
#include "HCIBaseCmdProc.h"
//------------------------------------------------------------------------------
//
// Types
//
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
//
// Class Declarations
//
//------------------------------------------------------------------------------
class CHCILinkControlCmdProcessor: public virtual CHCIBaseCmdProcessor
{
private:
public:
CHCILinkControlCmdProcessor(){}
virtual tCmdParseStatus ParseHCICmdType(CHCI_CmdPacket& HCI_CmdPacket) =0; // {return ePARSING_OK;}
static uint8 NoOperationCommand(CHCI_CmdPacket& HCI_CmdPacket);
//struct tagHCIInfoParamFuncs
//{
static uint8 Inquiry(CHCI_CmdPacket& HCI_CmdPacket);
static uint8 InquiryCancel(CHCI_CmdPacket& HCI_CmdPacket);
static uint8 PeriodicInquiryMode(CHCI_CmdPacket& HCI_CmdPacket);
static uint8 ExitPeriodicInquiryMode(CHCI_CmdPacket& HCI_CmdPacket);
static uint8 CreateConnection(CHCI_CmdPacket& HCI_CmdPacket);
static uint8 Disconnect(CHCI_CmdPacket& HCI_CmdPacket);
static uint8 AddSCOConnection(CHCI_CmdPacket& HCI_CmdPacket);
static uint8 AcceptConnectionRequest(CHCI_CmdPacket& HCI_CmdPacket);
static uint8 RejectConnectionRequest(CHCI_CmdPacket& HCI_CmdPacket);
static uint8 LinkKeyRequestReply(CHCI_CmdPacket& HCI_CmdPacket);
static uint8 LinkKeyRequestNegativeReply(CHCI_CmdPacket& HCI_CmdPacket);
static uint8 PinCodeRequestReply(CHCI_CmdPacket& HCI_CmdPacket);
static uint8 PinCodeRequestNegativeReply(CHCI_CmdPacket& HCI_CmdPacket);
static uint8 ChangeConnectionPacketType(CHCI_CmdPacket& HCI_CmdPacket);
static uint8 AuthenticationRequested(CHCI_CmdPacket& HCI_CmdPacket);
static uint8 SetConnectionEncryption(CHCI_CmdPacket& HCI_CmdPacket);
static uint8 ChangeConnectionLinkKey(CHCI_CmdPacket& HCI_CmdPacket);
static uint8 MasterLinkKey(CHCI_CmdPacket& HCI_CmdPacket);
static uint8 RemoteNameRequest(CHCI_CmdPacket& HCI_CmdPacket);
static uint8 ReadRemoteSupportedFeatures(CHCI_CmdPacket& HCI_CmdPacket);
static uint8 ReadRemoteVersionInformation(CHCI_CmdPacket& HCI_CmdPacket);
static uint8 ReadClockOffset(CHCI_CmdPacket& HCI_CmdPacket);
//}HCIInfoParamFuncs;
//struct tagHCIInfoParamCmdRetParamProcFunc
static uint8 InquiryCmdRetParamProcFunc(char* pRetParams);
static uint8 InquiryCancelCmdRetParamProcFunc(char* pRetParams);
static uint8 PeriodicInquiryModeCmdRetParamProcFunc(char* pRetParams);
static uint8 ExitPeriodicInquiryModeCmdRetParamProcFunc(char* pRetParams);
static uint8 CreateConnectionCmdRetParamProcFunc(char* pRetParams);
static uint8 DisconnectCmdRetParamProcFunc(char* pRetParams);
static uint8 AddSCOConnectionCmdRetParamProcFunc(char* pRetParams);
static uint8 AcceptConnectionRequestCmdRetParamProcFunc(char* pRetParams);
static uint8 RejectConnectionRequestCmdRetParamProcFunc(char* pRetParams);
static uint8 LinkKeyRequestReplyCmdRetParamProcFunc(char* pRetParams);
static uint8 LinkKeyRequestNegativeReplyCmdRetParamProcFunc(char* pRetParams);
static uint8 PinCodeRequestReplyCmdRetParamProcFunc(char* pRetParams);
static uint8 PinCodeRequestNegativeReplyCmdRetParamProcFunc(char* pRetParams);
static uint8 ChangeConnectionPacketTypeCmdRetParamProcFunc(char* pRetParams);
static uint8 AuthenticationRequestedCmdRetParamProcFunc(char* pRetParams);
static uint8 SetConnectionEncryptionCmdRetParamProcFunc(char* pRetParams);
static uint8 ChangeConnectionLinkKeyCmdRetParamProcFunc(char* pRetParams);
static uint8 MasterLinkKeyCmdRetParamProcFunc(char* pRetParams);
static uint8 RemoteNameRequestCmdRetParamProcFunc(char* pRetParams);
static uint8 ReadRemoteSupportedFeaturesCmdRetParamProcFunc(char* pRetParams);
static uint8 ReadRemoteVersionInformationCmdRetParamProcFunc(char* pRetParams);
static uint8 ReadClockOffsetCmdRetParamProcFunc(char* pRetParams);
static uint8 HCITestCmdType();
static tHCICommandTableItem HCICmdTable[];
//protected:
uint32 static s_NoOfCmds;
};
//------------------------------------------------------------------------------
//
// Macros
//
//------------------------------------------------------------------------------
// HCI Command Information Parameter Table
#define DECLARE_NO_OF_LINK_CONTROL_COMMANDS uint32 CHCILinkControlCmdProcessor::s_NoOfCmds = sizeof(CHCILinkControlCmdProcessor::HCICmdTable) / sizeof (CHCIBaseCmdProcessor::tHCICommandTableItem);
#define BEGIN_HCI_LINK_CONTROL_COMMAND_TABLE() struct CHCIBaseCmdProcessor::tHCICommandTableItem CHCILinkControlCmdProcessor::HCICmdTable[] = {
#define END_HCI_LINK_CONTROL_COMMAND_TABLE() }; DECLARE_NO_OF_LINK_CONTROL_COMMANDS;
#endif HCI_LINK_CONTROL_CMD_H
//------------------------------------------------------------------------------
// End of HCILinkControlCmdProc.h
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -