Android Hardware Abstraction Layer
Data Structures | Typedefs | Enumerations | Functions
bt_hci_lib.h File Reference
#include <stdint.h>
#include <sys/cdefs.h>
#include <sys/types.h>

Go to the source code of this file.

Data Structures

struct  bt_hc_callbacks_t
 
struct  bt_hc_interface_t
 

Typedefs

typedef void * TRANSAC
 
typedef void(* hostwake_ind_cb )(bt_hc_low_power_event_t event)
 
typedef void(* preload_result_cb )(TRANSAC transac, bt_hc_preload_result_t result)
 
typedef void(* postload_result_cb )(TRANSAC transac, bt_hc_postload_result_t result)
 
typedef void(* lpm_result_cb )(bt_hc_lpm_request_result_t result)
 
typedef char *(* alloc_mem_cb )(int size)
 
typedef int(* dealloc_mem_cb )(TRANSAC transac, char *p_buf)
 
typedef int(* tx_result_cb )(TRANSAC transac, char *p_buf, bt_hc_transmit_result_t result)
 
typedef int(* data_ind_cb )(TRANSAC transac, char *p_buf, int len)
 

Enumerations

enum  bt_hc_chip_power_state_t { BT_HC_CHIP_PWR_OFF, BT_HC_CHIP_PWR_ON }
 
enum  bt_hc_low_power_event_t { BT_HC_LPM_DISABLE, BT_HC_LPM_ENABLE, BT_HC_LPM_WAKE_ASSERT, BT_HC_LPM_WAKE_DEASSERT }
 
enum  bt_rx_flow_state_t { BT_RXFLOW_OFF, BT_RXFLOW_ON }
 
enum  bt_hc_logging_state_t { BT_HC_LOGGING_OFF, BT_HC_LOGGING_ON }
 
enum  bt_hc_transmit_result_t { BT_HC_TX_SUCCESS, BT_HC_TX_FAIL, BT_HC_TX_FRAGMENT }
 
enum  bt_hc_preload_result_t { BT_HC_PRELOAD_SUCCESS, BT_HC_PRELOAD_FAIL }
 
enum  bt_hc_postload_result_t { BT_HC_POSTLOAD_SUCCESS, BT_HC_POSTLOAD_FAIL }
 
enum  bt_hc_lpm_request_result_t { BT_HC_LPM_DISABLED, BT_HC_LPM_ENABLED }
 
enum  bt_hc_status_t {
  BT_HC_STATUS_SUCCESS, BT_HC_STATUS_FAIL, BT_HC_STATUS_NOT_READY, BT_HC_STATUS_NOMEM,
  BT_HC_STATUS_BUSY, BT_HC_STATUS_CORRUPTED_BUFFER
}
 

Functions

const bt_hc_interface_tbt_hc_get_interface (void)
 

Typedef Documentation

typedef char*(* alloc_mem_cb)(int size)

Definition at line 115 of file bt_hci_lib.h.

typedef int(* data_ind_cb)(TRANSAC transac, char *p_buf, int len)

Definition at line 125 of file bt_hci_lib.h.

typedef int(* dealloc_mem_cb)(TRANSAC transac, char *p_buf)

Definition at line 118 of file bt_hci_lib.h.

typedef void(* hostwake_ind_cb)(bt_hc_low_power_event_t event)

Definition at line 103 of file bt_hci_lib.h.

typedef void(* lpm_result_cb)(bt_hc_lpm_request_result_t result)

Definition at line 112 of file bt_hci_lib.h.

typedef void(* postload_result_cb)(TRANSAC transac, bt_hc_postload_result_t result)

Definition at line 109 of file bt_hci_lib.h.

typedef void(* preload_result_cb)(TRANSAC transac, bt_hc_preload_result_t result)

Definition at line 106 of file bt_hci_lib.h.

typedef void* TRANSAC

Struct types Typedefs and defines

Definition at line 32 of file bt_hci_lib.h.

typedef int(* tx_result_cb)(TRANSAC transac, char *p_buf, bt_hc_transmit_result_t result)

Definition at line 121 of file bt_hci_lib.h.

Enumeration Type Documentation

Bluetooth Power Control States

Enumerator
BT_HC_CHIP_PWR_OFF 
BT_HC_CHIP_PWR_ON 

Definition at line 35 of file bt_hci_lib.h.

HCI logging control

Enumerator
BT_HC_LOGGING_OFF 
BT_HC_LOGGING_ON 

Definition at line 55 of file bt_hci_lib.h.

Bluetooth Low Power Mode

Enumerator
BT_HC_LPM_DISABLE 
BT_HC_LPM_ENABLE 
BT_HC_LPM_WAKE_ASSERT 
BT_HC_LPM_WAKE_DEASSERT 

Definition at line 41 of file bt_hci_lib.h.

Result of low power enable/disable request

Enumerator
BT_HC_LPM_DISABLED 
BT_HC_LPM_ENABLED 

Definition at line 80 of file bt_hci_lib.h.

Result of postload initialization

Enumerator
BT_HC_POSTLOAD_SUCCESS 
BT_HC_POSTLOAD_FAIL 

Definition at line 74 of file bt_hci_lib.h.

Result of preload initialization

Enumerator
BT_HC_PRELOAD_SUCCESS 
BT_HC_PRELOAD_FAIL 

Definition at line 68 of file bt_hci_lib.h.

Host/Controller Library Return Status

Enumerator
BT_HC_STATUS_SUCCESS 
BT_HC_STATUS_FAIL 
BT_HC_STATUS_NOT_READY 
BT_HC_STATUS_NOMEM 
BT_HC_STATUS_BUSY 
BT_HC_STATUS_CORRUPTED_BUFFER 

Definition at line 86 of file bt_hci_lib.h.

Result of write request

Enumerator
BT_HC_TX_SUCCESS 
BT_HC_TX_FAIL 
BT_HC_TX_FRAGMENT 

Definition at line 61 of file bt_hci_lib.h.

Receive flow control

Enumerator
BT_RXFLOW_OFF 
BT_RXFLOW_ON 

Definition at line 49 of file bt_hci_lib.h.

Function Documentation

const bt_hc_interface_t* bt_hc_get_interface ( void  )