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 HCI_ACL_MAX_SIZE   1024
 
#define HCI_MAX_FRAME_SIZE   (HCI_ACL_MAX_SIZE + 4)
 
#define MSG_CTRL_TO_HC_CMD   0x0100 /* evt mask used by HC_EVENT_TX_CMD */
 
#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 SCO_CODEC_NONE   0x0000 /* BTA_AG_CODEC_NONE/BTM_SCO_CODEC_NONE */
 
#define SCO_CODEC_CVSD   0x0001 /* BTA_AG_CODEC_CVSD/BTM_SCO_CODEC_CVSD */
 
#define SCO_CODEC_MSBC   0x0002 /* BTA_AG_CODEC_MSBC/BTM_SCO_CODEC_MSBC */
 
#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
 

Enumerations

enum  bthc_event_t { HC_EVENT_LPM_IDLE_TIMEOUT }
 

Functions

void bthc_rx_ready (void)
 
void bthc_tx (HC_BT_HDR *buf)
 
void bthc_idle_timeout (void)
 

Variables

bt_hc_callbacks_tbt_hc_cbacks
 

Macro Definition Documentation

#define BT_HC_BUFFER_HDR_SIZE   (sizeof(HC_BUFFER_HDR_T))

Definition at line 119 of file bt_hci_bdroid.h.

#define BT_HC_HDR_SIZE   (sizeof(HC_BT_HDR))

Definition at line 108 of file bt_hci_bdroid.h.

#define FALSE   0

Definition at line 44 of file bt_hci_bdroid.h.

#define HCI_ACL_MAX_SIZE   1024

Definition at line 59 of file bt_hci_bdroid.h.

#define HCI_MAX_FRAME_SIZE   (HCI_ACL_MAX_SIZE + 4)

Definition at line 60 of file bt_hci_bdroid.h.

#define LOCAL_BR_EDR_CONTROLLER_ID   0

Definition at line 86 of file bt_hci_bdroid.h.

#define MSG_CTRL_TO_HC_CMD   0x0100 /* evt mask used by HC_EVENT_TX_CMD */

Definition at line 67 of file bt_hci_bdroid.h.

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

Definition at line 70 of file bt_hci_bdroid.h.

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

Definition at line 75 of file bt_hci_bdroid.h.

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

Definition at line 74 of file bt_hci_bdroid.h.

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

Definition at line 77 of file bt_hci_bdroid.h.

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

Definition at line 76 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 78 of file bt_hci_bdroid.h.

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

Definition at line 81 of file bt_hci_bdroid.h.

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

Definition at line 83 of file bt_hci_bdroid.h.

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

Definition at line 82 of file bt_hci_bdroid.h.

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

Definition at line 71 of file bt_hci_bdroid.h.

#define SCO_CODEC_CVSD   0x0001 /* BTA_AG_CODEC_CVSD/BTM_SCO_CODEC_CVSD */

Definition at line 92 of file bt_hci_bdroid.h.

#define SCO_CODEC_MSBC   0x0002 /* BTA_AG_CODEC_MSBC/BTM_SCO_CODEC_MSBC */

Definition at line 93 of file bt_hci_bdroid.h.

#define SCO_CODEC_NONE   0x0000 /* BTA_AG_CODEC_NONE/BTM_SCO_CODEC_NONE */

Definition at line 91 of file bt_hci_bdroid.h.

#define TRUE   (!FALSE)

Definition at line 47 of file bt_hci_bdroid.h.

Typedef Documentation

Enumeration Type Documentation

Enumerator
HC_EVENT_LPM_IDLE_TIMEOUT 

Definition at line 63 of file bt_hci_bdroid.h.

Function Documentation

void bthc_idle_timeout ( void  )
void bthc_rx_ready ( void  )
void bthc_tx ( HC_BT_HDR buf)

Variable Documentation

bt_hc_callbacks_t* bt_hc_cbacks