Android Hardware Abstraction Layer
Data Structures | Macros | Typedefs | Functions | Variables
bt_hci_bdroid.h File Reference
#include "bt_hci_lib.h"

Go to the source code of this file.

Data Structures

struct  HC_BT_HDR
 
struct  _hc_buffer_hdr
 

Macros

#define FALSE   0
 
#define TRUE   (!FALSE)
 
#define BTHC_LINUX_BASE_POLICY   SCHED_NORMAL
 
#define BTHC_USERIAL_READ_MEM_SIZE   (1024)
 
#define BTSNOOPDISP_INCLUDED   TRUE
 
#define BTSNOOP_EXT_PARSER_INCLUDED   FALSE
 
#define HC_EVENT_PRELOAD   0x0001
 
#define HC_EVENT_POSTLOAD   0x0002
 
#define HC_EVENT_RX   0x0004
 
#define HC_EVENT_TX   0x0008
 
#define HC_EVENT_LPM_ENABLE   0x0010
 
#define HC_EVENT_LPM_DISABLE   0x0020
 
#define HC_EVENT_LPM_WAKE_DEVICE   0x0040
 
#define HC_EVENT_LPM_ALLOW_SLEEP   0x0080
 
#define HC_EVENT_LPM_IDLE_TIMEOUT   0x0100
 
#define HC_EVENT_EXIT   0x0200
 
#define HC_EVENT_EPILOG   0x0400
 
#define MSG_EVT_MASK   0xFF00 /* eq. BT_EVT_MASK */
 
#define MSG_SUB_EVT_MASK   0x00FF /* eq. BT_SUB_EVT_MASK */
 
#define MSG_HC_TO_STACK_HCI_ERR   0x1300 /* eq. BT_EVT_TO_BTU_HCIT_ERR */
 
#define MSG_HC_TO_STACK_HCI_ACL   0x1100 /* eq. BT_EVT_TO_BTU_HCI_ACL */
 
#define MSG_HC_TO_STACK_HCI_SCO   0x1200 /* eq. BT_EVT_TO_BTU_HCI_SCO */
 
#define MSG_HC_TO_STACK_HCI_EVT   0x1000 /* eq. BT_EVT_TO_BTU_HCI_EVT */
 
#define MSG_HC_TO_STACK_L2C_SEG_XMIT   0x1900 /* eq. BT_EVT_TO_BTU_L2C_SEG_XMIT */
 
#define MSG_STACK_TO_HC_HCI_ACL   0x2100 /* eq. BT_EVT_TO_LM_HCI_ACL */
 
#define MSG_STACK_TO_HC_HCI_SCO   0x2200 /* eq. BT_EVT_TO_LM_HCI_SCO */
 
#define MSG_STACK_TO_HC_HCI_CMD   0x2000 /* eq. BT_EVT_TO_LM_HCI_CMD */
 
#define LOCAL_BR_EDR_CONTROLLER_ID   0
 
#define BT_HC_HDR_SIZE   (sizeof(HC_BT_HDR))
 
#define BT_HC_BUFFER_HDR_SIZE   (sizeof(HC_BUFFER_HDR_T))
 

Typedefs

typedef struct _hc_buffer_hdr HC_BUFFER_HDR_T
 

Functions

void bthc_signal_event (uint16_t event)
 

Variables

bt_hc_callbacks_tbt_hc_cbacks
 

Macro Definition Documentation

#define BT_HC_BUFFER_HDR_SIZE   (sizeof(HC_BUFFER_HDR_T))

Definition at line 134 of file bt_hci_bdroid.h.

#define BT_HC_HDR_SIZE   (sizeof(HC_BT_HDR))

Definition at line 122 of file bt_hci_bdroid.h.

#define BTHC_LINUX_BASE_POLICY   SCHED_NORMAL

Definition at line 48 of file bt_hci_bdroid.h.

#define BTHC_USERIAL_READ_MEM_SIZE   (1024)

Definition at line 66 of file bt_hci_bdroid.h.

