@@ -179,6 +179,14 @@ extern "C" {
179
179
*/
180
180
#define I3C_CCC_VENDOR (broadcast , id ) ((id) + ((broadcast) ? 0x61U : 0xE0U))
181
181
182
+ /**
183
+ * Reset Dynamic Address (Direct)
184
+ *
185
+ * @note This should not be used by devices that support I3C v1.0 and this
186
+ * shall not be used for devices that support I3C v1.1 or later.
187
+ */
188
+ #define I3C_CCC_RSTDAA_DC 0x86U
189
+
182
190
/** Set Dynamic Address from Static Address (Direct) */
183
191
#define I3C_CCC_SETDASA 0x87U
184
192
@@ -1502,6 +1510,21 @@ static inline int i3c_ccc_do_rstact_fmt3(const struct i3c_device_desc *target,
1502
1510
return i3c_ccc_do_rstact (target , action , true, data );
1503
1511
}
1504
1512
1513
+ /**
1514
+ * @brief Reset dynamic addresses for a targets.
1515
+ *
1516
+ * Helper function to reset a dynamic addresses of a targets.
1517
+ *
1518
+ * @note This should not be used by devices that support I3C v1.0 and this
1519
+ * shall not be used for devices that support I3C v1.1 or later.
1520
+ *
1521
+ * @param[in] target Pointer to the target device descriptor where
1522
+ * the device is configured with a dynamic address.
1523
+ *
1524
+ * @return @see i3c_do_ccc
1525
+ */
1526
+ int i3c_ccc_do_rstdaa (struct i3c_device_desc * target );
1527
+
1505
1528
/**
1506
1529
* @brief Broadcast RSTDAA to reset dynamic addresses for all targets.
1507
1530
*
@@ -1538,7 +1561,7 @@ int i3c_ccc_do_setdasa(const struct i3c_device_desc *target,
1538
1561
* Note this does not update @p target with the new dynamic address.
1539
1562
*
1540
1563
* @param[in] target Pointer to the target device descriptor where
1541
- * the device is configured with a static address.
1564
+ * the device is configured with a dynamic address.
1542
1565
* @param[in] new_da Struct of the Dynamic address
1543
1566
*
1544
1567
* @return @see i3c_do_ccc
0 commit comments