1 /****************************************************************************** 2 * 3 * Copyright 2009-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 /****************************************************************************** 20 * 21 * Filename: bt_hci_bdroid.h 22 * 23 * Description: A wrapper header file of bt_hci_lib.h 24 * 25 * Contains definitions specific for interfacing with Bluedroid 26 * Bluetooth stack 27 * 28 ******************************************************************************/ 29 30 #pragma once 31 32 #ifdef HAS_BDROID_BUILDCFG 33 #include "bdroid_buildcfg.h" 34 #endif 35 36 #pragma message "This header file bt_hci_bdroid.h is no longer supported" 37 #pragma message "Please update to remove these declarations" 38 39 /****************************************************************************** 40 * Constants & Macros 41 *****************************************************************************/ 42 43 #include <stdbool.h> 44 #include <stdint.h> 45 46 #define MSG_STACK_TO_HC_HCI_CMD 0x2000 /* eq. BT_EVT_TO_LM_HCI_CMD */ 47 48 typedef struct { 49 uint16_t event; 50 uint16_t len; 51 uint16_t offset; 52 uint16_t layer_specific; 53 uint8_t data[]; 54 } HC_BT_HDR; 55 56 #define BT_HC_HDR_SIZE (sizeof(HC_BT_HDR)) 57