Lines Matching full:role
34 /* Hex value if all TMAP role bits are set */
71 /* Extract the TMAP role of the peer and inform application of the value found */ in tmap_char_read()
115 /* Discovered TMAS - Search for TMAP Role characteristic */ in discover_func()
127 /* Discovered TMAP Role characteristic - read value */ in discover_func()
130 LOG_DBG("Could not read peer TMAP Role"); in discover_func()
143 uint16_t role; in read_role() local
145 role = sys_cpu_to_le16(tmap_role); in read_role()
146 LOG_DBG("TMAP: role 0x%04X", role); in read_role()
149 &role, sizeof(role)); in read_role()
163 static bool valid_tmap_role(enum bt_tmap_role role) in valid_tmap_role() argument
165 if (role == 0 || (role & TMAP_ALL_ROLES) != role) { in valid_tmap_role()
166 LOG_DBG("Invalid role %d", role); in valid_tmap_role()
169 if ((role & BT_TMAP_ROLE_CG) != 0 && !IS_ENABLED(CONFIG_BT_TMAP_CG_SUPPORTED)) { in valid_tmap_role()
170 LOG_DBG("Device does not support the CG role"); in valid_tmap_role()
175 if ((role & BT_TMAP_ROLE_CT) != 0 && !IS_ENABLED(CONFIG_BT_TMAP_CT_SUPPORTED)) { in valid_tmap_role()
176 LOG_DBG("Device does not support the CT role"); in valid_tmap_role()
181 if ((role & BT_TMAP_ROLE_UMS) != 0 && !IS_ENABLED(CONFIG_BT_TMAP_UMS_SUPPORTED)) { in valid_tmap_role()
182 LOG_DBG("Device does not support the UMS role"); in valid_tmap_role()
187 if ((role & BT_TMAP_ROLE_UMR) != 0 && !IS_ENABLED(CONFIG_BT_TMAP_UMR_SUPPORTED)) { in valid_tmap_role()
188 LOG_DBG("Device does not support the UMR role"); in valid_tmap_role()
193 if ((role & BT_TMAP_ROLE_BMS) != 0 && !IS_ENABLED(CONFIG_BT_TMAP_BMS_SUPPORTED)) { in valid_tmap_role()
194 LOG_DBG("Device does not support the BMS role"); in valid_tmap_role()
199 if ((role & BT_TMAP_ROLE_BMR) != 0 && !IS_ENABLED(CONFIG_BT_TMAP_BMR_SUPPORTED)) { in valid_tmap_role()
200 LOG_DBG("Device does not support the BMR role"); in valid_tmap_role()
208 int bt_tmap_register(enum bt_tmap_role role) in bt_tmap_register() argument
212 CHECKIF(!valid_tmap_role(role)) { in bt_tmap_register()
213 LOG_DBG("Invalid role: %d", role); in bt_tmap_register()
226 tmap_role = role; in bt_tmap_register()
251 void bt_tmap_set_role(enum bt_tmap_role role) in bt_tmap_set_role() argument
253 tmap_role = role; in bt_tmap_set_role()