|
Zephyr Project API 4.1.0
A Scalable Open Source RTOS
|
Data Structures | |
| struct | bt_ccp_call_control_client_bearers |
| Struct with information about bearers of a client. More... | |
| struct | bt_ccp_call_control_client_cb |
| Struct to hold the Telephone Bearer Service client callbacks. More... | |
Functions | |
| int | bt_ccp_call_control_client_discover (struct bt_conn *conn, struct bt_ccp_call_control_client **out_client) |
| Discovers the Telephone Bearer Service (TBS) support on a remote device. | |
| int | bt_ccp_call_control_client_register_cb (struct bt_ccp_call_control_client_cb *cb) |
| Register callbacks for the Call Control Client. | |
| int | bt_ccp_call_control_client_unregister_cb (struct bt_ccp_call_control_client_cb *cb) |
| Unregister callbacks for the Call Control Client. | |
| int bt_ccp_call_control_client_discover | ( | struct bt_conn * | conn, |
| struct bt_ccp_call_control_client ** | out_client | ||
| ) |
#include <include/zephyr/bluetooth/audio/ccp.h>
Discovers the Telephone Bearer Service (TBS) support on a remote device.
This will discover the Telephone Bearer Service (TBS) and Generic Telephone Bearer Service (GTBS) on the remote device.
CONFIG_BT_CCP_CALL_CONTROL_CLIENT..
| conn | Connection to a remote server. |
| out_client | Pointer to client instance on success |
| 0 | Success |
| -EINVAL | conn or out_client is NULL |
| -ENOTCONN | conn is not connected |
| -ENOMEM | Could not allocated memory for the request |
| -EBUSY | Already doing discovery for conn |
| -ENOEXEC | Rejected by the GATT layer |
| int bt_ccp_call_control_client_register_cb | ( | struct bt_ccp_call_control_client_cb * | cb | ) |
#include <include/zephyr/bluetooth/audio/ccp.h>
Register callbacks for the Call Control Client.
| cb | The callback struct |
| 0 | Succsss |
| -EINVAL | cb is NULL |
| -EEXISTS | cb is already registered |
| int bt_ccp_call_control_client_unregister_cb | ( | struct bt_ccp_call_control_client_cb * | cb | ) |
#include <include/zephyr/bluetooth/audio/ccp.h>
Unregister callbacks for the Call Control Client.
| cb | The callback struct |
| 0 | Succsss |
| -EINVAL | cb is NULL |
| -EALREADY | cb is not registered |