TizenRT Public API  v2.0 M2
bluetooth_type.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (the License);
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an AS IS BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 
18 #ifndef __TIZEN_NETWORK_BLUETOOTH_TYPE_H__
19 #define __TIZEN_NETWORK_BLUETOOTH_TYPE_H__
20 
21 #include <stdlib.h>
22 #include <unistd.h>
23 #include <stdbool.h>
24 #include "tizen_error.h"
25 
26  #ifdef __cplusplus
27 extern "C"
28 {
29 #endif /* __cplusplus */
30 
44 typedef enum {
45  BT_PBAP_FIELD_ALL = (0xFFFFFFFFU),
46  BT_PBAP_FIELD_VERSION = (1U << 0),
47  BT_PBAP_FIELD_FN = (1U << 1),
48  BT_PBAP_FIELD_N = (1U << 2),
49  BT_PBAP_FIELD_PHOTO = (1U << 3),
50  BT_PBAP_FIELD_BDAY = (1U << 4),
51  BT_PBAP_FIELD_ADR = (1U << 5),
52  BT_PBAP_FIELD_LABEL = (1U << 6),
53  BT_PBAP_FIELD_TEL = (1U << 7),
54  BT_PBAP_FIELD_EMAIL = (1U << 8),
55  BT_PBAP_FIELD_MAILER = (1U << 9),
56  BT_PBAP_FIELD_TZ = (1U << 10),
57  BT_PBAP_FIELD_GEO = (1U << 11),
58  BT_PBAP_FIELD_TITLE = (1U << 12),
59  BT_PBAP_FIELD_ROLE = (1U << 13),
60  BT_PBAP_FIELD_LOGO = (1U << 14),
61  BT_PBAP_FIELD_AGENT = (1U << 15),
62  BT_PBAP_FIELD_ORG = (1U << 16),
63  BT_PBAP_FIELD_NOTE = (1U << 17),
64  BT_PBAP_FIELD_REV = (1U << 18),
65  BT_PBAP_FIELD_SOUND = (1U << 19),
66  BT_PBAP_FIELD_URL = (1U << 20),
67  BT_PBAP_FIELD_UID = (1U << 21),
68  BT_PBAP_FIELD_KEY = (1U << 22),
69  BT_PBAP_FIELD_NICKNAME = (1U << 23),
70  BT_PBAP_FIELD_CATEGORIES = (1U << 24),
71  BT_PBAP_FIELD_PROID = (1U << 25),
72  BT_PBAP_FIELD_CLASS = (1U << 26),
76 
82 typedef enum {
95  BT_ERROR_NOT_INITIALIZED = TIZEN_ERROR_BLUETOOTH|0x0101,
96  BT_ERROR_NOT_ENABLED = TIZEN_ERROR_BLUETOOTH|0x0102,
97  BT_ERROR_ALREADY_DONE = TIZEN_ERROR_BLUETOOTH|0x0103,
98  BT_ERROR_OPERATION_FAILED = TIZEN_ERROR_BLUETOOTH|0x0104,
99  BT_ERROR_NOT_IN_PROGRESS = TIZEN_ERROR_BLUETOOTH|0x0105,
100  BT_ERROR_REMOTE_DEVICE_NOT_BONDED = TIZEN_ERROR_BLUETOOTH|0x0106,
101  BT_ERROR_AUTH_REJECTED = TIZEN_ERROR_BLUETOOTH|0x0107,
102  BT_ERROR_AUTH_FAILED = TIZEN_ERROR_BLUETOOTH|0x0108,
103  BT_ERROR_REMOTE_DEVICE_NOT_FOUND = TIZEN_ERROR_BLUETOOTH|0x0109,
104  BT_ERROR_SERVICE_SEARCH_FAILED = TIZEN_ERROR_BLUETOOTH|0x010A,
105  BT_ERROR_REMOTE_DEVICE_NOT_CONNECTED = TIZEN_ERROR_BLUETOOTH|0x010B,
106  BT_ERROR_AGAIN = TIZEN_ERROR_BLUETOOTH|0x010C,
107  BT_ERROR_SERVICE_NOT_FOUND = TIZEN_ERROR_BLUETOOTH|0x010D,
108  BT_ERROR_AUTHORIZATION_REJECTED = TIZEN_ERROR_BLUETOOTH|0x010E,
109 } bt_error_e;
110 
116 typedef enum {
120 
126 typedef enum {
132 
138 typedef enum {
143 
149 typedef enum {
153 
159 typedef enum {
164 
170 typedef enum {
179 
185 typedef enum {
189 
195 typedef enum {
200 
206 typedef enum {
212 
218 typedef enum {
223 
229 typedef enum {
233 
239 typedef enum {
242  BT_PROFILE_HSP = 0x04,
243  BT_PROFILE_HID = 0x08,
244  BT_PROFILE_NAP = 0x10,
245  BT_PROFILE_AG = 0x20,
249 } bt_profile_e;
250 
256 typedef enum {
260 
266 typedef enum {
268  BT_SC_RES_SERVICE_MASK = 0x00000001,
269  BT_SC_SPP_SERVICE_MASK = 0x00000002,
270  BT_SC_DUN_SERVICE_MASK = 0x00000004,
271  BT_SC_FAX_SERVICE_MASK = 0x00000008,
272  BT_SC_LAP_SERVICE_MASK = 0x00000010,
273  BT_SC_HSP_SERVICE_MASK = 0x00000020,
274  BT_SC_HFP_SERVICE_MASK = 0x00000040,
275  BT_SC_OPP_SERVICE_MASK = 0x00000080,
276  BT_SC_FTP_SERVICE_MASK = 0x00000100,
277  BT_SC_CTP_SERVICE_MASK = 0x00000200,
278  BT_SC_ICP_SERVICE_MASK = 0x00000400,
279  BT_SC_SYNC_SERVICE_MASK = 0x00000800,
280  BT_SC_BPP_SERVICE_MASK = 0x00001000,
281  BT_SC_BIP_SERVICE_MASK = 0x00002000,
282  BT_SC_PANU_SERVICE_MASK = 0x00004000,
283  BT_SC_NAP_SERVICE_MASK = 0x00008000,
284  BT_SC_GN_SERVICE_MASK = 0x00010000,
285  BT_SC_SAP_SERVICE_MASK = 0x00020000,
286  BT_SC_A2DP_SERVICE_MASK = 0x00040000,
288  BT_SC_PBAP_SERVICE_MASK = 0x00100000,
289  BT_SC_HID_SERVICE_MASK = 0x00200000,
291  BT_SC_ALL_SERVICE_MASK = 0x00FFFFFF,
294 
300 typedef enum {
311 
317 typedef enum {
330 
336 typedef enum {
425 
431 typedef enum {
437 
443 typedef enum {
448 
454 typedef enum {
459 
465 typedef enum {
469 
475 typedef enum {
482 
488 typedef enum {
493 
499 typedef enum {
506 
512 typedef enum {
516 
522 typedef enum {
528 
534 typedef enum {
539 
545 typedef enum {
550 
556 typedef enum {
563 
569 typedef enum {
578 
586 typedef struct {
587  const char *title;
588  const char *artist;
589  const char *album;
590  const char *genre;
591  unsigned int total_tracks;
592  unsigned int number;
593  unsigned int duration;
595 
606 typedef void (*bt_avrcp_control_connection_state_changed_cb) (bool connected, const char *remote_address, void *user_data);
607 
617 typedef void (*bt_avrcp_position_changed_cb) (unsigned int position, void *user_data);
618 
628 typedef void (*bt_avrcp_track_info_changed_cb) (bt_avrcp_metadata_attributes_info_s *track, void *user_data);
629 
639 typedef void (*bt_avrcp_play_status_changed_cb) (bt_avrcp_player_state_e play_state, void *user_data);
640 
648 typedef enum {
652 
658 typedef enum {
666 
672 typedef enum {
676 
682 typedef enum {
686 
692 typedef enum {
697 
703 typedef enum {
707 
713 typedef enum {
723 
729 typedef enum {
733 
739 typedef enum {
747 
753 typedef enum {
757 
763 typedef enum {
766 
772 typedef void *bt_advertiser_h;
773 
780 typedef enum {
784 
791 typedef enum {
798 
805 typedef enum {
810 
817 typedef enum {
821 
828 typedef enum {
833 
839 typedef void *bt_gatt_h;
840 
846 typedef void *bt_gatt_client_h;
847 
853 typedef void *bt_gatt_server_h;
854 
860 typedef void *bt_call_list_h;
861 
872 typedef struct {
877 } bt_class_s;
878 
887 typedef struct {
889  char *remote_name;
891  int rssi;
892  bool is_bonded;
893  char **service_uuid;
899 
907 typedef struct {
909  bt_device_address_type_e address_type;
910  int rssi;
912  char *adv_data;
914  char *scan_data;
916 
924 typedef struct {
927  char *uuid;
928  int major_id;
929  int minor_id;
932 
940 typedef struct {
941  char *service_uuid;
942  char *service_data;
945 
956 typedef void (*bt_ipsp_init_state_changed_cb)
957  (int result, bool ipsp_initialized, void *user_data);
958 
972  (int result, bool connected, const char *remote_address, const char *iface_name, void *user_data);
973 
982 typedef struct {
984  char *remote_name;
986  char **service_uuid;
988  bool is_bonded;
994 
1005 typedef struct {
1007  char **service_uuid;
1010 
1018 typedef struct {
1021  bt_device_disconnect_reason_e disconn_reason;
1023 
1031 typedef struct {
1034  bt_socket_role_e local_role;
1038 
1049 typedef struct {
1052  char *data;
1054 
1066 typedef void (*bt_adapter_state_changed_cb)(int result, bt_adapter_state_e adapter_state, void *user_data);
1067 
1081 typedef void (*bt_adapter_name_changed_cb)(char *device_name, void *user_data);
1082 
1099  (int result, bt_adapter_visibility_mode_e visibility_mode, void *user_data);
1100 
1113 typedef void (*bt_adapter_visibility_duration_changed_cb)(int duration, void *user_data);
1114 
1140  (int result, bt_adapter_device_discovery_state_e discovery_state, bt_adapter_device_discovery_info_s *discovery_info, void *user_data);
1141 
1156 typedef bool (*bt_adapter_bonded_device_cb)(bt_device_info_s *device_info, void *user_data);
1157 
1170 typedef void (*bt_adapter_le_scan_result_cb)(int result,
1171  bt_adapter_le_device_scan_result_info_s *info, void *user_data);
1172 
1187  bt_advertiser_h advertiser, bt_adapter_le_advertising_state_e adv_state, void *user_data);
1188 
1212 typedef void (*bt_device_bond_created_cb)(int result, bt_device_info_s *device_info, void *user_data);
1213 
1226 typedef bool (*bt_device_connected_profile)(bt_profile_e profile, void *user_data);
1227 
1243 typedef void (*bt_device_bond_destroyed_cb)(int result, char *remote_address, void *user_data);
1244 
1259 typedef void (*bt_device_authorization_changed_cb)
1260  (bt_device_authorization_e authorization, char *remote_address, void *user_data);
1261 
1278 typedef void (*bt_device_service_searched_cb)(int result, bt_device_sdp_info_s *sdp_info, void *user_data);
1279 
1291 typedef void (*bt_device_connection_state_changed_cb)(bool connected, bt_device_connection_info_s *conn_info, void *user_data);
1292 
1308 typedef void (*bt_socket_data_received_cb)(bt_socket_received_data_s *data, void *user_data);
1309 
1327  (int result, bt_socket_connection_state_e connection_state, bt_socket_connection_s *connection, void *user_data);
1328 
1340 typedef void (*bt_socket_connection_requested_cb) (int socket_fd, const char *remote_address, void *user_data);
1341 
1354 typedef void (*bt_opp_server_connection_requested_cb)(const char *remote_address, void *user_data);
1355 
1368 typedef void (*bt_opp_server_transfer_progress_cb) (const char *file, long long size, int percent, void *user_data);
1369 
1382 typedef void (*bt_opp_server_transfer_finished_cb) (int result, const char *file, long long size, void *user_data);
1383 
1395 typedef void (*bt_opp_client_push_responded_cb)(int result, const char *remote_address, void *user_data);
1396 
1409 typedef void (*bt_opp_client_push_progress_cb)(const char *file, long long size, int percent, void *user_data);
1410 
1421 typedef void (*bt_opp_client_push_finished_cb)(int result, const char *remote_address, void *user_data);
1422 
1438 typedef void (*bt_audio_connection_state_changed_cb) (int result, bool connected, const char *remote_address, bt_audio_profile_type_e type, void *user_data);
1439 
1451 typedef void (*bt_ag_call_handling_event_cb) (bt_ag_call_handling_event_e event, unsigned int call_id, void *user_data);
1452 
1463 typedef void (*bt_ag_multi_call_handling_event_cb) (bt_ag_multi_call_handling_event_e event, void *user_data);
1464 
1475 typedef void (*bt_ag_dtmf_transmitted_cb) (const char *dtmf, void *user_data);
1476 
1487 typedef void (*bt_ag_speaker_gain_changed_cb) (int gain, void *user_data);
1488 
1499 typedef void (*bt_ag_microphone_gain_changed_cb) (int gain, void *user_data);
1500 
1512 typedef void (*bt_avrcp_target_connection_state_changed_cb) (bool connected, const char *remote_address, void *user_data);
1513 
1524 typedef void (*bt_avrcp_equalizer_state_changed_cb) (bt_avrcp_equalizer_state_e equalizer, void *user_data);
1525 
1536 typedef void (*bt_avrcp_repeat_mode_changed_cb) (bt_avrcp_repeat_mode_e repeat, void *user_data);
1537 
1548 typedef void (*bt_avrcp_shuffle_mode_changed_cb) (bt_avrcp_shuffle_mode_e shuffle, void *user_data);
1549 
1560 typedef void (*bt_avrcp_scan_mode_changed_cb) (bt_avrcp_scan_mode_e scan, void *user_data);
1561 
1576 typedef void (*bt_hid_host_connection_state_changed_cb) (int result, bool connected, const char *remote_address, void *user_data);
1577 
1594 typedef void (*bt_hdp_connected_cb) (int result, const char *remote_address, const char *app_id,
1595  bt_hdp_channel_type_e type, unsigned int channel, void *user_data);
1596 
1611 typedef void (*bt_hdp_disconnected_cb) (int result, const char *remote_address, unsigned int channel, void *user_data);
1612 
1627 typedef void (*bt_hdp_data_received_cb) (unsigned int channel, const char *data, unsigned int size, void *user_data);
1628 
1644 typedef bool (*bt_gatt_foreach_cb) (int total, int index, bt_gatt_h gatt_handle,
1645  void *user_data);
1646 
1654 typedef struct {
1656  unsigned int mtu;
1657  unsigned int status;
1659 
1675 typedef void (*bt_gatt_client_att_mtu_changed_cb)(bt_gatt_client_h client,
1676  const bt_gatt_client_att_mtu_info_s *mtu_info,
1677  void *user_data);
1678 
1691 typedef void (*bt_gatt_client_request_completed_cb) (int result,
1692  bt_gatt_h request_handle, void *user_data);
1693 
1709 typedef void (*bt_gatt_client_characteristic_value_changed_cb) (bt_gatt_h characteristic,
1710  char *value, int len, void *user_data);
1711 
1726 typedef void (*bt_hrp_connection_state_changed_cb)(int result, bool connected, const char *remote_address);
1727 
1740 typedef void (*bt_gatt_client_service_changed_cb) (bt_gatt_client_h client,
1741  bt_gatt_client_service_change_type_e change_type,
1742  const char* service_uuid, void *user_data);
1743 
1762 typedef void (*bt_gatt_connection_state_changed_cb)(int result, bool connected, const char *remote_address, void *user_data);
1763 
1791 typedef void (*bt_gatt_server_write_value_requested_cb) (const char *remote_address,
1792  int request_id, bt_gatt_server_h server,
1793  bt_gatt_h gatt_handle, bool response_needed, int offset,
1794  const char *value, int len, void *user_data);
1795 
1817 typedef void (*bt_gatt_server_read_value_requested_cb) (const char *remote_address,
1818  int request_id, bt_gatt_server_h server, bt_gatt_h gatt_handle,
1819  int offset, void *user_data);
1820 
1839  bt_gatt_server_h server, bt_gatt_h gatt_handle, void *user_data);
1840 
1841 
1859  bt_gatt_server_h server, bt_gatt_h gatt_handle, void *user_data);
1860 
1883 typedef void (*bt_gatt_server_notification_sent_cb) (int result,
1884  const char *remote_address, bt_gatt_server_h server,
1885  bt_gatt_h characteristic, bool completed, void *user_data);
1886 
1899 typedef void (*bt_nap_connection_state_changed_cb) (bool connected, const char *remote_address, const char *interface_name, void *user_data);
1900 
1916 typedef void (*bt_panu_connection_state_changed_cb) (int result, bool connected, const char *remote_address, bt_panu_service_type_e type, void *user_data);
1917 
1923 typedef enum {
1929 
1937 typedef struct {
1938  int buttons;
1939  int axis_x;
1940  int axis_y;
1941  int padding;
1943 
1952 typedef struct {
1953  unsigned char modifier;
1954  unsigned char key[8];
1956 
1962 typedef enum {
1972 
1978 typedef enum {
1982 
1988 typedef enum {
1997 
2003 typedef struct {
2004  const char *address;
2005  bt_hid_header_type_e header_type;
2006  bt_hid_param_type_e param_type;
2008  const char *data;
2010 
2025 typedef void (*bt_hid_device_connection_state_changed_cb) (int result,
2026  bool connected, const char *remote_address, void *user_data);
2027 
2040 typedef void (*bt_hid_device_data_received_cb)(const bt_hid_device_received_data_s *data, void *user_data);
2041 /* HID device related type */
2042 
2043 
2052 typedef struct {
2053  int index;
2054  const char *contact_name;
2056 
2077 typedef void (*bt_pbap_connection_state_changed_cb)(int result, bool connected,
2078  const char *remote_address, void *user_data);
2079 
2097 typedef void (*bt_pbap_phone_book_size_cb)(int result, const char *remote_address,
2098  int size, void *user_data);
2099 
2118 typedef void (*bt_pbap_phone_book_received_cb)(int result, const char *remote_address,
2119  const char *vcf_file, void *user_data);
2120 
2139 typedef void (*bt_pbap_list_vcards_cb)(int result, const char *remote_address,
2140  const bt_pbap_vcard_info_s *vcard_info, int count, void *user_data);
2141 
2148 typedef enum {
2152 
2158 typedef void *bt_scan_filter_h;
2159 
2160 #ifdef __cplusplus
2161 }
2162 #endif /* __cplusplus */
2163 
2164 #endif /* __TIZEN_NETWORK_BLUETOOTH_TYPE_H__ */
bt_socket_role_e
Enumerations of connected Bluetooth device event role. 2.3.
bt_gatt_write_type_e
Enumerations of the write type. 2.3.1.
Service Discovery Protocol (SDP) data structure.
void(* bt_gatt_client_att_mtu_changed_cb)(bt_gatt_client_h client, const bt_gatt_client_att_mtu_info_s *mtu_info, void *user_data)
Called when the ATT MTU value is changed. 4.0.
void(* bt_gatt_server_characteristic_notification_state_changed_cb)(bool notify, bt_gatt_server_h server, bt_gatt_h gatt_handle, void *user_data)
Called when the remote device enables or disables the Notification/Indication for particular characte...
void(* bt_pbap_phone_book_received_cb)(int result, const char *remote_address, const char *vcf_file, void *user_data)
Called when PBAP Phonebook Pull completes.
bt_data_type_int_e
Enumerations of the integer type for GATT handle&#39;s value. 2.3.1.
void(* bt_ag_call_handling_event_cb)(bt_ag_call_handling_event_e event, unsigned int call_id, void *user_data)
Called when a call handling event happened from Hands-Free. 2.3.
void * bt_advertiser_h
The handle to control Bluetooth LE advertising. 2.3.
bt_profile_e
Enumerations of Bluetooth profile. 2.3.
bt_avrcp_repeat_mode_e
Enumerations for the repeat mode. 2.4.
void(* bt_avrcp_play_status_changed_cb)(bt_avrcp_player_state_e play_state, void *user_data)
Called when the Song Play status mode is changed by the remote target device. 3.0.
void(* bt_opp_server_transfer_progress_cb)(const char *file, long long size, int percent, void *user_data)
Called when a file is being transferred. 2.3.
void(* bt_avrcp_target_connection_state_changed_cb)(bool connected, const char *remote_address, void *user_data)
Called when the connection state is changed. 2.3.
bt_adapter_le_scan_filter_type_e
Enumeration for the scan filter type. 4.0.
bt_socket_connection_state_e
Enumerations of Bluetooth socket connection state. 2.3.
bt_hdp_channel_type_e
Enumerations for the data channel type. 2.3.
bt_avrcp_scan_mode_e
Enumerations for the scan mode. 2.4.
void * bt_call_list_h
The handle of calls state. 2.3.
bool(* bt_gatt_foreach_cb)(int total, int index, bt_gatt_h gatt_handle, void *user_data)
Called when you get GATT handles repeatedly. 2.3.1.
void(* bt_ipsp_init_state_changed_cb)(int result, bool ipsp_initialized, void *user_data)
Called when the IPSP initialization state changes. 4.0.
bt_device_address_type_e
Enumerations of device address type. 2.3.
bt_data_type_float_e
Enumerations of the float type for GATT handle&#39;s value. 2.3.1.
bt_minor_device_class_e
Enumerations of minor device class. 2.3.
void(* bt_gatt_client_service_changed_cb)(bt_gatt_client_h client, bt_gatt_client_service_change_type_e change_type, const char *service_uuid, void *user_data)
Called when a service of a remote GATT server has been changed. 3.0.
bt_avrcp_player_command_e
Enumeration for the player control commands. 3.0.
void(* bt_socket_data_received_cb)(bt_socket_received_data_s *data, void *user_data)
Called when you receive data. 2.3.
bool(* bt_device_connected_profile)(bt_profile_e profile, void *user_data)
Called when you get connected profiles repeatedly. 2.3.
bt_avrcp_player_state_e
Enumerations for the player state. 3.0.
bt_pbap_search_field_e
Enumeration of phone book search fields. 3.0.
void(* bt_opp_server_transfer_finished_cb)(int result, const char *file, long long size, void *user_data)
Called when a transfer is finished. 2.3.
void(* bt_hdp_data_received_cb)(unsigned int channel, const char *data, unsigned int size, void *user_data)
Called when the you receive the data. 2.3.
bt_major_device_class_e major_device_class
void(* bt_gatt_client_characteristic_value_changed_cb)(bt_gatt_h characteristic, char *value, int len, void *user_data)
Called when a value of a watched characteristic&#39;s GATT handle has been changed. 2.3.1.
bt_pbap_field_e
Enumeration of PBAP fields. 3.0.
bt_device_connection_link_type_e link
bt_class_s bt_class
void(* bt_hdp_connected_cb)(int result, const char *remote_address, const char *app_id, bt_hdp_channel_type_e type, unsigned int channel, void *user_data)
Called when the connection is established. 2.3.
bt_avrcp_shuffle_mode_e
Enumerations for the shuffle mode. 2.4.
const char * contact_name
bool(* bt_adapter_bonded_device_cb)(bt_device_info_s *device_info, void *user_data)
Called when you get bonded devices repeatedly. 2.3.
void(* bt_avrcp_equalizer_state_changed_cb)(bt_avrcp_equalizer_state_e equalizer, void *user_data)
Called when the equalizer state is changed by the remote control device. 2.3.
bt_major_device_class_e
Enumerations of major device class. 2.3.
Structure of Track metadata information. 3.0.
The structure type containing the HID keyboard event information.
bt_device_disconnect_reason_e
Enumerations of device disconnect reason. 2.3.
bt_gatt_service_type_e
Enumerations of the service type. 2.3.1.
void(* bt_hid_device_data_received_cb)(const bt_hid_device_received_data_s *data, void *user_data)
Called when the HID Device receives data from the HID Host.
void(* bt_hrp_connection_state_changed_cb)(int result, bool connected, const char *remote_address)
Called when the connection state is changed.
Structure of le scan result information. 2.3.1.
void(* bt_adapter_state_changed_cb)(int result, bt_adapter_state_e adapter_state, void *user_data)
Called when the Bluetooth adapter state changes. 2.3.
void(* bt_avrcp_shuffle_mode_changed_cb)(bt_avrcp_shuffle_mode_e shuffle, void *user_data)
Called when the shuffle mode is changed by the remote control device. 2.3.
void(* bt_socket_connection_state_changed_cb)(int result, bt_socket_connection_state_e connection_state, bt_socket_connection_s *connection, void *user_data)
Called when the socket connection state changes. 2.3.
void * bt_gatt_h
The handle of a service, characteristic or descriptor. 2.3.1.
bt_device_disconnect_reason_e disconn_reason
bt_pbap_sort_order_e
Enumeration of sorting orders. 3.0.
bt_ag_multi_call_handling_event_e
Enumerations for the multi call handling event. 2.3.
void(* bt_gatt_client_request_completed_cb)(int result, bt_gatt_h request_handle, void *user_data)
Called when the client request(e.g. read / write) has been completed. 2.3.1.
void(* bt_hid_device_connection_state_changed_cb)(int result, bool connected, const char *remote_address, void *user_data)
Called when the Bluetooth HID Device connection state changes.
bt_device_authorization_e
Enumerations of device authorization state. 2.3.
void(* bt_avrcp_repeat_mode_changed_cb)(bt_avrcp_repeat_mode_e repeat, void *user_data)
Called when the repeat mode is changed by the remote control device. 2.3.
void(* bt_opp_client_push_progress_cb)(const char *file, long long size, int percent, void *user_data)
Called when each file is being transferred. 2.3.
void(* bt_opp_server_connection_requested_cb)(const char *remote_address, void *user_data)
Called when an OPP connection is requested.
bt_adapter_le_advertising_state_e
Enumerations of the Bluetooth advertising state. 2.3.
void(* bt_audio_connection_state_changed_cb)(int result, bool connected, const char *remote_address, bt_audio_profile_type_e type, void *user_data)
Called when the connection state is changed.
void(* bt_gatt_connection_state_changed_cb)(int result, bool connected, const char *remote_address, void *user_data)
Called when the connection state is changed.
void(* bt_adapter_le_scan_result_cb)(int result, bt_adapter_le_device_scan_result_info_s *info, void *user_data)
Called when the LE advertisement has been found. 2.3.1.
Attribute protocol MTU change information structure. 4.0.
Rfcomm connection data used for exchanging data between Bluetooth devices. 2.3.
bt_adapter_le_scan_mode_e
Enumerations of the Bluetooth le scan mode. 3.0.
void(* bt_ag_microphone_gain_changed_cb)(int gain, void *user_data)
Called when the microphone gain of the remote device is changed. 2.3.
bt_hid_param_type_e param_type
bt_adapter_le_packet_type_e
Enumerations of the Bluetooth LE packet type. 2.3.
bt_pbap_address_book_source_e
Enumeration of address book location for PBAP. 3.0.
void * bt_gatt_server_h
The handle of a GATT server. 3.0.
LE service data structure. 2.3.1.
bt_hid_header_type_e
Enumerations of the Bluetooth HID header type. .
Device connection information structure. 2.3.
unsigned char modifier
bt_hid_mouse_button_e
Enumerations of the Bluetooth HID mouse&#39;s button. .
void(* bt_ipsp_connection_state_changed_cb)(int result, bool connected, const char *remote_address, const char *iface_name, void *user_data)
Called when the IPSP connection state changes. 4.0.
The structure for LE iBeacon scan result information. 4.0.
void(* bt_avrcp_position_changed_cb)(unsigned int position, void *user_data)
Called when the Song position mode is changed by the remote target device. 3.0.
Device information structure used for identifying pear device. 2.3.
bt_gatt_type_e
Enumerations of the GATT handle&#39;s type. 2.3.1.
bt_hid_handshake_type_e
Enumerations of the Bluetooth HID handshake type. .
Structure of device discovery information. 2.3.
void(* bt_avrcp_control_connection_state_changed_cb)(bool connected, const char *remote_address, void *user_data)
Called when the connection state is changed. 3.0.
bt_device_le_connection_mode_e
Enumerations of the Bluetooth device&#39;s LE connection mode. 3.0.
bt_panu_service_type_e
Enumerations for the types of PAN (Personal Area Networking) service. 2.3.
void(* bt_device_service_searched_cb)(int result, bt_device_sdp_info_s *sdp_info, void *user_data)
Called when the process of service search finishes. 2.3.
bt_gatt_client_service_change_type_e
Enumerations of gatt server&#39;s service changing mode. 3.0.
void(* bt_socket_connection_requested_cb)(int socket_fd, const char *remote_address, void *user_data)
Called when a RFCOMM connection is requested. 2.3.
void(* bt_device_authorization_changed_cb)(bt_device_authorization_e authorization, char *remote_address, void *user_data)
Called when the authorization of device changes. 2.3.
void(* bt_gatt_server_read_value_requested_cb)(const char *remote_address, int request_id, bt_gatt_server_h server, bt_gatt_h gatt_handle, int offset, void *user_data)
Called when the remote device requests to read a value on a GATT server.
bt_adapter_device_discovery_state_e
Enumerations of the discovery state of Bluetooth device. 2.3.
void(* bt_pbap_connection_state_changed_cb)(int result, bool connected, const char *remote_address, void *user_data)
Called when PBAP is Connected or Disconnected.
void(* bt_hrp_sensor_characteristic_notification_state_changed_cb)(bool notify, bt_gatt_server_h server, bt_gatt_h gatt_handle, void *user_data)
Called when the remote device enables or disables the Notification/Indication for particular characte...
bt_gatt_att_request_type_e
Enumerations of the remote device request types for attributes. 3.0.
void * bt_gatt_client_h
The handle of a GATT client which is associated with a remote device. 2.3.1.
bt_ag_call_handling_event_e
Enumerations for the call handling event. 2.3.
bt_appearance_type_e
Enumerations of gap appearance type. 2.3.
Structure of RFCOMM received data. 2.3.
void(* bt_pbap_list_vcards_cb)(int result, const char *remote_address, const bt_pbap_vcard_info_s *vcard_info, int count, void *user_data)
Called when PBAP List vCards completes.
bt_adapter_le_advertising_mode_e
Enumerations of the Bluetooth advertising mode. 2.3.1.
bt_major_service_class_e
Enumerations of major service class. 2.3.
bt_gatt_property_e
Enumerations of the characteristic&#39;s property. 2.3.1.
bt_audio_profile_type_e
Enumerations for the types of profiles related with audio. 2.3.
void(* bt_nap_connection_state_changed_cb)(bool connected, const char *remote_address, const char *interface_name, void *user_data)
Called when the connection state is changed. 2.3.
void(* bt_adapter_device_discovery_state_changed_cb)(int result, bt_adapter_device_discovery_state_e discovery_state, bt_adapter_device_discovery_info_s *discovery_info, void *user_data)
Called when the state of device discovery changes. 2.3.
void(* bt_adapter_visibility_duration_changed_cb)(int duration, void *user_data)
Called every second until the visibility mode is changed to BT_ADAPTER_VISIBILITY_MODE_NON_DISCOVERAB...
bt_socket_role_e local_role
void(* bt_opp_client_push_responded_cb)(int result, const char *remote_address, void *user_data)
Called when OPP server responds to the push request. 2.3.
void(* bt_gatt_server_write_value_requested_cb)(const char *remote_address, int request_id, bt_gatt_server_h server, bt_gatt_h gatt_handle, bool response_needed, int offset, const char *value, int len, void *user_data)
Called when a value of a characteristic or descriptor&#39;s GATT handle has been changed.
bt_service_class_t
Enumerations of service class. 2.3.
The structure type containing vCard information. 3.0.
bt_device_connection_link_type_e
Enumerations of connection link type. 2.3.
The structure type containing the HID mouse event information. .
void(* bt_opp_client_push_finished_cb)(int result, const char *remote_address, void *user_data)
Called when the push request is finished. 2.3.
void(* bt_adapter_le_advertising_state_changed_cb)(int result, bt_advertiser_h advertiser, bt_adapter_le_advertising_state_e adv_state, void *user_data)
Called when the state of advertiser changes. 2.3.
void(* bt_device_connection_state_changed_cb)(bool connected, bt_device_connection_info_s *conn_info, void *user_data)
Called when the connection state is changed. 2.3.
void(* bt_ag_dtmf_transmitted_cb)(const char *dtmf, void *user_data)
Called when a DTMF (Dual Tone Multi Frequency) is transmitted from Hands-Free. 2.3.
bt_hid_header_type_e header_type
void(* bt_hid_host_connection_state_changed_cb)(int result, bool connected, const char *remote_address, void *user_data)
Called when the connection state is changed.
The structure type containing data received from the HID Host. .
void(* bt_adapter_name_changed_cb)(char *device_name, void *user_data)
Called when adapter name changes. 2.3.
bt_device_address_type_e address_type
void(* bt_pbap_phone_book_size_cb)(int result, const char *remote_address, int size, void *user_data)
Called when PBAP Phonebook size calculation completes.
void(* bt_avrcp_scan_mode_changed_cb)(bt_avrcp_scan_mode_e scan, void *user_data)
Called when the scan mode is changed by the remote control device. 2.3.
void(* bt_gatt_server_notification_sent_cb)(int result, const char *remote_address, bt_gatt_server_h server, bt_gatt_h characteristic, bool completed, void *user_data)
Called when the sending notification / indication is done. 3.0.
bt_minor_device_class_e minor_device_class
void * bt_scan_filter_h
The handle of a Bluetooth LE scan filter. 4.0.
bt_adapter_state_e
Enumerations of the Bluetooth adapter state. 2.3.
void(* bt_panu_connection_state_changed_cb)(int result, bool connected, const char *remote_address, bt_panu_service_type_e type, void *user_data)
Called when the connection state is changed.
int major_service_class_mask
Class structure of device and service. 2.3.
bt_pbap_vcard_format_e
Enumeration of vCard Formats. 3.0.
bt_gatt_permission_e
Enumerations of the attribute&#39;s permission. 3.0.
void(* bt_hdp_disconnected_cb)(int result, const char *remote_address, unsigned int channel, void *user_data)
Called when the connection is disconnected. 2.3.
bt_hid_param_type_e
Enumerations of the Bluetooth HID parameter type. .
void(* bt_device_bond_created_cb)(int result, bt_device_info_s *device_info, void *user_data)
Called when the process of creating bond finishes. 2.3.
bt_error_e
Enumerations of Bluetooth error codes. 2.3.
bt_avrcp_equalizer_state_e
Enumerations for the equalizer state. 2.4.
void(* bt_ag_speaker_gain_changed_cb)(int gain, void *user_data)
Called when the speaker gain of the remote device is changed. 2.3.
bt_pbap_folder_type_e
Enumeration of folder type. 3.0.
void(* bt_avrcp_track_info_changed_cb)(bt_avrcp_metadata_attributes_info_s *track, void *user_data)
Called when the Song metadata information is changed by the remote target device. 3...
void(* bt_ag_multi_call_handling_event_cb)(bt_ag_multi_call_handling_event_e event, void *user_data)
Called when a multi call handling event happened from Hands-Free. 2.3.
bt_adapter_visibility_mode_e
Enumerations of the Bluetooth visibility mode. 2.3.
bt_adapter_le_advertising_filter_policy_e
Enumerations of the Bluetooth advertising filter policy. 2.3.
void(* bt_device_bond_destroyed_cb)(int result, char *remote_address, void *user_data)
Called when the bond destroys. 2.3.
void(* bt_adapter_visibility_mode_changed_cb)(int result, bt_adapter_visibility_mode_e visibility_mode, void *user_data)
Called when the visibility mode changes. 2.3.