#define BTSNOOP_EXT_PARSER_INCLUDED   FALSE

Definition at line 75 of file bt_hci_bdroid.h.

#define BTSNOOPDISP_INCLUDED   TRUE

Definition at line 70 of file bt_hci_bdroid.h.

#define FALSE   0

Definition at line 40 of file bt_hci_bdroid.h.

#define HC_EVENT_EPILOG   0x0400

Definition at line 89 of file bt_hci_bdroid.h.

#define HC_EVENT_EXIT   0x0200

Definition at line 88 of file bt_hci_bdroid.h.

#define HC_EVENT_LPM_ALLOW_SLEEP   0x0080

Definition at line 86 of file bt_hci_bdroid.h.

#define HC_EVENT_LPM_DISABLE   0x0020

Definition at line 84 of file bt_hci_bdroid.h.

#define HC_EVENT_LPM_ENABLE   0x0010

Definition at line 83 of file bt_hci_bdroid.h.

#define HC_EVENT_LPM_IDLE_TIMEOUT   0x0100

Definition at line 87 of file bt_hci_bdroid.h.

#define HC_EVENT_LPM_WAKE_DEVICE   0x0040

Definition at line 85 of file bt_hci_bdroid.h.

#define HC_EVENT_POSTLOAD   0x0002

Definition at line 80 of file bt_hci_bdroid.h.

#define HC_EVENT_PRELOAD   0x0001

Definition at line 79 of file bt_hci_bdroid.h.

#define HC_EVENT_RX   0x0004

Definition at line 81 of file bt_hci_bdroid.h.

#define HC_EVENT_TX   0x0008

Definition at line 82 of file bt_hci_bdroid.h.

#define LOCAL_BR_EDR_CONTROLLER_ID   0

Definition at line 108 of file bt_hci_bdroid.h.

#define MSG_EVT_MASK   0xFF00 /* eq. BT_EVT_MASK */

Definition at line 92 of file bt_hci_bdroid.h.

#define MSG_HC_TO_STACK_HCI_ACL   0x1100 /* eq. BT_EVT_TO_BTU_HCI_ACL */

Definition at line 97 of file bt_hci_bdroid.h.

#define MSG_HC_TO_STACK_HCI_ERR   0x1300 /* eq. BT_EVT_TO_BTU_HCIT_ERR */

Definition at line 96 of file bt_hci_bdroid.h.

#define MSG_HC_TO_STACK_HCI_EVT   0x1000 /* eq. BT_EVT_TO_BTU_HCI_EVT */

Definition at line 99 of file bt_hci_bdroid.h.

#define MSG_HC_TO_STACK_HCI_SCO   0x1200 /* eq. BT_EVT_TO_BTU_HCI_SCO */

Definition at line 98 of file bt_hci_bdroid.h.

#define MSG_HC_TO_STACK_L2C_SEG_XMIT   0x1900 /* eq. BT_EVT_TO_BTU_L2C_SEG_XMIT */

Definition at line 100 of file bt_hci_bdroid.h.

#define MSG_STACK_TO_HC_HCI_ACL   0x2100 /* eq. BT_EVT_TO_LM_HCI_ACL */

Definition at line 103 of file bt_hci_bdroid.h.

#define MSG_STACK_TO_HC_HCI_CMD   0x2000 /* eq. BT_EVT_TO_LM_HCI_CMD */

Definition at line 105 of file bt_hci_bdroid.h.

#define MSG_STACK_TO_HC_HCI_SCO   0x2200 /* eq. BT_EVT_TO_LM_HCI_SCO */

Definition at line 104 of file bt_hci_bdroid.h.

#define MSG_SUB_EVT_MASK   0x00FF /* eq. BT_SUB_EVT_MASK */

Definition at line 93 of file bt_hci_bdroid.h.

#define TRUE   (!FALSE)

Definition at line 44 of file bt_hci_bdroid.h.

Typedef Documentation

Function Documentation

void bthc_signal_event ( uint16_t  event)

Variable Documentation

bt_hc_callbacks_t* bt_hc_cbacks