From 9d717e522c7df7070ad7b2f50854921a58f05181 Mon Sep 17 00:00:00 2001 From: dh79pyun Date: Fri, 26 Nov 2021 09:29:56 +0900 Subject: Add the custom scan mode setting API Change-Id: I9fa8453d31c07fa4599246eb0c7ef2d4c6d44029 Signed-off-by: dh79pyun --- include/bluetooth_internal.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/include/bluetooth_internal.h b/include/bluetooth_internal.h index 3532889..cd3e823 100644 --- a/include/bluetooth_internal.h +++ b/include/bluetooth_internal.h @@ -898,6 +898,27 @@ int bt_adapter_le_unset_state_changed_cb(void); */ int bt_adapter_le_set_scan_type(bt_adapter_le_scan_type_e scan_type); +/** + * @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE + * @brief Sets Bluetooth LE customized scan mode + * @since_tizen 7.0 + * @privlevel platform + * @privilege %http://tizen.org/privilege/bluetooth.admin + * @param[in] scan_interval The scan interval + * @param[in] scan_window The scan window + * + * @return 0 on success, otherwise a negative error value. + * @retval #BT_ERROR_NONE Successful + * @retval #BT_ERROR_NOT_INITIALIZED Not initialized + * @retval #BT_ERROR_NOT_ENABLED Adapter is not enabled + * @retval #BT_ERROR_INVALID_PARAMETER Parameter is invalid + * @retval #BT_ERROR_PERMISSION_DENIED Permission denied + * @retval #BT_ERROR_NOT_SUPPORTED Not supported + * @pre The state of local Bluetooth must be #BT_ADAPTER_ENABLED. + * @pre The Bluetooth service must be initialized with bt_initialize(). + */ +int bt_adapter_le_set_customized_scan_mode(float scan_interval, float scan_window); + /** * @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE * @brief Sets the RSSI for the advertisements filter. -- cgit v1.2.3