zephyr/samples/bluetooth/handsfree
Lyle Zhu c0f7aefe55 Bluetooth: BR: Support limited discoverable mode
Add a Kconfig BT_LIMITED_DISCOVERABLE_DURATION to set the timeout for
limited discoverable mode.

Add a argument `limited` to function `bt_br_set_discoverable()` to
support the limited discoverable mode.
When enabling discoverable mode with `limited` is true, both write
LIAC and GIAC to controller and set the bit 13 of COD in function
`bt_br_set_discoverable()`. And start a delay worker with the timeout
CONFIG_BT_LIMITED_DISCOVERABLE_DURATION to disable the discoverable
mode.
When disabling discoverable mode, only set GIAC to controller and
clear bit 13 of COD.

Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
2025-03-07 19:46:53 +01:00
..
boards doc: nxp: nw612: clarify documentation 2025-01-21 15:14:05 +01:00
src Bluetooth: BR: Support limited discoverable mode 2025-03-07 19:46:53 +01:00
CMakeLists.txt
prj.conf
README.rst doc: samples: Adopt code-sample-category across tree 2024-09-23 12:00:00 +02:00
sample.yaml

.. zephyr:code-sample:: bluetooth_handsfree
   :name: Hands-free
   :relevant-api: bt_hfp bluetooth

   Use the Hands-Free Profile (HFP) APIs.

Overview
********

Application demonstrating usage of the Hands-free Profile (HFP) APIs.

Requirements
************

* BlueZ running on the host, or
* A board with Bluetooth BR/EDR (Classic) support

Building and Running
********************

This sample can be found under :zephyr_file:`samples/bluetooth/handsfree` in
the Zephyr tree.

See :zephyr:code-sample-category:`bluetooth` samples for details.