Android Hardware Abstraction Layer
Data Structures | Typedefs | Enumerations
bt_hl.h File Reference

Go to the source code of this file.

Data Structures

struct  bthl_mdep_cfg_t
 
struct  bthl_reg_param_t
 
struct  bthl_callbacks_t
 
struct  bthl_interface_t
 

Typedefs

typedef void(* bthl_app_reg_state_callback )(int app_id, bthl_app_reg_state_t state)
 
typedef void(* bthl_channel_state_callback )(int app_id, bt_bdaddr_t *bd_addr, int mdep_cfg_index, int channel_id, bthl_channel_state_t state, int fd)
 

Enumerations

enum  bthl_mdep_role_t { BTHL_MDEP_ROLE_SOURCE, BTHL_MDEP_ROLE_SINK }
 
enum  bthl_app_reg_state_t { BTHL_APP_REG_STATE_REG_SUCCESS, BTHL_APP_REG_STATE_REG_FAILED, BTHL_APP_REG_STATE_DEREG_SUCCESS, BTHL_APP_REG_STATE_DEREG_FAILED }
 
enum  bthl_channel_type_t { BTHL_CHANNEL_TYPE_RELIABLE, BTHL_CHANNEL_TYPE_STREAMING, BTHL_CHANNEL_TYPE_ANY }
 
enum  bthl_channel_state_t {
  BTHL_CONN_STATE_CONNECTING, BTHL_CONN_STATE_CONNECTED, BTHL_CONN_STATE_DISCONNECTING, BTHL_CONN_STATE_DISCONNECTED,
  BTHL_CONN_STATE_DESTROYED
}
 

Typedef Documentation

typedef void(* bthl_app_reg_state_callback)(int app_id, bthl_app_reg_state_t state)

Callback for application registration status. state will have one of the values from bthl_app_reg_state_t

Definition at line 75 of file bt_hl.h.

typedef void(* bthl_channel_state_callback)(int app_id, bt_bdaddr_t *bd_addr, int mdep_cfg_index, int channel_id, bthl_channel_state_t state, int fd)

Callback for channel connection state change. state will have one of the values from bthl_connection_state_t and fd (file descriptor)

Definition at line 81 of file bt_hl.h.

Enumeration Type Documentation

Enumerator
BTHL_APP_REG_STATE_REG_SUCCESS 
BTHL_APP_REG_STATE_REG_FAILED 
BTHL_APP_REG_STATE_DEREG_SUCCESS 
BTHL_APP_REG_STATE_DEREG_FAILED 

Definition at line 30 of file bt_hl.h.

Enumerator
BTHL_CONN_STATE_CONNECTING 
BTHL_CONN_STATE_CONNECTED 
BTHL_CONN_STATE_DISCONNECTING 
BTHL_CONN_STATE_DISCONNECTED 
BTHL_CONN_STATE_DESTROYED 

Definition at line 46 of file bt_hl.h.

Enumerator
BTHL_CHANNEL_TYPE_RELIABLE 
BTHL_CHANNEL_TYPE_STREAMING 
BTHL_CHANNEL_TYPE_ANY 

Definition at line 37 of file bt_hl.h.

Enumerator
BTHL_MDEP_ROLE_SOURCE 
BTHL_MDEP_ROLE_SINK 

Definition at line 24 of file bt_hl.h.