/Zephyr-latest/include/zephyr/bluetooth/audio/ |
D | ccid.h | 15 * @brief Bluetooth Content Control Identifier (CCID) 24 * The Content Control Identifier (CCID) API manages CCIDs for @ref BT_UUID_CCID characteristics. 35 /** Minimum CCID value */ 37 /** Maximum CCID value */ 41 * @brief Allocates a CCID value. 44 * @ref BT_UUID_CCID characteristic. Allocating a CCID without registering the characteristic 49 * @retval ccid 8-bit unsigned CCID value on success 55 * @brief Get the GATT attribute of a CCID value 57 * Searches the current GATT database for a CCID characteristic that has the supplied CCID value. 61 * @param ccid The CCID to search for [all …]
|
D | tbs.h | 749 /** Bearer CCID has been read */ 750 bt_tbs_client_read_value_cb ccid; member 1105 * @brief Look up Telephone Bearer Service instance by CCID 1108 * @param ccid The CCID to lookup a service instance for. 1116 uint8_t ccid);
|
D | audio.h | 468 /** Array of 8-bit CCID values */ 1224 * @brief Extract CCID list 1239 * @brief Set the CCID list of a codec configuration metadata. 1826 * @brief Extract CCID list 1841 * @brief Set the CCID list of a codec capability metadata.
|
/Zephyr-latest/subsys/bluetooth/audio/ |
D | ccid.c | 15 #include <zephyr/bluetooth/audio/ccid.h> 22 uint8_t ccid; member 30 uint8_t ccid = 0U; in ccid_attr_cb() local 33 res = attr->read(NULL, attr, &ccid, sizeof(ccid), 0); in ccid_attr_cb() 35 if (res == sizeof(ccid) && search_param->ccid == ccid) { in ccid_attr_cb() 45 const struct bt_gatt_attr *bt_ccid_find_attr(uint8_t ccid) in bt_ccid_find_attr() argument 49 .ccid = ccid, in bt_ccid_find_attr() 63 /* Verify that the CCID is unused and increment until we reach an unused value or until we in bt_ccid_alloc_value() 66 * allocated a CCID. in bt_ccid_alloc_value()
|
D | CMakeLists.txt | 27 # When CONFIG_BT_AUDIO and CONFIG_BT_CONN is enabled we pull in ccid. It is based on CONFIG_BT_CONN 28 # as CCID depends on GATT, and GATT is enabled when CONFIG_BT_CONN=y. 29 zephyr_library_sources_ifdef(CONFIG_BT_CONN ccid.c)
|
D | cap_acceptor.c | 86 bool bt_cap_acceptor_ccid_exist(const struct bt_conn *conn, uint8_t ccid) in bt_cap_acceptor_ccid_exist() argument 89 bt_tbs_client_get_by_ccid(conn, ccid) != NULL) { in bt_cap_acceptor_ccid_exist()
|
D | tbs_client.c | 1215 static void ccid_changed(struct bt_conn *conn, int err, uint8_t inst_index, uint8_t ccid) in ccid_changed() argument 1220 if (listener->ccid != NULL) { in ccid_changed() 1221 listener->ccid(conn, err, inst_index, ccid); in ccid_changed() 1235 uint8_t ccid = 0; in read_ccid_cb() local 1243 if (length == sizeof(ccid)) { in read_ccid_cb() 1244 (void)memcpy(&ccid, data, length); in read_ccid_cb() 1245 LOG_DBG("0x%02x", ccid); in read_ccid_cb() 1254 ccid_changed(conn, cb_err, inst_index, ccid); in read_ccid_cb() 1515 if (length == sizeof(inst->ccid)) { in disc_read_ccid_cb() 1516 inst->ccid = ((uint8_t *)data)[0]; in disc_read_ccid_cb() [all …]
|
D | cap_internal.h | 25 bool bt_cap_acceptor_ccid_exist(const struct bt_conn *conn, uint8_t ccid);
|
D | tbs.c | 18 #include <zephyr/bluetooth/audio/ccid.h> 50 uint8_t ccid; member 718 LOG_DBG("Index %u: CCID 0x%02x", inst_index(inst), inst->ccid); in read_ccid() 720 return bt_gatt_attr_read(conn, attr, buf, len, offset, &inst->ccid, sizeof(inst->ccid)); in read_ccid() 1520 LOG_DBG("Could not allocate CCID: %d", ret); in tbs_inst_init_and_register() 1524 inst->ccid = (uint8_t)ret; in tbs_inst_init_and_register()
|
D | tbs_internal.h | 347 uint8_t ccid; member
|
D | cap_initiator.c | 17 #include <zephyr/bluetooth/audio/ccid.h> 95 /* If the application supplies a CCID list, we verify that the CCIDs exist on our in data_func_cb() 101 const uint8_t ccid = data->data[i]; in data_func_cb() local 102 if (bt_ccid_find_attr(ccid) == NULL) { in data_func_cb() 103 LOG_DBG("Unknown characteristic for CCID 0x%02X", ccid); in data_func_cb()
|
D | ascs.c | 2207 /* Verify that the CCID is a known CCID on the writing device */ in ascs_parse_metadata() 2210 const uint8_t ccid = data_value[i]; in ascs_parse_metadata() local 2212 if (!bt_cap_acceptor_ccid_exist(ep->stream->conn, ccid)) { in ascs_parse_metadata() 2213 LOG_WRN("CCID %u is unknown", ccid); in ascs_parse_metadata()
|
/Zephyr-latest/tests/bluetooth/audio/ccid/src/ |
D | main.c | 13 #include <zephyr/bluetooth/audio/ccid.h> 39 /* Verify that we can allocate more than max CCID if they are not registered */ in ZTEST() 50 const unsigned int ccid = POINTER_TO_UINT(attr->user_data); in read_ccid() local 51 const uint8_t ccid_u8 = (uint8_t)ccid; in read_ccid() 53 zassert_true(ccid <= BT_CCID_MAX); in read_ccid() 75 /* Verify that CCID allocation fails if we have 255 characterstics with it */ in ZTEST()
|
/Zephyr-latest/tests/bluetooth/audio/ccid/ |
D | testcase.yaml | 6 bluetooth.audio.ccid.test:
|
D | CMakeLists.txt | 8 add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/audio/ccid/uut uut)
|
/Zephyr-latest/tests/bluetooth/audio/ccid/uut/ |
D | CMakeLists.txt | 10 ${ZEPHYR_BASE}/subsys/bluetooth/audio/ccid.c
|
/Zephyr-latest/tests/bsim/bluetooth/audio/src/ |
D | tbs_client_test.c | 105 FAIL("Invalid CCID: %u", value); in tbs_client_read_ccid_cb() 109 printk("Read CCID %u on index %u\n", value, inst_index); in tbs_client_read_ccid_cb() 113 FAIL("Could not get instance by CCID: %u", value); in tbs_client_read_ccid_cb() 320 .ccid = tbs_client_read_ccid_cb, 364 printk("Reading GTBS CCID\n"); in test_ccid() 368 FAIL("Read GTBS CCID failed (%d)\n", err); in test_ccid() 379 printk("Reading bearer CCID on index %u\n", i); in test_ccid() 383 FAIL("Read bearer CCID failed (%d)\n", err); in test_ccid()
|
/Zephyr-latest/tests/bluetooth/audio/cap_initiator/uut/ |
D | CMakeLists.txt | 16 ${ZEPHYR_BASE}/subsys/bluetooth/audio/ccid.c
|
/Zephyr-latest/samples/bluetooth/tmap_peripheral/src/ |
D | bap_unicast_sr.c | 222 const uint8_t ccid = data->data[j]; in data_func_cb() local 225 bt_tbs_client_get_by_ccid(default_conn, ccid) != NULL)) { in data_func_cb() 226 printk("CCID %u is unknown", ccid); in data_func_cb()
|
/Zephyr-latest/tests/bluetooth/tester/src/audio/btp/ |
D | btp_ccp.h | 181 uint16_t ccid; member
|
D | btp_mcp.h | 280 uint8_t ccid; member
|
/Zephyr-latest/samples/bluetooth/hap_ha/src/ |
D | ccp_call_ctrl.c | 151 .ccid = ccid_cb,
|
/Zephyr-latest/tests/bluetooth/tester/src/audio/ |
D | btp_ccp.c | 89 ev.ccid = sys_cpu_to_le16(tbs_handles->ccid); in tbs_chrc_handles_ev() 252 tbs_handles.ccid = tbs_inst->ccid_handle; in tbs_client_read_val_cb() 295 .ccid = tbs_client_read_val_cb,
|
D | btp_mcp.c | 297 uint8_t ccid) in btp_send_mcp_content_control_id_ev() argument 304 ev.ccid = ccid; in btp_send_mcp_content_control_id_ev() 571 static void mcc_content_control_id_cb(struct bt_conn *conn, int err, uint8_t ccid) in mcc_content_control_id_cb() argument 576 ccid); in mcc_content_control_id_cb()
|
/Zephyr-latest/doc/connectivity/bluetooth/shell/audio/ |
D | ccp.rst | 69 read_ccid :Read the CCID [<{instance_index, gtbs}>]
|