Home
last modified time | relevance | path

Searched full:ccc (Results 1 – 25 of 74) sorted by relevance

123

/Zephyr-latest/drivers/i3c/
Di3c_ccc.c34 ccc_payload.ccc.id = I3C_CCC_GETBCR; in i3c_ccc_do_getbcr()
57 ccc_payload.ccc.id = I3C_CCC_GETDCR; in i3c_ccc_do_getdcr()
80 ccc_payload.ccc.id = I3C_CCC_GETPID; in i3c_ccc_do_getpid()
96 ccc_payload.ccc.id = I3C_CCC_RSTACT(true); in i3c_ccc_do_rstact_all()
99 ccc_payload.ccc.data = &def_byte; in i3c_ccc_do_rstact_all()
100 ccc_payload.ccc.data_len = 1U; in i3c_ccc_do_rstact_all()
130 ccc_payload.ccc.id = I3C_CCC_RSTACT(false); in i3c_ccc_do_rstact()
132 ccc_payload.ccc.data = &def_byte; in i3c_ccc_do_rstact()
133 ccc_payload.ccc.data_len = 1U; in i3c_ccc_do_rstact()
147 ccc_payload.ccc.id = I3C_CCC_RSTDAA; in i3c_ccc_do_rstdaa_all()
[all …]
Di3c_shell.c570 /* i3c ccc rstdaa <device> */
585 shell_error(sh, "I3C: unable to send CCC RSTDAA."); in cmd_i3c_ccc_rstdaa()
598 /* i3c ccc entdaa <device> */
612 /* i3c ccc setaasa <device> */
627 shell_error(sh, "I3C: unable to send CCC SETAASA."); in cmd_i3c_ccc_setaasa()
642 /* i3c ccc setdasa <device> <target> <dynamic address> */
667 shell_error(sh, "I3C: unable to send CCC SETDASA."); in cmd_i3c_ccc_setdasa()
684 /* i3c ccc setnewda <device> <target> <dynamic address> */
711 shell_error(sh, "I3C: unable to send CCC SETDASA."); in cmd_i3c_ccc_setnewda()
727 /* i3c ccc getbcr <device> <target> */
[all …]
Di3c_handlers.c18 if (payload->ccc.data != NULL) { in z_vrfy_i3c_do_ccc()
19 K_OOPS(K_SYSCALL_MEMORY_ARRAY_READ(payload->ccc.data, in z_vrfy_i3c_do_ccc()
20 payload->ccc.data_len, in z_vrfy_i3c_do_ccc()
21 sizeof(*payload->ccc.data))); in z_vrfy_i3c_do_ccc()
22 K_OOPS(K_SYSCALL_MEMORY_ARRAY_WRITE(payload->ccc.data, in z_vrfy_i3c_do_ccc()
23 payload->ccc.data_len, in z_vrfy_i3c_do_ccc()
24 sizeof(*payload->ccc.data))); in z_vrfy_i3c_do_ccc()
Di3c_stm32.c57 STM32_I3C_SF_CCC, /* First part of CCC command state*/
58 STM32_I3C_SF_CCC_P2, /* Second part of CCC command state (used for direct commands)*/
68 STM32_I3C_MSG_CCC, /* First part of CCC command state*/
69 STM32_I3C_MSG_CCC_P2, /* Second part of CCC command state (used for direct commands)*/
125 struct i3c_ccc_payload *ccc_payload; /* Current CCC message payload */
127 ccc_target_payload; /* Current target addressed by 2nd part of direct CCC command */
130 * by 2nd part of direct CCC command used by the
848 LOG_ERR("Illegally formatted CCC detected"); in i3c_stm32_log_err_type()
975 if (payload->ccc.id == I3C_CCC_ENTDAA) { in i3c_stm32_do_ccc()
979 /* Check if payload has targets when sending a direct CCC */ in i3c_stm32_do_ccc()
[all …]
Di3c_mcux.c1320 * @brief Send Common Command Code (CCC).
1325 * @param payload Pointer to CCC payload.
1354 LOG_DBG("CCC[0x%02x]", payload->ccc.id); in mcux_i3c_do_ccc()
1359 LOG_ERR("CCC[0x%02x] %s START error (%d)", in mcux_i3c_do_ccc()
1360 payload->ccc.id, in mcux_i3c_do_ccc()
1367 /* Write the CCC code */ in mcux_i3c_do_ccc()
1370 ret = mcux_i3c_do_one_xfer_write(base, &payload->ccc.id, 1, in mcux_i3c_do_ccc()
1371 payload->ccc.data_len > 0); in mcux_i3c_do_ccc()
1373 LOG_ERR("CCC[0x%02x] %s command error (%d)", in mcux_i3c_do_ccc()
1374 payload->ccc.id, in mcux_i3c_do_ccc()
[all …]
Di3c_cdns.c1117 /* Check if HJ requests DISEC CCC with DISHJ field set has been received */ in cdns_i3c_target_ibi_raise_hj()
1325 * @brief Send Common Command Code (CCC).
1330 * @param payload Pointer to CCC payload.
1359 1 + ((payload->ccc.data_len > 0) ? payload->targets.num_targets in cdns_i3c_do_ccc()
1369 i3c_ccc_is_payload_broadcast(payload) ? ROUND_UP(payload->ccc.data_len, 4) : 0; in cdns_i3c_do_ccc()
1383 LOG_DBG("%s: CCC[0x%02x]", dev->name, payload->ccc.id); in cdns_i3c_do_ccc()
1393 /* if this is a direct CCC */ in cdns_i3c_do_ccc()
1395 /* if the CCC has no data bytes, then the target payload must be in in cdns_i3c_do_ccc()
1401 cmd->cmd1 = CMD1_FIFO_CCC(payload->ccc.id); in cdns_i3c_do_ccc()
1404 if (payload->ccc.data_len == 1) { in cdns_i3c_do_ccc()
[all …]
Di3c_npcx.c469 * param[in] addr Dyamic address for xfer or 0x7E for CCC command.
1478 * brief: Send Common Command Code (CCC).
1481 * param[in] payload Pointer to CCC payload.
1511 LOG_DBG("CCC[0x%02x]", payload->ccc.id); in npcx_i3c_do_ccc()
1517 LOG_ERR("CCC[0x%02x] %s START error (%d)", payload->ccc.id, in npcx_i3c_do_ccc()
1523 /* Write CCC command */ in npcx_i3c_do_ccc()
1526 xfered_len = npcx_i3c_xfer_write_fifo(inst, &payload->ccc.id, 1, payload->ccc.data_len > 0); in npcx_i3c_do_ccc()
1528 LOG_ERR("CCC[0x%02x] %s command error (%d)", payload->ccc.id, in npcx_i3c_do_ccc()
1535 /* Write data (defining byte or data bytes) for CCC if needed */ in npcx_i3c_do_ccc()
1536 if (payload->ccc.data_len > 0) { in npcx_i3c_do_ccc()
[all …]
/Zephyr-latest/tests/bsim/bluetooth/host/security/ccc_update/
Dprj_2.conf1 # Disable CCC lazy loading, this cause the CCC config to not be cleared at
Dprj.conf4 CONFIG_BT_DEVICE_NAME="CCC Update Test"
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/ccc_store/
Dprj_2.conf4 CONFIG_BT_DEVICE_NAME="CCC Store Test"
23 # Test that CCC is stored even if BT_SETTINGS_DELAYED_STORE is enabled
Dprj.conf4 CONFIG_BT_DEVICE_NAME="CCC Store Test"
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/sc_indicate/src/
Dcentral.c30 CCC, enumerator
62 subscribe_params.ccc_handle = gatt_handles[CCC]; in subscribe()
112 LOG_DBG("found ccc"); in discover_func()
113 gatt_handles[CCC] = attr->handle; in discover_func()
139 LOG_DBG("ccc handle: %d", gatt_handles[CCC]); in gatt_discover()
Dperipheral.c33 LOG_DBG("CCC Update: notification %s", notif_enabled ? "enabled" : "disabled"); in new_svc_ccc_cfg_changed()
/Zephyr-latest/doc/_extensions/zephyr/domain/static/css/
Dcodesample-livesearch.css18 border: 1px solid #ccc;
30 color: #ccc;
/Zephyr-latest/subsys/bluetooth/host/
Dgatt.c54 /* Persistent storage format for GATT CCC */
1101 * random addresses in the ccc attribute's cfg array with the device's id address after
1112 struct _bt_gatt_ccc *ccc; in convert_to_id_on_match() local
1119 ccc = attr->user_data; in convert_to_id_on_match()
1124 for (size_t i = 0; i < ARRAY_SIZE(ccc->cfg); i++) { in convert_to_id_on_match()
1125 if (bt_addr_le_eq(&ccc->cfg[i].peer, match->private_addr)) { in convert_to_id_on_match()
1126 bt_addr_le_copy(&ccc->cfg[i].peer, match->id_addr); in convert_to_id_on_match()
1136 /* Update the ccc cfg addresses */ in bt_gatt_identity_resolved()
1145 /* Store the ccc */ in bt_gatt_identity_resolved()
1164 /* Store the ccc and cf data */ in bt_gatt_pairing_complete()
[all …]
DKconfig.gatt78 forgot the CCC values and sets them again. If this behavior is not
198 bool "Support to automatic discover the CCC handles of characteristics"
201 This option enables support for GATT to initiate discovery for CCC
202 handles if the CCC handle is unknown by the application.
/Zephyr-latest/include/zephyr/drivers/i3c/
Dccc.h28 /** Maximum CCC ID for broadcast */
233 * @brief Payload structure for Direct CCC to one target.
243 * - For Write CCC, pointer to the byte array of data
246 * - For Read CCC, pointer to the byte buffer for data
265 * @brief Payload structure for one CCC transaction.
270 * The CCC ID (@c I3C_CCC_*).
275 * Pointer to byte array of data for this CCC.
277 * This is the bytes following the CCC command in CCC frame.
292 } ccc; member
299 * payloads for this CCC.
[all …]
/Zephyr-latest/tests/bsim/bluetooth/ll/edtt/gatt_test_app/src/gatt/
Dgatt_macs.h139 * Helper macro to declare a Managed CCC attribute.
141 * @param _ccc CCC attribute user data, shall point to a _bt_gatt_ccc.
142 * @param _perm CCC access permissions.
152 * Helper macro to declare a CCC attribute.
174 * Helper macro to declare a CCC attribute.
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/settings/src/
Dclient.c36 /* We should normally wait until we are bonded to write the CCC / CF in client_round_0()
39 * The CCC and CF should still persist on reboot. in client_round_0()
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/settings_clear/src/
Dserver.c42 LOG_INF("CCC Update: notification %s", notif_enabled ? "enabled" : "disabled"); in ccc_cfg_changed()
114 * - `client`: GATT client, when connected, will subscribe to CCC in server_procedure()
/Zephyr-latest/include/zephyr/bluetooth/
Dgatt.h587 * bond configuration loaded, i.e. CCC values, must be registered before
935 /** @brief GATT CCC configuration entry. */
945 /** Internal representation of CCC value */
953 /** @brief CCC attribute changed callback
960 /** @brief CCC attribute write validation callback
964 * @param value CCC value to write
972 /** @brief CCC attribute match handler
989 * Read CCC attribute value from local database storing the result into buffer
1009 * Write value in the buffer into CCC attribute.
1031 * Helper macro to initialize a Managed CCC attribute value.
[all …]
/Zephyr-latest/tests/bsim/bluetooth/audio/src/
Dpacs_notify_client_test.c122 LOG_DBG("CCC handle at %d", attr->handle); in discover_supported_contexts()
189 LOG_DBG("CCC handle at %d", attr->handle); in discover_available_contexts()
256 LOG_DBG("CCC handle at %d", attr->handle); in discover_src_loc()
323 LOG_DBG("CCC handle at %d", attr->handle); in discover_snk_loc()
390 LOG_DBG("CCC handle at %d", attr->handle); in discover_pacs_src()
457 LOG_DBG("CCC handle at %d", attr->handle); in discover_pacs_snk()
/Zephyr-latest/subsys/bluetooth/audio/
Daudio_internal.h63 /** Helper to define LE Audio CCC descriptor. */
/Zephyr-latest/dts/bindings/i3c/
Di3c-device.yaml68 Indicates if the device supports the CCC SETAASA. If true, it will
/Zephyr-latest/subsys/bluetooth/services/ots/
Dots.c571 BT_GATT_CCC_MANAGED(&_ots.oacp_ind.ccc, \
577 BT_GATT_CCC_MANAGED(&_ots.olcp_ind.ccc, \
680 /* Initialize CCC descriptors for characteristics with in bt_gatt_ots_instances_prepare()
683 instance->oacp_ind.ccc.cfg_changed = in bt_gatt_ots_instances_prepare()
685 instance->olcp_ind.ccc.cfg_changed = in bt_gatt_ots_instances_prepare()

123