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

Go to the source code of this file.

Data Structures

struct  btgatt_value_t
 
union  btgatt_response_t
 
struct  btgatt_server_callbacks_t
 
struct  btgatt_server_interface_t
 

Typedefs

typedef void(* register_server_callback )(int status, int server_if, bt_uuid_t *app_uuid)
 
typedef void(* connection_callback )(int conn_id, int server_if, int connected, bt_bdaddr_t *bda)
 
typedef void(* service_added_callback )(int status, int server_if, btgatt_srvc_id_t *srvc_id, int srvc_handle)
 
typedef void(* included_service_added_callback )(int status, int server_if, int srvc_handle, int incl_srvc_handle)
 
typedef void(* characteristic_added_callback )(int status, int server_if, bt_uuid_t *uuid, int srvc_handle, int char_handle)
 
typedef void(* descriptor_added_callback )(int status, int server_if, bt_uuid_t *uuid, int srvc_handle, int descr_handle)
 
typedef void(* service_started_callback )(int status, int server_if, int srvc_handle)
 
typedef void(* service_stopped_callback )(int status, int server_if, int srvc_handle)
 
typedef void(* service_deleted_callback )(int status, int server_if, int srvc_handle)
 
typedef void(* request_read_callback )(int conn_id, int trans_id, bt_bdaddr_t *bda, int attr_handle, int offset, bool is_long)
 
typedef void(* request_write_callback )(int conn_id, int trans_id, bt_bdaddr_t *bda, int attr_handle, int offset, int length, bool need_rsp, bool is_prep, uint8_t *value)
 
typedef void(* request_exec_write_callback )(int conn_id, int trans_id, bt_bdaddr_t *bda, int exec_write)
 
typedef void(* response_confirmation_callback )(int status, int handle)
 

Typedef Documentation

typedef void(* characteristic_added_callback)(int status, int server_if, bt_uuid_t *uuid, int srvc_handle, int char_handle)

Callback invoked when a characteristic has been added to a service

Definition at line 63 of file bt_gatt_server.h.

typedef void(* connection_callback)(int conn_id, int server_if, int connected, bt_bdaddr_t *bda)

Callback indicating that a remote device has connected or been disconnected

Definition at line 51 of file bt_gatt_server.h.

typedef void(* descriptor_added_callback)(int status, int server_if, bt_uuid_t *uuid, int srvc_handle, int descr_handle)

Callback invoked when a descriptor has been added to a characteristic

Definition at line 67 of file bt_gatt_server.h.

typedef void(* included_service_added_callback)(int status, int server_if, int srvc_handle, int incl_srvc_handle)

Callback indicating that an included service has been added to a service

Definition at line 59 of file bt_gatt_server.h.

typedef void(* register_server_callback)(int status, int server_if, bt_uuid_t *app_uuid)

BT-GATT Server callback structure. Callback invoked in response to register_server

Definition at line 47 of file bt_gatt_server.h.

typedef void(* request_exec_write_callback)(int conn_id, int trans_id, bt_bdaddr_t *bda, int exec_write)

Callback invoked when a previously prepared write is to be executed

Definition at line 98 of file bt_gatt_server.h.

typedef void(* request_read_callback)(int conn_id, int trans_id, bt_bdaddr_t *bda, int attr_handle, int offset, bool is_long)

Callback invoked when a remote device has requested to read a characteristic or descriptor. The application must respond by calling send_response

Definition at line 86 of file bt_gatt_server.h.

typedef void(* request_write_callback)(int conn_id, int trans_id, bt_bdaddr_t *bda, int attr_handle, int offset, int length, bool need_rsp, bool is_prep, uint8_t *value)

Callback invoked when a remote device has requested to write to a characteristic or descriptor.

Definition at line 93 of file bt_gatt_server.h.

typedef void(* response_confirmation_callback)(int status, int handle)

Callback triggered in response to send_response if the remote device sends a confirmation.

Definition at line 105 of file bt_gatt_server.h.

typedef void(* service_added_callback)(int status, int server_if, btgatt_srvc_id_t *srvc_id, int srvc_handle)

Callback invoked in response to create_service

Definition at line 55 of file bt_gatt_server.h.

typedef void(* service_deleted_callback)(int status, int server_if, int srvc_handle)

Callback triggered when a service has been deleted

Definition at line 79 of file bt_gatt_server.h.

typedef void(* service_started_callback)(int status, int server_if, int srvc_handle)

Callback invoked in response to start_service

Definition at line 71 of file bt_gatt_server.h.

typedef void(* service_stopped_callback)(int status, int server_if, int srvc_handle)

Callback invoked in response to stop_service

Definition at line 75 of file bt_gatt_server.h.