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

📄 hcieventformfunctions.h

📁 蓝牙协议HCI层指令发送,主要用于测试HCI以下的代码及RF部分测试.
💻 H
字号:
//--------------------------------------------------------------- %FILH_BEG% --
//
//  Project:		$$ProjectName
//
//  File name:		HCIEventFormFunction.h	
//
//  Author:			 
//  Description:	  
//
//  Revision History:
//  $Log: $
//
//  Rev 1.00  15 July 2000 Initial release
//    
//
//  Copyright (c) TelenComm Corporation  2000   -   All rights reserved    
//--------------------------------------------------------------- %FILH_END% // BTHostDoc.cpp : implementation of the CBTHostDoc class
//
#ifndef HCI_EVENT_FORM_FUNCTIONS_H
#define HCI_EVENT_FORM_FUNCTIONS_H

//------------------------------------------------------------------------------
//
//  Includes
//
//------------------------------------------------------------------------------

#include "..\..\Common\Common.h"
//#include "stdmac.h"
//#include "HCICommandProc.h"
//#include "HCIEventType.h"

//------------------------------------------------------------------------------
//
//   HCI Events Interface Functions
//
//------------------------------------------------------------------------------
class HCI_EventsInterfaceFormFunctions
{
public:
  void    InquiryCompleteEvent( teHCI_EVENT_ERROR_CODE teStatus,uint8 u8NumResponses );

  void    InquiryResultEvent( uint8            NUM_RESPONSES,
                  sBD_ADDR          asDevAddr[],
                  ePageScanRepMode  atPageScanRepetitionMode[],
                  tPAGE_SCAN_PERIOD_MODE    atPageScanPeriodMode[],
                  ePageScanMode        atPageScanMode[],
                  sCLASS_OF_DEVICE      asClassOfDevice[],
                  tCLOCK_OFFSET        atClockOffset[]
                );

  void    ConnectionCompleteEvent(  teHCI_EVENT_ERROR_CODE  teStatus,
                    tConnectionHandle  ConnectionHandle,
                    sBD_ADDR        sDevAddr,
                    tLINK_TYPE      tLinkType,
                    tENCRYPTION_MODE    tEncryptionMode
                   );

  void    ConnectionRequestEvent(  sBD_ADDR        sDevAddr,
                  sCLASS_OF_DEVICE    sClassOfDevice,
                  tLINK_TYPE        tLinkType

                  );

  void    DisconnectionCompleteEvent( teHCI_EVENT_ERROR_CODE teStatus,
                      tConnectionHandle  ConnectionHandle,
                      tREASON        tReason
                   );

  void    AuthenticationCompleteEvent( teHCI_EVENT_ERROR_CODE  teStatus,
                       tConnectionHandle    ConnectionHandle
                     );


  void    RemoteNameRequestCompleteEvent( teHCI_EVENT_ERROR_CODE teStatus,
                        sBD_ADDR      sDevAddr,
                        char          RemoteName[]
                      );

  void    EncryptionChangeEvent( teHCI_EVENT_ERROR_CODE  teStatus,
                   tConnectionHandle    ConnectionHandle,
                   uint8          u8EncryptionEnable
                 );

  void    ChangeConnectionLinkKeyCompleteEvent( teHCI_EVENT_ERROR_CODE teStatus,
                          tConnectionHandle   ConnectionHandle
                        );

  void    MasterLinkKeyCompleteEvent( teHCI_EVENT_ERROR_CODE  teStatus,
                      tConnectionHandle    ConnectionHandle,
                    uint8          u8KeyFlag
                    );

  void    ReadRemoteSupportedFeaturesCompleteEvent( teHCI_EVENT_ERROR_CODE  teStatus,
                            tConnectionHandle  ConnectionHandle,
                            sLMP_FEATURES      sLMP_Features
                          );

  void    ReadRemoteVersionInformationCompleteEvent( teHCI_EVENT_ERROR_CODE teStatus,
                             tConnectionHandle  ConnectionHandle,
                             uint8        u8LMP_Version,
                             uint32        u32ManufacturerName,
                             uint8        u8LMP_Subversion
                          );

  void    QosSetupCompleteEvent( teHCI_EVENT_ERROR_CODE teStatus,
                   tConnectionHandle  ConnectionHandle,
                   uint8        u8Flags,
                   uint8        u8ServiceType,
                   uint32        u32TokenRate,
                   uint32        u32PeakBW,
                   uint32        u32Latency,
                   uint32        u32DelayVariation
                );

   //void    CommandCompleteEvent( uint8    u8Flags,
   void    CommandCompleteEvent(
                  uint16  u16CommandOpcode,
                  uint8    u8RetParameters
                );

  void    CommandStatusEvent( teHCI_EVENT_ERROR_CODE teStatus,
                uint8  u8NumHCICommandPackets,
                uint16  u16CommandOpcode
                 );

  void    HardwareErrorEvent(uint8  HardwareCode );

  
  void    FlushOccuredEvent( tConnectionHandle ConnectionHandle);

  void    RoleChangeEvent( teHCI_EVENT_ERROR_CODE teStatus,
               sBD_ADDR  sDevAddr,
               uint8    u8NewRole
               );

  void    NumberOfCompletedPacketsEvent( uint8        NumOfHandles,
                       tConnectionHandle  ConnectionHandle,
                       uint8        HCNumOfCompletedPackets[],
                       uint8        CurrentMode,
                       tINTERVAL      tInterval
                     );

  void    ModeChangeEvent( teHCI_EVENT_ERROR_CODE teStatus,
               tConnectionHandle    aConnectionHandle,
                 uint8          u8CurrentMode,
                 tINTERVAL        tInterval
               );

  void    ReturnLinkKeysEvent( uint8        u8CurrentMode,
                   sBD_ADDR      asDevAddr[],
                 uint8        au8LinkKey[]
                 );

  void    PinCodeRequestEvent( sBD_ADDR  sDevAddr );

  void    LinkKeyRequestEvent( sBD_ADDR  sDevAddr );

  void    LinkKeyNotificationEvent( sBD_ADDR  sDevAddr,
                    uint8    u8LinkKey
                  );

  void    LoopbackCommandEvent( puint8    pu8HCICommandPackets );

  void    DataBufferOverflowEvent( tLINK_TYPE  tLinkType );

  void    MaxSlotsChangeEvent( tConnectionHandle ConnectionHandle,
                 uint8        LMP_MaxSlots
                 );
  
  void    ReadClockOffsetCompleteEvent( teHCI_EVENT_ERROR_CODE  teStatus,
                      tConnectionHandle    ConnectionHandle,
                      tCLOCK_OFFSET        tClockOffset
                    );
  
  void    ChangeConnectionPacketTypeEvent( teHCI_EVENT_ERROR_CODE  teStatus,
                        tConnectionHandle    ConnectionHandle,
                        eBaseBandPacketType        tPacketType
                      );

  void    QosViolationEvent( tConnectionHandle ConnectionHandle );

  void    PageScanModeChangeEvent( sBD_ADDR      sDevAddr,
                   ePageScanMode  atPageScanMode );

  void    PageScanRepeatationModeChangeEvent( sBD_ADDR          sDevAddr,
                        ePageScanRepMode  tPageScanRepetitionMode
                        );
};


//------------------------------------------------------------------------------
//
//  Declarations
//
//------------------------------------------------------------------------------


#endif HCI_EVENT_FORM_FUNCTIONS_H

//------------------------------------------------------------------------------
// End of HCIEvnet.h

⌨️ 快捷键说明

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