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

Go to the source code of this file.

Data Structures

struct  btpan_callbacks_t
 
struct  btpan_interface_t
 

Macros

#define BTPAN_ROLE_NONE   0
 
#define BTPAN_ROLE_PANNAP   1
 
#define BTPAN_ROLE_PANU   2
 

Typedefs

typedef void(* btpan_connection_state_callback )(btpan_connection_state_t state, bt_status_t error, const bt_bdaddr_t *bd_addr, int local_role, int remote_role)
 
typedef void(* btpan_control_state_callback )(btpan_control_state_t state, bt_status_t error, int local_role, const char *ifname)
 

Enumerations

enum  btpan_connection_state_t { BTPAN_STATE_CONNECTED = 0, BTPAN_STATE_CONNECTING = 1, BTPAN_STATE_DISCONNECTED = 2, BTPAN_STATE_DISCONNECTING = 3 }
 
enum  btpan_control_state_t { BTPAN_STATE_ENABLED = 0, BTPAN_STATE_DISABLED = 1 }
 

Macro Definition Documentation

#define BTPAN_ROLE_NONE   0

Definition at line 22 of file bt_pan.h.

#define BTPAN_ROLE_PANNAP   1

Definition at line 23 of file bt_pan.h.

#define BTPAN_ROLE_PANU   2

Definition at line 24 of file bt_pan.h.

Typedef Documentation

typedef void(* btpan_connection_state_callback)(btpan_connection_state_t state, bt_status_t error, const bt_bdaddr_t *bd_addr, int local_role, int remote_role)

Callback for pan connection state

Definition at line 41 of file bt_pan.h.

typedef void(* btpan_control_state_callback)(btpan_control_state_t state, bt_status_t error, int local_role, const char *ifname)

Definition at line 43 of file bt_pan.h.

Enumeration Type Documentation

Enumerator
BTPAN_STATE_CONNECTED 
BTPAN_STATE_CONNECTING 
BTPAN_STATE_DISCONNECTED 
BTPAN_STATE_DISCONNECTING 

Definition at line 26 of file bt_pan.h.

Enumerator
BTPAN_STATE_ENABLED 
BTPAN_STATE_DISABLED 

Definition at line 33 of file bt_pan.h.