Home | History | Annotate | Download | only in include
      1 /******************************************************************************
      2  *
      3  *  Copyright (C) 1999-2012 Broadcom Corporation
      4  *
      5  *  Licensed under the Apache License, Version 2.0 (the "License");
      6  *  you may not use this file except in compliance with the License.
      7  *  You may obtain a copy of the License at:
      8  *
      9  *  http://www.apache.org/licenses/LICENSE-2.0
     10  *
     11  *  Unless required by applicable law or agreed to in writing, software
     12  *  distributed under the License is distributed on an "AS IS" BASIS,
     13  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14  *  See the License for the specific language governing permissions and
     15  *  limitations under the License.
     16  *
     17  ******************************************************************************/
     18 
     19 #ifndef BT_TYPES_H
     20 #define BT_TYPES_H
     21 
     22 #include "data_types.h"
     23 #include "nfc_types.h"
     24 
     25 #define SCR_PROTO_TRACE_NCI 0x00004000
     26 #define SCR_PROTO_TRACE_ALL 0x001fffff
     27 #define SCR_PROTO_TRACE_HCI_SUMMARY 0x00000001
     28 
     29 #define TRACE_LAYER_NONE 0x00000000
     30 #define TRACE_LAYER_HCI 0x00070000
     31 #define TRACE_LAYER_GKI 0x001a0000
     32 #define TRACE_LAYER_NFC 0x00270000
     33 /*it's overwritten in nfc_types.h*/
     34 #define TRACE_LAYER_NCI 0x00280000
     35 #define TRACE_LAYER_LLCP 0x00290000
     36 #define TRACE_LAYER_NDEF 0x002a0000
     37 #define TRACE_LAYER_RW 0x002b0000
     38 #define TRACE_LAYER_CE 0x002c0000
     39 #define TRACE_LAYER_P2P 0x002d0000
     40 #define TRACE_LAYER_NFA 0x00300000
     41 /*it's overwritten in nfc_types.h*/
     42 #define TRACE_LAYER_HAL 0x00310000
     43 #define TRACE_LAYER_MAX_NUM 0x0032
     44 
     45 /* NCI Command, Notification or Data*/
     46 #define BT_EVT_TO_NFC_NCI 0x4000
     47 #define BT_EVT_TO_NFC_NCI_VS 0x4200 /* Vendor specific message */
     48 /* messages between NFC and NCI task */
     49 #define BT_EVT_TO_NFC_MSGS 0x4300
     50 
     51 /* start timer */
     52 #define BT_EVT_TO_START_TIMER 0x3c00
     53 
     54 /* stop timer */
     55 #define BT_EVT_TO_STOP_TIMER 0x3d00
     56 
     57 /* start quick timer */
     58 #define BT_EVT_TO_START_QUICK_TIMER 0x3e00
     59 
     60 #define TRACE_ORG_APPL 0x00000500
     61 
     62 #define DEV_CLASS_LEN 3
     63 typedef uint8_t DEV_CLASS[DEV_CLASS_LEN]; /* Device class */
     64 
     65 #define BD_ADDR_LEN 6                 /* Device address length */
     66 typedef uint8_t BD_ADDR[BD_ADDR_LEN]; /* Device address */
     67 #endif
     68