📄 hcieventtable.h
字号:
//--------------------------------------------------------------- %FILH_BEG% --
//
// Project: $$ProjectName
//
// File name: HCIEventTable.h
// Author:
// Description:
//
// Revision History:
// $Log: $
//
// rev 1.02 14/06/01 Ek .Changed Number of return Bytes in InquiryCompleteEvent to 1.
// Rev 1.01 10/06/00 EK Added DebugInformationEvent to the list
// Rev 1.00 15 July 2000 Initial release
//
//
// Copyright (c) TelenComm Corporation 2000 - All rights reserved
//--------------------------------------------------------------- %FILH_END%
#ifndef HCI_LINK_CONTROL_CMD_TABLE_H
#define HCI_LINK_CONTROL_CMD_TABLE_H
//------------------------------------------------------------------------------
//
// Includes
//
//------------------------------------------------------------------------------
#include "HCIEventProc.h"
#include "..\..\Inc\HCIError.h"
//------------------------------------------------------------------------------
//
// Table
//
//------------------------------------------------------------------------------
BEGIN_HCI_EVENT_TABLE()
HCI_EVENT_TABLE_ITEM(0x01,5.2.1, InquiryCompleteEvent , 1 )
HCI_EVENT_TABLE_ITEM(0x02,5.2.2, InquiryResultEvent , 0xf )//Variable
HCI_EVENT_TABLE_ITEM(0x03,5.2.3, ConnectionCompleteEvent ,0x0b)//SIZE_OF_FIVE_PARM(teHCI_EVENT_ERROR_CODE,tConnectionHandle,sBD_ADDR,tLINK_TYPE,tENCRYPTION_MODE ) )
HCI_EVENT_TABLE_ITEM(0x04,5.2.4, ConnectionRequestEvent ,0x0a)//SIZE_OF_THREE_PARM(sBD_ADDR,sCLASS_OF_DEVICE,tLINK_TYPE ) )
HCI_EVENT_TABLE_ITEM(0x05,5.2.5, DisconnectionCompleteEvent ,0x04 )//SIZE_OF_FOUR_PARM(sBD_ADDR,uint16,/*ePageScanMode,ePageScanRepMode,*/tClock_Offset,tAllowRoleSwitch))
HCI_EVENT_TABLE_ITEM(0x06,5.2.6, AuthenticationCompleteEvent ,0x03 )//SIZE_OF_TWO_PARM(tConnectionHandle,tReason) )
HCI_EVENT_TABLE_ITEM(0x07,5.2.7, RemoteNameRequestCompleteEvent , 0x08 )//Variable
HCI_EVENT_TABLE_ITEM(0x08,5.2.8, EncryptionChangeEvent , 4 )
HCI_EVENT_TABLE_ITEM(0x09,5.2.9, ChangeConnectionLinkKeyCompleteEvent , 03 )
HCI_EVENT_TABLE_ITEM(0x0A,5.2.10,MasterLinkKeyCompleteEvent , 04 )
HCI_EVENT_TABLE_ITEM(0x0B,5.2.11,ReadRemoteSupportedFeaturesCompleteEvent , 0xb )
HCI_EVENT_TABLE_ITEM(0x0C,5.2.12,ReadRemoteVersionInformationCompleteEvent , 0x08 )
HCI_EVENT_TABLE_ITEM(0x0D,5.2.13,QosSetupCompleteEvent , 0x15 )
HCI_EVENT_TABLE_ITEM(0x0E,5.2.14,CommandCompleteEvent , 0x03)//SIZE_OF_THREE_PARM( uint8,uint16,uint8) ) //Variable
HCI_EVENT_TABLE_ITEM(0x0F,5.2.15,CommandStatusEvent ,0x04 )//SIZE_OF_THREE_PARM( uint8,uint8,uint16) )
HCI_EVENT_TABLE_ITEM(0x10,5.2.16,HardwareErrorEvent , 01 )
HCI_EVENT_TABLE_ITEM(0x11,5.2.17,FlushOccuredEvent , 02 )
HCI_EVENT_TABLE_ITEM(0x12,5.2.18,RoleChangeEvent , 0x08 )
HCI_EVENT_TABLE_ITEM(0x13,5.2.19,NumberOfCompletedPacketsEvent ,0x05)//SIZE_OF_FOUR_PARM(sBD_ADDR,ePageScanMode,ePageScanRepMode,tClock_Offset)) //Variable
HCI_EVENT_TABLE_ITEM(0x14,5.2.20,ModeChangeEvent ,0x06 )//SIZE_OF_ONE_PARM(tConnectionHandle))
HCI_EVENT_TABLE_ITEM(0x15,5.2.21,ReturnLinkKeysEvent ,0x17 )//SIZE_OF_ONE_PARM(tConnectionHandle))//Variable
HCI_EVENT_TABLE_ITEM(0x16,5.2.22,PinCodeRequestEvent ,0x06 )//SIZE_OF_ONE_PARM(tConnectionHandle))
HCI_EVENT_TABLE_ITEM(0x17,5.2.23,LinkKeyRequestEvent , 06 )
HCI_EVENT_TABLE_ITEM(0x18,5.2.24,LinkKeyNotificationEvent , 0x16 )
HCI_EVENT_TABLE_ITEM(0x19,5.2.25,LoopbackCommandEvent , 03 )//Variable
HCI_EVENT_TABLE_ITEM(0x1A,5.2.26,DataBufferOverflowEvent , 01 )
HCI_EVENT_TABLE_ITEM(0x1B,5.2.27,MaxSlotsChangeEvent , 03 )
HCI_EVENT_TABLE_ITEM(0x1C,5.2.28,ReadClockOffsetCompleteEvent , 05 )
HCI_EVENT_TABLE_ITEM(0x1D,5.2.29,ChangeConnectionPacketTypeEvent ,0x05)//SIZE_OF_FOUR_PARM(sBD_ADDR,ePageScanMode,ePageScanRepMode,tClock_Offset))
HCI_EVENT_TABLE_ITEM(0x1E,5.2.30,QosViolationEvent ,0x02 )//SIZE_OF_ONE_PARM(tConnectionHandle))
HCI_EVENT_TABLE_ITEM(0x1F,5.2.31,PageScanModeChangeEvent ,0x07 )//SIZE_OF_ONE_PARM(tConnectionHandle))
HCI_EVENT_TABLE_ITEM(0x20,5.2.32,PageScanRepeatationModeChangeEvent ,0x07 )//SIZE_OF_ONE_PARM(tConnectionHandle))
HCI_EVENT_TABLE_ITEM(0xEF,F.F.FF,DebugInformationEvent ,0x2 )// Variable size
END_HCI_EVENT_TABLE()
//------------------------------------------------------------------------------
uint16 CHCIEventProcessor::m_ListOfOCFWithVariableParams[] ={0x2,0x7,0x0e,0x13,0x15,0x19, 0xEF};
int CHCIEventProcessor::s_NoOfOCFWithVariableParams = sizeof(m_ListOfOCFWithVariableParams)/sizeof(uint16);
#endif HCI_LINK_CONTROL_CMD_TABLE_H
//------------------------------------------------------------------------------
// End of HCILinkControlCmdTable.h
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -