TizenRT Public API
v2.0 M2
|
API to control the Bluetooth adapter, devices and communications. More...
#include <stdlib.h>
#include <unistd.h>
#include <stdbool.h>
#include "tizen_error.h"
Go to the source code of this file.
Data Structures | |
struct | bt_avrcp_metadata_attributes_info_s |
Structure of Track metadata information. 3.0. More... | |
struct | bt_class_s |
Class structure of device and service. 2.3. More... | |
struct | bt_adapter_device_discovery_info_s |
Structure of device discovery information. 2.3. More... | |
struct | bt_adapter_le_device_scan_result_info_s |
Structure of le scan result information. 2.3.1. More... | |
struct | bt_adapter_le_ibeacon_scan_result_info_s |
The structure for LE iBeacon scan result information. 4.0. More... | |
struct | bt_adapter_le_service_data_s |
LE service data structure. 2.3.1. More... | |
struct | bt_device_info_s |
Device information structure used for identifying pear device. 2.3. More... | |
struct | bt_device_sdp_info_s |
Service Discovery Protocol (SDP) data structure. More... | |
struct | bt_device_connection_info_s |
Device connection information structure. 2.3. More... | |
struct | bt_socket_connection_s |
Rfcomm connection data used for exchanging data between Bluetooth devices. 2.3. More... | |
struct | bt_socket_received_data_s |
Structure of RFCOMM received data. 2.3. More... | |
struct | bt_gatt_client_att_mtu_info_s |
Attribute protocol MTU change information structure. 4.0. More... | |
struct | bt_hid_mouse_data_s |
The structure type containing the HID mouse event information. . More... | |
struct | bt_hid_key_data_s |
The structure type containing the HID keyboard event information. More... | |
struct | bt_hid_device_received_data_s |
The structure type containing data received from the HID Host. . More... | |
struct | bt_pbap_vcard_info_s |
The structure type containing vCard information. 3.0. More... | |
Typedefs | |
typedef 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. More... | |
typedef 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. More... | |
typedef 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.0. More... | |
typedef 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. More... | |
typedef void * | bt_advertiser_h |
The handle to control Bluetooth LE advertising. 2.3. More... | |
typedef void * | bt_gatt_h |
The handle of a service, characteristic or descriptor. 2.3.1. More... | |
typedef void * | bt_gatt_client_h |
The handle of a GATT client which is associated with a remote device. 2.3.1. More... | |
typedef void * | bt_gatt_server_h |
The handle of a GATT server. 3.0. More... | |
typedef void * | bt_call_list_h |
The handle of calls state. 2.3. More... | |
typedef void(* | bt_ipsp_init_state_changed_cb) (int result, bool ipsp_initialized, void *user_data) |
Called when the IPSP initialization state changes. 4.0. More... | |
typedef 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. More... | |
typedef 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. More... | |
typedef void(* | bt_adapter_name_changed_cb) (char *device_name, void *user_data) |
Called when adapter name changes. 2.3. More... | |
typedef 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. More... | |
typedef 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_DISCOVERABLE. 2.3. More... | |
typedef 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. More... | |
typedef bool(* | bt_adapter_bonded_device_cb) (bt_device_info_s *device_info, void *user_data) |
Called when you get bonded devices repeatedly. 2.3. More... | |
typedef 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. More... | |
typedef 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. More... | |
typedef 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. More... | |
typedef bool(* | bt_device_connected_profile) (bt_profile_e profile, void *user_data) |
Called when you get connected profiles repeatedly. 2.3. More... | |
typedef void(* | bt_device_bond_destroyed_cb) (int result, char *remote_address, void *user_data) |
Called when the bond destroys. 2.3. More... | |
typedef 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. More... | |
typedef 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. More... | |
typedef 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. More... | |
typedef void(* | bt_socket_data_received_cb) (bt_socket_received_data_s *data, void *user_data) |
Called when you receive data. 2.3. More... | |
typedef 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. More... | |
typedef 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. More... | |
typedef void(* | bt_opp_server_connection_requested_cb) (const char *remote_address, void *user_data) |
Called when an OPP connection is requested. More... | |
typedef 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. More... | |
typedef 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. More... | |
typedef 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. More... | |
typedef 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. More... | |
typedef 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. More... | |
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) |
Called when the connection state is changed. More... | |
typedef 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. More... | |
typedef 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. More... | |
typedef 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. More... | |
typedef 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. More... | |
typedef 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. More... | |
typedef 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. More... | |
typedef 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. More... | |
typedef 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. More... | |
typedef 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. More... | |
typedef 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. More... | |
typedef 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. More... | |
typedef 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. More... | |
typedef 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. More... | |
typedef 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. More... | |
typedef 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. More... | |
typedef 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. More... | |
typedef 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. More... | |
typedef 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's GATT handle has been changed. 2.3.1. More... | |
typedef void(* | bt_hrp_connection_state_changed_cb) (int result, bool connected, const char *remote_address) |
Called when the connection state is changed. More... | |
typedef 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. More... | |
typedef 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. More... | |
typedef 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's GATT handle has been changed. More... | |
typedef 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. More... | |
typedef 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 characteristics. More... | |
typedef 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 characteristics for HRP. More... | |
typedef 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. More... | |
typedef 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. More... | |
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) |
Called when the connection state is changed. More... | |
typedef 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. More... | |
typedef 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. More... | |
typedef 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. More... | |
typedef 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. More... | |
typedef 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. More... | |
typedef 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. More... | |
typedef void * | bt_scan_filter_h |
The handle of a Bluetooth LE scan filter. 4.0. More... | |
Enumerations |
API to control the Bluetooth adapter, devices and communications.
Definition in file bluetooth_type.h.
typedef bool(* bt_adapter_bonded_device_cb) (bt_device_info_s *device_info, void *user_data) |
Called when you get bonded devices repeatedly. 2.3.
[in] | device_info | The bonded device information |
[in] | user_data | The user data passed from the foreach function |
true
to continue with the next iteration of the loop, false
to break out of the loop. Definition at line 1156 of file bluetooth_type.h.
typedef 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.
[in] | result | The result of the device discovery |
[in] | discovery_state | The discovery state to be changed |
[in] | discovery_info | The information of the discovered device If discovery_state is BT_ADAPTER_DEVICE_DISCOVERY_STARTED or BT_ADAPTER_DEVICE_DISCOVERY_FINISHED, then discovery_info is NULL. |
[in] | user_data | The user data passed from the callback registration function |
Definition at line 1140 of file bluetooth_type.h.
typedef 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.
[out] | result | The result of the requested state change of advertiser |
[out] | advertiser | The handle of the state changed advertiser |
[out] | adv_state | The advertiser state to be changed |
[out] | user_data | The user data passed from the start function |
Definition at line 1186 of file bluetooth_type.h.
typedef 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.
[in] | result | The result of the LE scan |
[in] | info | The information of the found LE advertisement. |
[in] | user_data | The user data passed from the start function |
Definition at line 1170 of file bluetooth_type.h.
typedef void(* bt_adapter_name_changed_cb) (char *device_name, void *user_data) |
Called when adapter name changes. 2.3.
[in] | device_name | The name of the Bluetooth device to be changed |
[in] | user_data | The user data passed from the callback registration function |
Definition at line 1081 of file bluetooth_type.h.
typedef 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.
[in] | result | The result of the adapter state changing |
[in] | adapter_state | The adapter state to be changed |
[in] | user_data | The user data passed from the callback registration function |
Definition at line 1066 of file bluetooth_type.h.
typedef 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_DISCOVERABLE. 2.3.
[in] | duration | The duration until the visibility mode is changed to BT_ADAPTER_VISIBILITY_MODE_NON_DISCOVERABLE (in seconds) |
[in] | user_data | The user data passed from the callback registration function |
Definition at line 1113 of file bluetooth_type.h.
typedef 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.
[in] | result | The result of the visibility mode changing |
[in] | visibility_mode | The visibility mode to be changed |
[in] | user_data | The user data passed from the callback registration function |
Definition at line 1099 of file bluetooth_type.h.
typedef void* bt_advertiser_h |
The handle to control Bluetooth LE advertising. 2.3.
Definition at line 772 of file bluetooth_type.h.
typedef 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.
[in] | event | The call handling event happened from Hands-Free |
[in] | call_id | The call ID |
[in] | user_data | The user data passed from the callback registration function |
Definition at line 1451 of file bluetooth_type.h.
typedef 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.
[in] | dtmf | The DTMF transmitted from Hands-Free |
[in] | user_data | The user data passed from the callback registration function |
Definition at line 1475 of file bluetooth_type.h.
typedef 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.
[in] | gain | The gain of microphone (0 ~ 15) |
[in] | user_data | The user data passed from the callback registration function |
Definition at line 1499 of file bluetooth_type.h.
typedef 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.
[in] | event | The call handling event happened from Hands-Free |
[in] | user_data | The user data passed from the callback registration function |
Definition at line 1463 of file bluetooth_type.h.
typedef 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.
[in] | gain | The gain of speaker (0 ~ 15) |
[in] | user_data | The user data passed from the callback registration function |
Definition at line 1487 of file bluetooth_type.h.
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) |
Called when the connection state is changed.
This callback is called when the connection state is changed. 2.3 When you call bt_audio_connect() or bt_audio_disconnect(), this callback is also called with error result even though these functions fail.
[in] | result | The result of changing the connection state |
[in] | connected | The state to be changed. true means connected state, Otherwise, false. |
[in] | remote_address | The remote address |
[in] | type | The type of audio profile except BT_AUDIO_PROFILE_TYPE_ALL |
[in] | user_data | The user data passed from the callback registration function |
Definition at line 1438 of file bluetooth_type.h.
typedef 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.
[in] | connected | The state to be changed. true means connected state, Otherwise, false. |
[in] | remote_address | The remote address |
[in] | user_data | The user data passed from the callback registration function |
Definition at line 606 of file bluetooth_type.h.
typedef 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.
[in] | equalizer | The equalizer state |
[in] | user_data | The user data passed from the callback registration function |
Definition at line 1524 of file bluetooth_type.h.
typedef 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.
[in] | play_state | The song play status |
[in] | user_data | The user data passed from the callback registration function |
Definition at line 639 of file bluetooth_type.h.
typedef 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.
[in] | position | Playback position in milliseconds. When position is 0 it means the track is starting and when it's greater than or equal to track's duration the track has ended. |
[in] | user_data | The user data passed from the callback registration function |
Definition at line 617 of file bluetooth_type.h.
typedef 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.
[in] | repeat | The repeat mode |
[in] | user_data | The user data passed from the callback registration function |
Definition at line 1536 of file bluetooth_type.h.
typedef 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.
[in] | scan | The scan mode |
[in] | user_data | The user data passed from the callback registration function |
Definition at line 1560 of file bluetooth_type.h.
typedef 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.
[in] | shuffle | The shuffle mode |
[in] | user_data | The user data passed from the callback registration function |
Definition at line 1548 of file bluetooth_type.h.
typedef 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.
[in] | connected | The state to be changed. true means connected state, Otherwise, false. |
[in] | remote_address | The remote address |
[in] | user_data | The user data passed from the callback registration function |
Definition at line 1512 of file bluetooth_type.h.
typedef 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.0.
[in] | track | The song metadata information |
[in] | user_data | The user data passed from the callback registration function |
Definition at line 628 of file bluetooth_type.h.
typedef void* bt_call_list_h |
The handle of calls state. 2.3.
Definition at line 860 of file bluetooth_type.h.
typedef 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.
[in] | authorization | The authorization of device |
[in] | remote_address | The address of the remote Bluetooth device which is (un)authorized |
[in] | user_data | The user data passed from the callback registration function |
Definition at line 1260 of file bluetooth_type.h.
typedef 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.
[in] | result | The result of the bonding device |
[in] | device_info | The device information which you creates bond with |
[in] | user_data | The user data passed from the callback registration function |
Definition at line 1212 of file bluetooth_type.h.
typedef void(* bt_device_bond_destroyed_cb) (int result, char *remote_address, void *user_data) |
Called when the bond destroys. 2.3.
[in] | result | The result that a bond is destroyed |
[in] | remote_address | The address of the remote Bluetooth device to destroy bond with |
[in] | user_data | The user data passed from the callback registration function |
Definition at line 1243 of file bluetooth_type.h.
typedef bool(* bt_device_connected_profile) (bt_profile_e profile, void *user_data) |
Called when you get connected profiles repeatedly. 2.3.
[in] | profile | The connected Bluetooth profile |
[in] | user_data | The user data passed from the foreach function |
true
to continue with the next iteration of the loop, false
to break out of the loop. Definition at line 1226 of file bluetooth_type.h.
typedef 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.
[in] | connected | The connection status: (true = connected, false = disconnected) |
[in] | conn_info | The connection information |
[in] | user_data | The user data passed from the callback registration function |
Definition at line 1291 of file bluetooth_type.h.
typedef 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.
[in] | result | The result of the service searching |
[in] | sdp_info | The structure of service lists found on a device |
[in] | user_data | The user data passed from the callback registration function |
Definition at line 1278 of file bluetooth_type.h.
typedef 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.
[in] | client | The handle of a GATT client which is associated with a remote device |
[in] | mtu_info | The MTU information |
[in] | user_data | The user data passed from the callback registration function |
Definition at line 1675 of file bluetooth_type.h.
typedef 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's GATT handle has been changed. 2.3.1.
[in] | characteristic | The characteristic's GATT handle of which value change is informed. It has an old value. |
[in] | value | The new value |
[in] | len | The length of value |
[in] | user_data | The user data passed from the registering function |
Definition at line 1709 of file bluetooth_type.h.
typedef void* bt_gatt_client_h |
The handle of a GATT client which is associated with a remote device. 2.3.1.
Definition at line 846 of file bluetooth_type.h.
typedef 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.
[in] | result | The result of a request |
[in] | request_handle | The requesting GATT handle |
[in] | user_data | The user data passed from the requesting function |
Definition at line 1691 of file bluetooth_type.h.
typedef 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.
[in] | client | The handle of a GATT client which is associated with a remote device. |
[in] | change_type | The changed type |
[in] | service_uuid | The changed service uuid |
[in] | user_data | The user data passed from the registering function |
Definition at line 1740 of file bluetooth_type.h.
typedef 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.
This callback is called when the connection state is changed. When you called bt_gatt_connect() or bt_gatt_disconnect(), this callback is also called with error result even though these functions fail.
2.3
[in] | result | The result of changing the connection state. |
[in] | connected | The state to be changed, true means connected state, Otherwise, false. |
[in] | remote_address | The remote_address |
[in] | user_data | The user data passed from the callback registration function. |
Definition at line 1762 of file bluetooth_type.h.
typedef 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.
[in] | total | The total number of GATT handles to be called |
[in] | index | The index of current GATT handle. It starts from 0. |
[in] | gatt_handle | The GATT handle |
[in] | user_data | The user data passed from the foreach function |
Definition at line 1644 of file bluetooth_type.h.
typedef void* bt_gatt_h |
The handle of a service, characteristic or descriptor. 2.3.1.
Definition at line 839 of file bluetooth_type.h.
typedef 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 characteristics.
By using this callback function, server can know notification state.
3.0
[in] | notify | Indicates whether the Notification/Indication is enabled or not |
[in] | server | The GATT server handle |
[in] | gatt_handle | The characteristic's GATT handle to be read |
[in] | user_data | The user data passed from the registration function |
Definition at line 1838 of file bluetooth_type.h.
typedef void* bt_gatt_server_h |
The handle of a GATT server. 3.0.
Definition at line 853 of file bluetooth_type.h.
typedef 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.
[in] | result | The result of a sending operation |
[in] | remote_address | The address of the remote device |
[in] | server | The GATT server handle |
[in] | characteristic | The characteristic's GATT handle |
[in] | completed | If this callback is for the last remote device which enables a CCCD, it will be true. Or it will be false. |
[in] | user_data | The user data passed from the requesting function |
Definition at line 1883 of file bluetooth_type.h.
typedef 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.
For finishing the request, call the function bt_gatt_server_send_response in callback.
3.0
[in] | remote_address | The address of the requesting remote device |
[in] | request_id | The identification of this request. It will be used to send a response. |
[in] | server | The GATT server handle |
[in] | gatt_handle | The characteristic or descriptor's GATT handle to be read |
[in] | offset | The requested offset from where the GATT handle's value is read |
[in] | user_data | The user data passed from the registration function |
Definition at line 1817 of file bluetooth_type.h.
typedef 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's GATT handle has been changed.
For finishing the request, call the function bt_gatt_server_send_response in callback.
3.0
[in] | remote_address | The address of the remote device which requests a change |
[in] | request_id | The identification of this request. It will be used to send a response. |
[in] | server | The GATT server handle |
[in] | gatt_handle | The characteristic or descriptor's GATT handle which has an old value |
[in] | response_needed | Indicates whether a response is required by the remote device - true if required, false if not |
[in] | offset | The requested offset from where the gatt_handle value will be updated |
[in] | value | The new value |
[in] | len | The length of value |
[in] | user_data | The user data passed from the registration function |
Definition at line 1791 of file bluetooth_type.h.
typedef 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.
[in] | result | The result of connecting to the remote device |
[in] | remote_address | The address of connected remote device |
[in] | app_id | The ID of application |
[in] | type | The type of HDP (Health Device Profile) channel |
[in] | channel | The connected data channel |
[in] | user_data | The user data passed from the callback registration function |
Definition at line 1594 of file bluetooth_type.h.
typedef 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.
[in] | channel | The connected data channel |
[in] | data | The received data |
[in] | size | The size of received data (byte) |
[in] | user_data | The user data passed from the callback registration function |
Definition at line 1627 of file bluetooth_type.h.
typedef 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.
[in] | result | The result of disconnecting from the remote device |
[in] | remote_address | The address of disconnected remote device |
[in] | channel | The connected data channel |
[in] | user_data | The user data passed from the callback registration function |
Definition at line 1611 of file bluetooth_type.h.
typedef 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.
The following error codes can be delivered:
BT_ERROR_NONE
BT_ERROR_OPERATION_FAILED
[in] | result | The result of changing the connection state. |
[in] | connected | The requested state. true means the connection is enabled, false means the connection is disabled. |
[in] | remote_address | The remote device's address |
[in] | user_data | The user data passed from the callback registration function |
Definition at line 2025 of file bluetooth_type.h.
typedef 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.
The following error codes can be delivered:
BT_ERROR_NONE
BT_ERROR_OPERATION_FAILED
[in] | data | The data received from the HID Host. |
[in] | user_data | The user data passed from the callback registration function |
Definition at line 2040 of file bluetooth_type.h.
typedef 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.
This callback is called when the connection state is changed. When you call bt_hid_host_connect() or bt_hid_host_disconnect(), this callback is also called with error result even though these functions fail. 2.3
[in] | result | The result of changing the connection state |
[in] | connected | The state to be changed. true means connected state, Otherwise, false. |
[in] | remote_address | The remote address |
[in] | user_data | The user data passed from the callback registration function |
Definition at line 1576 of file bluetooth_type.h.
typedef void(* bt_hrp_connection_state_changed_cb) (int result, bool connected, const char *remote_address) |
Called when the connection state is changed.
This callback is called when the connection state is changed. When you called bt_gatt_connect() or bt_gatt_disconnect(), this callback is also called with error result even though these functions fail.
4.0
[in] | result | The result of changing the connection state. |
[in] | connected | The state to be changed, true means connected state, Otherwise, false. |
[in] | remote_address | The remote_address |
[in] | user_data | The user data passed from the callback registration function. |
Definition at line 1726 of file bluetooth_type.h.
typedef 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 characteristics for HRP.
By using this callback function, server can know notification state.
3.0
[in] | notify | Indicates whether the Notification/Indication is enabled or not |
[in] | server | The GATT server handle |
[in] | gatt_handle | The characteristic's GATT handle to be read |
[in] | user_data | The user data passed from the registration function |
Definition at line 1858 of file bluetooth_type.h.
typedef 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.
[in] | result | The result of the connection or disconnection request |
[in] | connected | The connection status: (true = connected, false = disconnected) |
[in] | remote_address | Address of remote device |
[in] | iface_name | The network interface name for IPv6 network interface |
[in] | user_data | The user data passed from the callback registration function |
Definition at line 972 of file bluetooth_type.h.
typedef void(* bt_ipsp_init_state_changed_cb) (int result, bool ipsp_initialized, void *user_data) |
Called when the IPSP initialization state changes. 4.0.
[in] | result | The result of the initialization or deinitialization request |
[in] | ipsp_initialized | The initialized state: (true = initialized, false = deinitialized) |
[in] | user_data | The user data passed from the initialization request function |
Definition at line 957 of file bluetooth_type.h.
typedef 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.
[in] | connected | Indicates whether a client is connected or disconnected |
[in] | remote_address | The remote address |
[in] | interface_name | The interface name. For example, bnep0, bnep1. |
[in] | user_data | The user data passed from the callback registration function |
Definition at line 1899 of file bluetooth_type.h.
typedef 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.
[in] | result | The result of the push request |
[in] | remote_address | The remote address |
[in] | user_data | The user data passed from the callback registration function |
Definition at line 1421 of file bluetooth_type.h.
typedef 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.
[in] | file | The path of file to be pushed |
[in] | size | The file size (bytes) |
[in] | percent | The progress in percentage (1 ~ 100). 100 means that a file is transferred completely. |
[in] | user_data | The user data passed from the callback registration function |
Definition at line 1409 of file bluetooth_type.h.
typedef 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.
[in] | result | The result of OPP server response |
[in] | remote_address | The remote address |
[in] | user_data | The user data passed from the callback registration function |
Definition at line 1395 of file bluetooth_type.h.
typedef void(* bt_opp_server_connection_requested_cb) (const char *remote_address, void *user_data) |
Called when an OPP connection is requested.
You must call bt_opp_server_accept_connection() if you want to accept. Otherwise, you must call bt_opp_server_reject_connection(). 2.3
[in] | remote_address | The address of remote device |
[in] | user_data | The user data passed from the callback registration function |
Definition at line 1354 of file bluetooth_type.h.
typedef 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.
[in] | result | The result of push |
[in] | file | The path of file to be pushed |
[in] | size | The file size (bytes) |
[in] | user_data | The user data passed from the callback registration function |
Definition at line 1382 of file bluetooth_type.h.
typedef 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.
[in] | file | The path of file to be pushed |
[in] | size | The file size (bytes) |
[in] | percent | The progress in percentage (1 ~ 100) |
[in] | user_data | The user data passed from the callback registration function |
Definition at line 1368 of file bluetooth_type.h.
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) |
Called when the connection state is changed.
This callback is called when the connection state is changed. When you call bt_panu_connect() or bt_panu_disconnect(), this callback is also called with error result even though these functions fail. 2.3
[in] | result | The result of changing the connection state |
[in] | connected | The state to be changed. true means connected state, Otherwise, false. |
[in] | remote_address | The remote address |
[in] | type | The type of PAN service |
[in] | user_data | The user data passed from the callback registration function |
Definition at line 1916 of file bluetooth_type.h.
typedef 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.
The following error codes can be delivered:
BT_ERROR_NONE
BT_ERROR_AUTH_REJECTED
BT_ERROR_AUTHORIZATION_REJECTED
BT_ERROR_SERVICE_NOT_FOUND
BT_ERROR_TIMED_OUT
BT_ERROR_OPERATION_FAILED
3.0
[in] | result | The result of connecting to or disconnecting from the remote device |
[in] | connected | The PBAP connection status (true = connected, false = disconnected) |
[in] | remote_address | The remote device address (remote_address is valid only inside this function. To use outside the callback, make a copy. remote_address should not be freed.) |
[in] | user_data | The user data passed from the callback registration function |
Definition at line 2077 of file bluetooth_type.h.
typedef 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.
The following error codes can be delivered:
BT_ERROR_NONE
BT_ERROR_OPERATION_FAILED
3.0
[in] | result | The result of getting the vcard list |
[in] | remote_address | The remote device address (remote_address is valid only inside this function. To use outside the callback, make a copy. remote_address should not be freed.) |
[in] | vcard_info | List of vcard information (vcard_info is valid only inside this function. To use outside the callback, make a copy. vcard_info should not be freed.) |
[in] | count | Number of contacts in the list |
[in] | user_data | The user data passed from the callback registration function |
Definition at line 2139 of file bluetooth_type.h.
typedef 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.
The received phone book file will be saved in the platform downloads folder.
The following error codes can be delivered:
BT_ERROR_NONE
BT_ERROR_OPERATION_FAILED
3.0
[in] | result | The result of getting the phone book |
[in] | remote_address | The remote device address (remote_address is valid only inside this function. To use outside the callback, make a copy. remote_address should not be freed.) |
[in] | vcf_file | The absolute path of the file in which the vCards are saved (vcf_file is valid only inside this function. To use outside the callback, make a copy. vcf_file should not be freed.) |
[in] | user_data | The user data passed from the callback registration function |
Definition at line 2118 of file bluetooth_type.h.
typedef 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.
The following error codes can be delivered:
BT_ERROR_NONE
BT_ERROR_OPERATION_FAILED
3.0
[in] | result | The result of getting the phone book size |
[in] | remote_address | The remote device address (remote_address is valid only inside this function. To use outside the callback, make a copy. remote_address should not be freed.) |
[in] | size | Size of Phonebook |
[in] | user_data | The user data passed from the callback registration function |
Definition at line 2097 of file bluetooth_type.h.
typedef void* bt_scan_filter_h |
The handle of a Bluetooth LE scan filter. 4.0.
Definition at line 2158 of file bluetooth_type.h.
typedef 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.
[in] | socket_fd | The file descriptor of socket on which a connection is requested |
[in] | remote_address | The address of remote device |
[in] | user_data | The user data passed from the callback registration function |
Definition at line 1340 of file bluetooth_type.h.
typedef 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.
[in] | result | The result of connection state changing |
[in] | connection_state | The connection state |
[in] | connection | The connection information which is established or disconnected |
[in] | user_data | The user data passed from the callback registration function |
Definition at line 1327 of file bluetooth_type.h.
typedef void(* bt_socket_data_received_cb) (bt_socket_received_data_s *data, void *user_data) |
Called when you receive data. 2.3.
[in] | data | The received data from the remote device |
[in] | user_data | The user data passed from the callback registration function |
Definition at line 1308 of file bluetooth_type.h.
Enumerations of the discovery state of Bluetooth device. 2.3.
Definition at line 138 of file bluetooth_type.h.
Enumerations of the Bluetooth advertising filter policy. 2.3.
Definition at line 170 of file bluetooth_type.h.
Enumerations of the Bluetooth advertising mode. 2.3.1.
Definition at line 159 of file bluetooth_type.h.
Enumerations of the Bluetooth advertising state. 2.3.
Enumerator | |
---|---|
BT_ADAPTER_LE_ADVERTISING_STOPPED |
Bluetooth advertising is stopped |
BT_ADAPTER_LE_ADVERTISING_STARTED |
Bluetooth advertising is started |
Definition at line 149 of file bluetooth_type.h.
Enumerations of the Bluetooth LE packet type. 2.3.
Enumerator | |
---|---|
BT_ADAPTER_LE_PACKET_ADVERTISING |
Advertising packet |
BT_ADAPTER_LE_PACKET_SCAN_RESPONSE |
Scan response packet |
Definition at line 185 of file bluetooth_type.h.
Enumeration for the scan filter type. 4.0.
Enumerator | |
---|---|
BT_ADAPTER_LE_SCAN_FILTER_TYPE_IBEACON |
iBeacon filter type |
BT_ADAPTER_LE_SCAN_FILTER_TYPE_PROXIMITY_UUID |
Proximity UUID filter type |
Definition at line 2148 of file bluetooth_type.h.
Enumerations of the Bluetooth le scan mode. 3.0.
Definition at line 195 of file bluetooth_type.h.
enum bt_adapter_state_e |
Enumerations of the Bluetooth adapter state. 2.3.
Enumerator | |
---|---|
BT_ADAPTER_DISABLED |
Bluetooth adapter is disabled |
BT_ADAPTER_ENABLED |
Bluetooth adapter is enabled |
Definition at line 116 of file bluetooth_type.h.
Enumerations of the Bluetooth visibility mode. 2.3.
Enumerator | |
---|---|
BT_ADAPTER_VISIBILITY_MODE_NON_DISCOVERABLE |
Other devices cannot find your device via discovery |
BT_ADAPTER_VISIBILITY_MODE_GENERAL_DISCOVERABLE |
Discoverable mode |
BT_ADAPTER_VISIBILITY_MODE_LIMITED_DISCOVERABLE |
Discoverable mode with time limit. After specific period, it is changed to BT_ADAPTER_VISIBILITY_MODE_NON_DISCOVERABLE. |
Definition at line 126 of file bluetooth_type.h.
Enumerations for the call handling event. 2.3.
Definition at line 488 of file bluetooth_type.h.
Enumerations for the multi call handling event. 2.3.
Definition at line 499 of file bluetooth_type.h.
enum bt_appearance_type_e |
Enumerations of gap appearance type. 2.3.
Definition at line 431 of file bluetooth_type.h.
Enumerations for the types of profiles related with audio. 2.3.
Definition at line 475 of file bluetooth_type.h.
Enumerations for the equalizer state. 2.4.
Enumerator | |
---|---|
BT_AVRCP_EQUALIZER_STATE_OFF |
Equalizer Off |
BT_AVRCP_EQUALIZER_STATE_ON |
Equalizer On |
Definition at line 512 of file bluetooth_type.h.
Enumeration for the player control commands. 3.0.
Definition at line 569 of file bluetooth_type.h.
Enumerations for the player state. 3.0.
Definition at line 556 of file bluetooth_type.h.
Enumerations for the repeat mode. 2.4.
Enumerator | |
---|---|
BT_AVRCP_REPEAT_MODE_OFF |
Repeat Off |
BT_AVRCP_REPEAT_MODE_SINGLE_TRACK |
Single track repeat |
BT_AVRCP_REPEAT_MODE_ALL_TRACK |
All track repeat |
BT_AVRCP_REPEAT_MODE_GROUP |
Group repeat |
Definition at line 522 of file bluetooth_type.h.
enum bt_avrcp_scan_mode_e |
Enumerations for the scan mode. 2.4.
Enumerator | |
---|---|
BT_AVRCP_SCAN_MODE_OFF |
Scan Off |
BT_AVRCP_SCAN_MODE_ALL_TRACK |
All tracks scan |
BT_AVRCP_SCAN_MODE_GROUP |
Group scan |
Definition at line 545 of file bluetooth_type.h.
Enumerations for the shuffle mode. 2.4.
Enumerator | |
---|---|
BT_AVRCP_SHUFFLE_MODE_OFF |
Shuffle Off |
BT_AVRCP_SHUFFLE_MODE_ALL_TRACK |
All tracks shuffle |
BT_AVRCP_SHUFFLE_MODE_GROUP |
Group shuffle |
Definition at line 534 of file bluetooth_type.h.
enum bt_data_type_float_e |
Enumerations of the float type for GATT handle's value. 2.3.1.
Enumerator | |
---|---|
BT_DATA_TYPE_FLOAT |
32 bit float type |
BT_DATA_TYPE_SFLOAT |
16 bit float type |
Definition at line 672 of file bluetooth_type.h.
enum bt_data_type_int_e |
Enumerations of the integer type for GATT handle's value. 2.3.1.
Definition at line 658 of file bluetooth_type.h.
Enumerations of device address type. 2.3.
Enumerator | |
---|---|
BT_DEVICE_PUBLIC_ADDRESS |
Public address |
BT_DEVICE_RANDOM_ADDRESS |
Random address |
Definition at line 256 of file bluetooth_type.h.
Enumerations of device authorization state. 2.3.
Enumerator | |
---|---|
BT_DEVICE_AUTHORIZED |
The remote Bluetooth device is authorized |
BT_DEVICE_UNAUTHORIZED |
The remote Bluetooth device is unauthorized |
Definition at line 229 of file bluetooth_type.h.
Enumerations of connection link type. 2.3.
Enumerator | |
---|---|
BT_DEVICE_CONNECTION_LINK_BREDR |
BR/EDR link |
BT_DEVICE_CONNECTION_LINK_LE |
LE link |
BT_DEVICE_CONNECTION_LINK_DEFAULT |
The connection type default |
Definition at line 218 of file bluetooth_type.h.
Enumerations of device disconnect reason. 2.3.
Definition at line 206 of file bluetooth_type.h.
Enumerations of the Bluetooth device's LE connection mode. 3.0.
Definition at line 443 of file bluetooth_type.h.
Enumerations of the remote device request types for attributes. 3.0.
Enumerator | |
---|---|
BT_GATT_REQUEST_TYPE_READ |
Read Requested |
BT_GATT_REQUEST_TYPE_WRITE |
Write Requested |
Definition at line 753 of file bluetooth_type.h.
Enumerations of gatt server's service changing mode. 3.0.
Enumerator | |
---|---|
BT_GATT_CLIENT_SERVICE_ADDED |
Service added |
BT_GATT_CLIENT_SERVICE_REMOVED |
Service removed |
Definition at line 729 of file bluetooth_type.h.
enum bt_gatt_permission_e |
Enumerations of the attribute's permission. 3.0.
Definition at line 739 of file bluetooth_type.h.
enum bt_gatt_property_e |
Enumerations of the characteristic's property. 2.3.1.
Definition at line 713 of file bluetooth_type.h.
Enumerations of the service type. 2.3.1.
Enumerator | |
---|---|
BT_GATT_SERVICE_TYPE_PRIMARY |
GATT primary service type |
BT_GATT_SERVICE_TYPE_SECONDARY |
GATT secondary service type |
Definition at line 703 of file bluetooth_type.h.
enum bt_gatt_type_e |
Enumerations of the GATT handle's type. 2.3.1.
Enumerator | |
---|---|
BT_GATT_TYPE_SERVICE |
GATT service type |
BT_GATT_TYPE_CHARACTERISTIC |
GATT characteristic type |
BT_GATT_TYPE_DESCRIPTOR |
GATT descriptor type |
Definition at line 692 of file bluetooth_type.h.
enum bt_gatt_write_type_e |
Enumerations of the write type. 2.3.1.
Enumerator | |
---|---|
BT_GATT_WRITE_TYPE_WRITE_NO_RESPONSE |
Write without response type |
BT_GATT_WRITE_TYPE_WRITE |
Write type |
Definition at line 682 of file bluetooth_type.h.
Enumerations for the data channel type. 2.3.
Enumerator | |
---|---|
BT_HDP_CHANNEL_TYPE_RELIABLE |
Reliable Data Channel |
BT_HDP_CHANNEL_TYPE_STREAMING |
Streaming Data Channel |
Definition at line 648 of file bluetooth_type.h.
Enumerations of the Bluetooth HID handshake type. .
Definition at line 1988 of file bluetooth_type.h.
enum bt_hid_header_type_e |
Enumerations of the Bluetooth HID header type. .
Definition at line 1962 of file bluetooth_type.h.
Enumerations of the Bluetooth HID mouse's button. .
Definition at line 1923 of file bluetooth_type.h.
enum bt_hid_param_type_e |
Enumerations of the Bluetooth HID parameter type. .
Enumerator | |
---|---|
BT_HID_PARAM_DATA_RTYPE_INPUT |
Parameter type: Input |
BT_HID_PARAM_DATA_RTYPE_OUTPUT |
Parameter type: Output |
Definition at line 1978 of file bluetooth_type.h.
Enumerations of major device class. 2.3.
Definition at line 317 of file bluetooth_type.h.
Enumerations of major service class. 2.3.
Definition at line 300 of file bluetooth_type.h.
Enumerations of minor device class. 2.3.
Definition at line 336 of file bluetooth_type.h.
Enumerations for the types of PAN (Personal Area Networking) service. 2.3.
Enumerator | |
---|---|
BT_PANU_SERVICE_TYPE_NAP |
Network Access Point |
Definition at line 763 of file bluetooth_type.h.
Enumeration of address book location for PBAP. 3.0.
Enumerator | |
---|---|
BT_PBAP_SOURCE_DEVICE |
Request for Addressbook from remote device |
BT_PBAP_SOURCE_SIM |
Request for address book from SIM |
Definition at line 780 of file bluetooth_type.h.
enum bt_pbap_field_e |
Enumeration of PBAP fields. 3.0.
Definition at line 44 of file bluetooth_type.h.
Enumeration of folder type. 3.0.
Definition at line 791 of file bluetooth_type.h.
Enumeration of phone book search fields. 3.0.
Enumerator | |
---|---|
BT_PBAP_SEARCH_NAME |
Request for search by name (default) |
BT_PBAP_SEARCH_NUMBER |
Request for search by phone number |
BT_PBAP_SEARCH_SOUND |
Request for search by sound |
Definition at line 805 of file bluetooth_type.h.
enum bt_pbap_sort_order_e |
Enumeration of sorting orders. 3.0.
Enumerator | |
---|---|
BT_PBAP_ORDER_INDEXED |
Filter order indexed (default) |
BT_PBAP_ORDER_ALPHANUMERIC |
Filter order alphanumeric |
BT_PBAP_ORDER_PHONETIC |
Filter order phonetic |
Definition at line 828 of file bluetooth_type.h.
Enumeration of vCard Formats. 3.0.
Enumerator | |
---|---|
BT_PBAP_VCARD_FORMAT_VCARD21 |
vCard format 2.1 (default) |
BT_PBAP_VCARD_FORMAT_VCARD30 |
vCard format 3.0 |
Definition at line 817 of file bluetooth_type.h.
enum bt_profile_e |
Enumerations of Bluetooth profile. 2.3.
Definition at line 239 of file bluetooth_type.h.
enum bt_service_class_t |
Enumerations of service class. 2.3.
Definition at line 266 of file bluetooth_type.h.
Enumerations of Bluetooth socket connection state. 2.3.
Enumerator | |
---|---|
BT_SOCKET_CONNECTED |
RFCOMM is connected |
BT_SOCKET_DISCONNECTED |
RFCOMM is disconnected |
Definition at line 465 of file bluetooth_type.h.
enum bt_socket_role_e |
Enumerations of connected Bluetooth device event role. 2.3.
Enumerator | |
---|---|
BT_SOCKET_UNKNOWN |
Unknown role |
BT_SOCKET_SERVER |
Server role |
BT_SOCKET_CLIENT |
Client role |
Definition at line 454 of file bluetooth_type.h.