Android Hardware Abstraction Layer
Data Structures | Typedefs | Enumerations | Variables
bt_vendor_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_vendor_callbacks_t
 
struct  bt_vendor_interface_t
 

Typedefs

typedef void(* cfg_result_cb )(bt_vendor_op_result_t result)
 
typedef void *(* malloc_cb )(int size)
 
typedef void(* mdealloc_cb )(void *p_buf)
 
typedef void(* tINT_CMD_CBACK )(void *p_mem)
 
typedef uint8_t(* cmd_xmit_cb )(uint16_t opcode, void *p_buf, tINT_CMD_CBACK p_cback)
 

Enumerations

enum  bt_vendor_opcode_t {
  BT_VND_OP_POWER_CTRL, BT_VND_OP_FW_CFG, BT_VND_OP_SCO_CFG, BT_VND_OP_USERIAL_OPEN,
  BT_VND_OP_USERIAL_CLOSE, BT_VND_OP_GET_LPM_IDLE_TIMEOUT, BT_VND_OP_LPM_SET_MODE, BT_VND_OP_LPM_WAKE_SET_STATE,
  BT_VND_OP_EPILOG
}
 
enum  bt_vendor_power_state_t { BT_VND_PWR_OFF, BT_VND_PWR_ON }
 
enum  bt_vendor_hci_channels_t {
  CH_CMD, CH_EVT, CH_ACL_OUT, CH_ACL_IN,
  CH_MAX
}
 
enum  bt_vendor_lpm_mode_t { BT_VND_LPM_DISABLE, BT_VND_LPM_ENABLE }
 
enum  bt_vendor_lpm_wake_state_t { BT_VND_LPM_WAKE_ASSERT, BT_VND_LPM_WAKE_DEASSERT }
 
enum  bt_vendor_op_result_t { BT_VND_OP_RESULT_SUCCESS, BT_VND_OP_RESULT_FAIL }
 

Variables

const bt_vendor_interface_t BLUETOOTH_VENDOR_LIB_INTERFACE
 

Typedef Documentation

typedef void(* cfg_result_cb)(bt_vendor_op_result_t result)

Definition at line 201 of file bt_vendor_lib.h.

typedef uint8_t(* cmd_xmit_cb)(uint16_t opcode, void *p_buf, tINT_CMD_CBACK p_cback)

Definition at line 269 of file bt_vendor_lib.h.

typedef void*(* malloc_cb)(int size)

Definition at line 241 of file bt_vendor_lib.h.

typedef void(* mdealloc_cb)(void *p_buf)

Definition at line 244 of file bt_vendor_lib.h.

typedef void(* tINT_CMD_CBACK)(void *p_mem)

Definition at line 252 of file bt_vendor_lib.h.

Enumeration Type Documentation

Define HCI channel identifier in the file descriptors array used in BT_VND_OP_USERIAL_OPEN operation.

Enumerator
CH_CMD 
CH_EVT 
CH_ACL_OUT 
CH_ACL_IN 
CH_MAX 

Definition at line 169 of file bt_vendor_lib.h.

LPM disable/enable request

Enumerator
BT_VND_LPM_DISABLE 
BT_VND_LPM_ENABLE 

Definition at line 179 of file bt_vendor_lib.h.

LPM WAKE set state request

Enumerator
BT_VND_LPM_WAKE_ASSERT 
BT_VND_LPM_WAKE_DEASSERT 

Definition at line 185 of file bt_vendor_lib.h.

Callback result values

Enumerator
BT_VND_OP_RESULT_SUCCESS 
BT_VND_OP_RESULT_FAIL 

Definition at line 191 of file bt_vendor_lib.h.

Struct types Typedefs and defines Vendor specific operations OPCODE

Enumerator
BT_VND_OP_POWER_CTRL 
BT_VND_OP_FW_CFG 
BT_VND_OP_SCO_CFG 
BT_VND_OP_USERIAL_OPEN 
BT_VND_OP_USERIAL_CLOSE 
BT_VND_OP_GET_LPM_IDLE_TIMEOUT 
BT_VND_OP_LPM_SET_MODE 
BT_VND_OP_LPM_WAKE_SET_STATE 
BT_VND_OP_EPILOG 

Definition at line 32 of file bt_vendor_lib.h.

Power on/off control states

Enumerator
BT_VND_PWR_OFF 
BT_VND_PWR_ON 

Definition at line 161 of file bt_vendor_lib.h.

Variable Documentation

const bt_vendor_interface_t BLUETOOTH_VENDOR_LIB_INTERFACE