Zephyr API Documentation  3.5.0
A Scalable Open Source RTOS
3.5.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
tmap.h
Go to the documentation of this file.
1
9#ifndef ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_TMAP_
10#define ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_TMAP_
11
13#include <zephyr/sys/util.h>
14
23};
24
26struct bt_tmap_cb {
36 void (*discovery_complete)(enum bt_tmap_role role, struct bt_conn *conn, int err);
37};
38
47
56int bt_tmap_discover(struct bt_conn *conn, const struct bt_tmap_cb *tmap_cb);
57
66
67#endif /* ZEPHYR_INCLUDE_BLUETOOTH_AUDIO_TMAP_ */
Bluetooth connection handling.
#define BIT(n)
Unsigned integer with bit position n set (signed in assembly language).
Definition: util_macro.h:44
TMAP callback structure.
Definition: tmap.h:26
void(* discovery_complete)(enum bt_tmap_role role, struct bt_conn *conn, int err)
TMAP discovery complete callback.
Definition: tmap.h:36
void bt_tmap_set_role(enum bt_tmap_role role)
Set one or multiple TMAP roles dynamically.
int bt_tmap_register(enum bt_tmap_role role)
Adds TMAS instance to database and sets the received TMAP role(s).
bt_tmap_role
TMAP Role characteristic.
Definition: tmap.h:16
@ BT_TMAP_ROLE_UMR
Definition: tmap.h:20
@ BT_TMAP_ROLE_UMS
Definition: tmap.h:19
@ BT_TMAP_ROLE_CG
Definition: tmap.h:17
@ BT_TMAP_ROLE_BMS
Definition: tmap.h:21
@ BT_TMAP_ROLE_CT
Definition: tmap.h:18
@ BT_TMAP_ROLE_BMR
Definition: tmap.h:22
int bt_tmap_discover(struct bt_conn *conn, const struct bt_tmap_cb *tmap_cb)
Perform service discovery as TMAP Client.
Misc utilities.