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

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_pkt_common.h
  15.  *
  16.  * Project:
  17.  * --------
  18.  *   Maui META APP
  19.  *
  20.  * Description:
  21.  * ------------
  22.  *   BT packet test common 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_PKT_COMMON_H_
  41. #define  _BT_PKT_COMMON_H_
  42. #include <vcl.h>
  43. // common
  44. // BT
  45. #ifndef  _BT_COMMON_H_
  46. #include "bt_common.h"
  47. #endif
  48. /*---------------------------------------------------------------------------*/
  49. typedef enum
  50. {
  51.     BT_PACKET_IDX_DM1=0,
  52.     BT_PACKET_IDX_DH1,
  53.     BT_PACKET_IDX_DM3,
  54.     BT_PACKET_IDX_DH3,
  55.     BT_PACKET_IDX_DM5,
  56.     BT_PACKET_IDX_DH5,
  57.     BT_PACKET_IDX_HV1,
  58.     BT_PACKET_IDX_HV2,
  59.     BT_PACKET_IDX_HV3,
  60.     BT_PACKET_IDX_EV3,
  61.     BT_PACKET_IDX_EV4,
  62.     BT_PACKET_IDX_EV5,
  63.     BT_PACKET_IDX_NONEDR_COUNT,
  64.     // BT 2.0
  65.     BT_PACKET_IDX_2DH1 = BT_PACKET_IDX_NONEDR_COUNT,
  66.     BT_PACKET_IDX_2EV3,
  67.     BT_PACKET_IDX_2DH3,
  68.     BT_PACKET_IDX_2EV5,
  69.     BT_PACKET_IDX_2DH5,
  70.     BT_PACKET_IDX_3EV3,
  71.     BT_PACKET_IDX_3DH1,
  72.     BT_PACKET_IDX_3DH3,
  73.     BT_PACKET_IDX_3EV5,
  74.     BT_PACKET_IDX_3DH5,
  75.     BT_PACKET_IDX_COUNT
  76. }E_BT_PACKET_IDX;
  77. //typedef enum
  78. //{
  79. //    BT_ACL_P1_DM1=0x00,
  80. //    BT_ACL_P1_DH1=0x00,
  81. //    BT_ACL_P1_DM3=0x04,
  82. //    BT_ACL_P1_DH3=0x08,
  83. //    BT_ACL_P1_DM5=0x40,
  84. //    BT_ACL_P1_DH5=0x80,
  85. //    BT_ACL_P1_HV1=0x00,
  86. //    BT_ACL_P1_HV2=0x00,
  87. //    BT_ACL_P1_HV3=0x00,
  88. //    BT_ACL_P1_EV3=0x01,
  89. //    BT_ACL_P1_EV4=0x10,
  90. //    BT_ACL_P1_EV5=0x20
  91. //}E_BT_ACL_P1;
  92. //typedef enum
  93. //{
  94. //    BT_ACL_P2_DM1=0x08,
  95. //    BT_ACL_P2_DH1=0x10,
  96. //    BT_ACL_P2_DM3=0x00,
  97. //    BT_ACL_P2_DH3=0x00,
  98. //    BT_ACL_P2_DM5=0x00,
  99. //    BT_ACL_P2_DH5=0x00,
  100. //    BT_ACL_P2_HV1=0x20,
  101. //    BT_ACL_P2_HV2=0x04,
  102. //    BT_ACL_P2_HV3=0x80,
  103. //    BT_ACL_P2_EV3=0x80,
  104. //    BT_ACL_P2_EV4=0x00,
  105. //    BT_ACL_P2_EV5=0x00
  106. //}E_BT_ACL_P2;
  107. //typedef enum
  108. //{
  109. //    BT_SCO_HV1=0x01,
  110. //    BT_SCO_HV2=0x02,
  111. //    BT_SCO_HV3=0x04,
  112. //    BT_SCO_EV3=0x08,
  113. //    BT_SCO_EV4=0x10,
  114. //    BT_SCO_EV5=0x20,
  115. //    BT_SCO_UNKNOWN
  116. //}E_BT_SCO;
  117. typedef struct
  118. {
  119.     E_BT_PACKET_IDX e_idx;
  120.     unsigned int   ui_packet_count;
  121.     unsigned char uc_poll_period;
  122.     unsigned short us_packet_length;
  123. }S_BT_PKT_TCI;
  124. typedef struct
  125. {
  126.     unsigned int ui_rx_pkt_count[BT_PACKET_IDX_COUNT];
  127.     unsigned int ui_tx_pkt_count[BT_PACKET_IDX_COUNT];
  128. }S_BT_PKT_MONITOR_TXRX_CNF;
  129. typedef struct
  130. {
  131.    S_BT_PKT_MONITOR_TXRX_CNF s_tester_monitor;
  132.    S_BT_PKT_MONITOR_TXRX_CNF s_dut_monitor;
  133. }S_BT_PKT_MONITOR_CNF;
  134. #endif