Zephyr Project API 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
ccp.h
Go to the documentation of this file.
1
6/*
7 * Copyright (c) 2024 Nordic Semiconductor ASA
8 *
9 * SPDX-License-Identifier: Apache-2.0
10 */
11
12#ifndef ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_CCP_H_
13#define ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_CCP_H_
14
34#include <stdint.h>
35
36#include <zephyr/autoconf.h>
39#include <zephyr/sys/slist.h>
40
41#ifdef __cplusplus
42extern "C" {
43#endif
50struct bt_ccp_call_control_server_bearer;
51
75 struct bt_ccp_call_control_server_bearer **bearer);
76
93int bt_ccp_call_control_server_unregister_bearer(struct bt_ccp_call_control_server_bearer *bearer);
94
/* End of group bt_ccp_call_control_server */
96
103struct bt_ccp_call_control_client;
104
106struct bt_ccp_call_control_client_bearer;
107
110#if defined(CONFIG_BT_TBS_CLIENT_GTBS)
112 struct bt_ccp_call_control_client_bearer *gtbs_bearer;
113#endif /* CONFIG_BT_TBS_CLIENT_GTBS */
114
115#if defined(CONFIG_BT_TBS_CLIENT_TBS)
117 size_t tbs_count;
118
120 struct bt_ccp_call_control_client_bearer
121 *tbs_bearers[CONFIG_BT_CCP_CALL_CONTROL_CLIENT_BEARER_COUNT];
122#endif /* CONFIG_BT_TBS_CLIENT_TBS */
123};
124
141 void (*discover)(struct bt_ccp_call_control_client *client, int err,
142 struct bt_ccp_call_control_client_bearers *bearers);
143
145 sys_snode_t _node;
146};
147
148int bt_ccp_call_control_client_discover(struct bt_conn *conn,
149 struct bt_ccp_call_control_client **out_client);
150
161
/* End of group bt_ccp_call_control_client */
173#ifdef __cplusplus
174}
175#endif
176
181#endif /* ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_CCP_H_ */
Bluetooth connection handling.
int bt_ccp_call_control_client_discover(struct bt_conn *conn, struct bt_ccp_call_control_client **out_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_register_cb(struct bt_ccp_call_control_client_cb *cb)
Register callbacks for the Call Control Client.
int bt_ccp_call_control_server_register_bearer(const struct bt_tbs_register_param *param, struct bt_ccp_call_control_server_bearer **bearer)
Register a Telephone Bearer.
int bt_ccp_call_control_server_unregister_bearer(struct bt_ccp_call_control_server_bearer *bearer)
Unregister a Telephone Bearer.
struct _snode sys_snode_t
Single-linked list node structure.
Definition slist.h:39
Struct with information about bearers of a client.
Definition ccp.h:109
Struct to hold the Telephone Bearer Service client callbacks.
Definition ccp.h:130
void(* discover)(struct bt_ccp_call_control_client *client, int err, struct bt_ccp_call_control_client_bearers *bearers)
Callback function for bt_ccp_call_control_client_discover().
Definition ccp.h:141
Definition tbs.h:465
Public APIs for Bluetooth Telephone Bearer Service.