Android Hardware Abstraction Layer
Data Structures | Macros | Typedefs
bt_gatt_client.h File Reference
#include <stdint.h>
#include "bt_gatt_types.h"

Go to the source code of this file.

Data Structures

struct  btgatt_unformatted_value_t
 
struct  btgatt_read_params_t
 
struct  btgatt_write_params_t
 
struct  btgatt_notify_params_t
 
struct  btgatt_test_params_t
 
struct  btgatt_client_callbacks_t
 
struct  btgatt_client_interface_t
 

Macros

#define BTGATT_MAX_ATTR_LEN   600
 

Typedefs

typedef void(* register_client_callback )(int status, int client_if, bt_uuid_t *app_uuid)
 
typedef void(* scan_result_callback )(bt_bdaddr_t *bda, int rssi, uint8_t *adv_data)
 
typedef void(* connect_callback )(int conn_id, int status, int client_if, bt_bdaddr_t *bda)
 
typedef void(* disconnect_callback )(int conn_id, int status, int client_if, bt_bdaddr_t *bda)
 
typedef void(* search_complete_callback )(int conn_id, int status)
 
typedef void(* search_result_callback )(int conn_id, btgatt_srvc_id_t *srvc_id)
 
typedef void(* get_characteristic_callback )(int conn_id, int status, btgatt_srvc_id_t *srvc_id, btgatt_gatt_id_t *char_id, int char_prop)
 
typedef void(* get_descriptor_callback )(int conn_id, int status, btgatt_srvc_id_t *srvc_id, btgatt_gatt_id_t *char_id, btgatt_gatt_id_t *descr_id)
 
typedef void(* get_included_service_callback )(int conn_id, int status, btgatt_srvc_id_t *srvc_id, btgatt_srvc_id_t *incl_srvc_id)
 
typedef void(* register_for_notification_callback )(int conn_id, int registered, int status, btgatt_srvc_id_t *srvc_id, btgatt_gatt_id_t *char_id)
 
typedef void(* notify_callback )(int conn_id, btgatt_notify_params_t *p_data)
 
typedef void(* read_characteristic_callback )(int conn_id, int status, btgatt_read_params_t *p_data)
 
typedef void(* write_characteristic_callback )(int conn_id, int status, btgatt_write_params_t *p_data)
 
typedef void(* execute_write_callback )(int conn_id, int status)
 
typedef void(* read_descriptor_callback )(int conn_id, int status, btgatt_read_params_t *p_data)
 
typedef void(* write_descriptor_callback )(int conn_id, int status, btgatt_write_params_t *p_data)
 
typedef void(* read_remote_rssi_callback )(int client_if, bt_bdaddr_t *bda, int rssi, int status)
 
typedef void(* listen_callback )(int status, int server_if)
 

Macro Definition Documentation

#define BTGATT_MAX_ATTR_LEN   600

Buffer sizes for maximum attribute length and maximum read/write operation buffer size.

Definition at line 30 of file bt_gatt_client.h.

Typedef Documentation

typedef void(* connect_callback)(int conn_id, int status, int client_if, bt_bdaddr_t *bda)

GATT open callback invoked in response to open

Definition at line 91 of file bt_gatt_client.h.

typedef void(* disconnect_callback)(int conn_id, int status, int client_if, bt_bdaddr_t *bda)

Callback invoked in response to close

Definition at line 94 of file bt_gatt_client.h.

typedef void(* execute_write_callback)(int conn_id, int status)

GATT execute prepared write callback

Definition at line 140 of file bt_gatt_client.h.

typedef void(* get_characteristic_callback)(int conn_id, int status, btgatt_srvc_id_t *srvc_id, btgatt_gatt_id_t *char_id, int char_prop)

GATT characteristic enumeration result callback

Definition at line 107 of file bt_gatt_client.h.

typedef void(* get_descriptor_callback)(int conn_id, int status, btgatt_srvc_id_t *srvc_id, btgatt_gatt_id_t *char_id, btgatt_gatt_id_t *descr_id)

GATT descriptor enumeration result callback

Definition at line 112 of file bt_gatt_client.h.

typedef void(* get_included_service_callback)(int conn_id, int status, btgatt_srvc_id_t *srvc_id, btgatt_srvc_id_t *incl_srvc_id)

GATT included service enumeration result callback

Definition at line 117 of file bt_gatt_client.h.

typedef void(* listen_callback)(int status, int server_if)

Callback indicationg the status of a listen() operation

Definition at line 157 of file bt_gatt_client.h.

typedef void(* notify_callback)(int conn_id, btgatt_notify_params_t *p_data)

Remote device notification callback, invoked when a remote device sends a notification or indication that a client has registered for.

Definition at line 129 of file bt_gatt_client.h.

typedef void(* read_characteristic_callback)(int conn_id, int status, btgatt_read_params_t *p_data)

Reports result of a GATT read operation

Definition at line 132 of file bt_gatt_client.h.

typedef void(* read_descriptor_callback)(int conn_id, int status, btgatt_read_params_t *p_data)

Callback invoked in response to read_descriptor

Definition at line 143 of file bt_gatt_client.h.

typedef void(* read_remote_rssi_callback)(int client_if, bt_bdaddr_t *bda, int rssi, int status)

Callback triggered in response to read_remote_rssi

Definition at line 151 of file bt_gatt_client.h.

typedef void(* register_client_callback)(int status, int client_if, bt_uuid_t *app_uuid)

BT-GATT Client callback structure. Callback invoked in response to register_client

Definition at line 84 of file bt_gatt_client.h.

typedef void(* register_for_notification_callback)(int conn_id, int registered, int status, btgatt_srvc_id_t *srvc_id, btgatt_gatt_id_t *char_id)

Callback invoked in response to [de]register_for_notification

Definition at line 121 of file bt_gatt_client.h.

typedef void(* scan_result_callback)(bt_bdaddr_t *bda, int rssi, uint8_t *adv_data)

Callback for scan results

Definition at line 88 of file bt_gatt_client.h.

typedef void(* search_complete_callback)(int conn_id, int status)

Invoked in response to search_service when the GATT service search has been completed.

Definition at line 101 of file bt_gatt_client.h.

typedef void(* search_result_callback)(int conn_id, btgatt_srvc_id_t *srvc_id)

Reports GATT services on a remote device

Definition at line 104 of file bt_gatt_client.h.

typedef void(* write_characteristic_callback)(int conn_id, int status, btgatt_write_params_t *p_data)

GATT write characteristic operation callback

Definition at line 136 of file bt_gatt_client.h.

typedef void(* write_descriptor_callback)(int conn_id, int status, btgatt_write_params_t *p_data)

Callback invoked in response to write_descriptor

Definition at line 147 of file bt_gatt_client.h.