Android Hardware Abstraction Layer
Data Fields
btgatt_server_interface_t Struct Reference

#include <bt_gatt_server.h>

Data Fields

bt_status_t(* register_server )(bt_uuid_t *uuid)
 
bt_status_t(* unregister_server )(int server_if)
 
bt_status_t(* connect )(int server_if, const bt_bdaddr_t *bd_addr, bool is_direct)
 
bt_status_t(* disconnect )(int server_if, const bt_bdaddr_t *bd_addr, int conn_id)
 
bt_status_t(* add_service )(int server_if, btgatt_srvc_id_t *srvc_id, int num_handles)
 
bt_status_t(* add_included_service )(int server_if, int service_handle, int included_handle)
 
bt_status_t(* add_characteristic )(int server_if, int service_handle, bt_uuid_t *uuid, int properties, int permissions)
 
bt_status_t(* add_descriptor )(int server_if, int service_handle, bt_uuid_t *uuid, int permissions)
 
bt_status_t(* start_service )(int server_if, int service_handle, int transport)
 
bt_status_t(* stop_service )(int server_if, int service_handle)
 
bt_status_t(* delete_service )(int server_if, int service_handle)
 
bt_status_t(* send_indication )(int server_if, int attribute_handle, int conn_id, int len, int confirm, char *p_value)
 
bt_status_t(* send_response )(int conn_id, int trans_id, int status, btgatt_response_t *response)
 

Detailed Description

Represents the standard BT-GATT server interface.

Definition at line 124 of file bt_gatt_server.h.

Field Documentation

bt_status_t(* add_characteristic)(int server_if, int service_handle, bt_uuid_t *uuid, int properties, int permissions)

Add a characteristic to a service

Definition at line 145 of file bt_gatt_server.h.

bt_status_t(* add_descriptor)(int server_if, int service_handle, bt_uuid_t *uuid, int permissions)

Add a descriptor to a given service

Definition at line 150 of file bt_gatt_server.h.

bt_status_t(* add_included_service)(int server_if, int service_handle, int included_handle)

Assign an included service to it's parent service

Definition at line 142 of file bt_gatt_server.h.

bt_status_t(* add_service)(int server_if, btgatt_srvc_id_t *srvc_id, int num_handles)

Create a new service

Definition at line 139 of file bt_gatt_server.h.

bt_status_t(* connect)(int server_if, const bt_bdaddr_t *bd_addr, bool is_direct)

Create a connection to a remote peripheral

Definition at line 132 of file bt_gatt_server.h.

bt_status_t(* delete_service)(int server_if, int service_handle)

Delete a local service

Definition at line 161 of file bt_gatt_server.h.

bt_status_t(* disconnect)(int server_if, const bt_bdaddr_t *bd_addr, int conn_id)

Disconnect an established connection or cancel a pending one

Definition at line 135 of file bt_gatt_server.h.

bt_status_t(* register_server)(bt_uuid_t *uuid)

Registers a GATT server application with the stack

Definition at line 126 of file bt_gatt_server.h.

bt_status_t(* send_indication)(int server_if, int attribute_handle, int conn_id, int len, int confirm, char *p_value)

Send value indication to a remote device

Definition at line 164 of file bt_gatt_server.h.

bt_status_t(* send_response)(int conn_id, int trans_id, int status, btgatt_response_t *response)

Send a response to a read/write operation

Definition at line 169 of file bt_gatt_server.h.

bt_status_t(* start_service)(int server_if, int service_handle, int transport)

Starts a local service

Definition at line 154 of file bt_gatt_server.h.

bt_status_t(* stop_service)(int server_if, int service_handle)

Stops a local service

Definition at line 158 of file bt_gatt_server.h.

bt_status_t(* unregister_server)(int server_if)

Unregister a server application from the stack

Definition at line 129 of file bt_gatt_server.h.


The documentation for this struct was generated from the following file: