bt_hci_ft.h
上传用户:gelin96
上传日期:2017-01-08
资源大小:20993k
文件大小:5k
源码类别:

MTK

开发平台:

C++ Builder

  1. /*****************************************************************************
  2. *  Copyright Statement:
  3. *  --------------------
  4. *  This software is protected by Copyright and the information contained
  5. *  herein is confidential. The software may not be copied and the information
  6. *  contained herein may not be used or disclosed except with the written
  7. *  permission of MediaTek Inc. (C) 2001
  8. *
  9. *****************************************************************************/
  10. /*****************************************************************************
  11.  *
  12.  * Filename:
  13.  * ---------
  14.  *   bt_hci_ft.h
  15.  *
  16.  * Project:
  17.  * --------
  18.  *   Maui META APP
  19.  *
  20.  * Description:
  21.  * ------------
  22.  *   BT HCI command compose/event decompose header
  23.  *
  24.  * Author:
  25.  * -------
  26.  *  Andy Ueng (mtk00490)
  27.  *
  28.  *============================================================================
  29.  *             HISTORY
  30.  * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
  31.  *------------------------------------------------------------------------------
  32.  * $Revision$
  33.  * $Modtime$
  34.  * $Log$
  35.  *
  36.  *------------------------------------------------------------------------------
  37.  * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
  38.  *============================================================================
  39.  ****************************************************************************/
  40. #ifndef  _BT_HCI_FT_H_
  41. #define  _BT_HCI_FT_H_
  42. #include <vcl.h>
  43. #ifndef META_DLL_H
  44. #include "meta.h"
  45. #endif
  46. #ifndef  _MAN_HANDLE_H_
  47. #include "man_handle.h"
  48. #endif
  49. #ifndef  _METAAPP_COMMON_H_
  50. #include "metaapp_common.h"
  51. #endif
  52. #ifndef  _BT_COMMON_H_
  53. #include "bt_common.h"
  54. #endif
  55. #ifndef  _BT_PKT_COMMON_H_
  56. #include "bt_pkt_common.h"
  57. #endif
  58. /*---------------------------------------------------------------------------*/
  59. /*---------------------------------------------------------------------------*/
  60. class CBTHCIFT
  61. {
  62. private:
  63.      // common
  64. protected:
  65. public:
  66.    CBTHCIFT(void);
  67.    ~CBTHCIFT();
  68.    // reset
  69.    void  Reset_HCI_Command(BT_HCI_COMMAND &hci_cmd);
  70.    void  Compose_Reset_HCI_Command(BT_HCI_COMMAND &hci_cmd);
  71.    bool  DeCompose_Reset_HCI_Event(BT_HCI_EVENT hci_event);
  72.    // read BD address
  73.    void  Compose_Read_BD_Addr_HCI_Command(BT_HCI_COMMAND &hci_cmd);
  74.    bool  DeCompose_Read_BD_Addr_HCI_Event(BT_HCI_EVENT hci_event, S_BD_ADDR &bd_addr);
  75.    // enter test mode
  76.    void  Compose_Enter_Test_Mode_HCI_Command(BT_HCI_COMMAND &hci_cmd);
  77.    bool  DeCompose_Enter_Test_Mode_HCI_Event(BT_HCI_EVENT hci_event);
  78.    // scan enable
  79.    void  Compose_Scan_Enable_HCI_Command(BT_HCI_COMMAND &hci_cmd);
  80. //   void  Compose_Scan_Enable_HCI_Command2( BT_HCI_COMMAND &hci_cmd );
  81.    bool  DeCompose_Scan_Enable_HCI_Event(BT_HCI_EVENT hci_event);
  82.    void  Compose_Auto_Accept_HCI_Command(BT_HCI_COMMAND &hci_cmd);
  83.    bool  DeCompose_Auto_Accept_HCI_Event(BT_HCI_EVENT hci_event);
  84. //   bool  DeCompose_Scan_Enable_HCI_Event2( BT_HCI_EVENT &hci_event );
  85.    // ACL connect
  86.    void  Compose_ACL_Connect_HCI_Command(S_BD_ADDR &bd_addr, BT_HCI_COMMAND &hci_cmd);
  87.    bool  DeCompose_ACL_Connect_HCI_Event1(BT_HCI_EVENT hci_event);
  88.    bool  DeCompose_ACL_Connect_HCI_Event2(BT_HCI_EVENT hci_event, S_BD_ADDR &bd_addr, unsigned char &h1, unsigned char &h2 );
  89.    bool  DeCompose_ACL_Connect_HCI_Event3(BT_HCI_EVENT hci_event, unsigned char &h1, unsigned char &h2 );
  90.    bool  DeCompose_ACL_Connect_HCI_Event4(BT_HCI_EVENT hci_event, unsigned char &h1, unsigned char &h2 );
  91.    void  Compose_TCI_Activate_Remote_DUT_HCI_Command(unsigned char h1, unsigned char h2, BT_HCI_COMMAND &hci_cmd );
  92.    bool  DeCompose_TCI_Activate_Remote_DUT_HCI_Event1(BT_HCI_EVENT hci_event);
  93.    bool  DeCompose_TCI_Activate_Remote_DUT_HCI_Event2(BT_HCI_EVENT hci_event);
  94.    void  Compose_TCI_Control_Remote_DUT_HCI_Command(unsigned char h1,
  95.                                                           unsigned char h2,
  96.                                                           S_BT_PKT_TCI req,
  97.                                                           BT_HCI_COMMAND &hci_cmd );
  98.    bool  DeCompose_TCI_Control_Remote_DUT_HCI_Event1(BT_HCI_EVENT hci_event);
  99.    bool  DeCompose_TCI_Control_Remote_DUT_HCI_Event2(BT_HCI_EVENT hci_event);
  100.    void  Compose_Read_TX_RX_Count_HCI_Command(BT_HCI_COMMAND &hci_cmd);
  101.    bool  DeCompose_Read_TX_RX_Count_HCI_Event(BT_HCI_EVENT hci_event, S_BT_PKT_MONITOR_TXRX_CNF &monitor);
  102.    void  Compose_Read_EDR_TX_RX_Count_HCI_Command(BT_HCI_COMMAND &hci_cmd);
  103.    bool  DeCompose_Read_EDR_TX_RX_Count_HCI_Event(BT_HCI_EVENT hci_event, S_BT_PKT_MONITOR_TXRX_CNF &monitor);
  104. };
  105. /*---------------------------------------------------------------------------*/
  106. #endif