| 
    Zephyr Project API
    3.3.0
    
   A Scalable Open Source RTOS 
   | 
 
#include <zephyr/types.h>#include <zephyr/device.h>#include <zephyr/toolchain.h>#include <zephyr/sys/util.h>Go to the source code of this file.
Data Structures | |
| struct | i3c_ccc_target_payload | 
| Payload structure for Direct CCC to one target.  More... | |
| struct | i3c_ccc_payload | 
| Payload structure for one CCC transaction.  More... | |
| struct | i3c_ccc_events | 
| Payload for ENEC/DISEC CCC (Target Events Command).  More... | |
| struct | i3c_ccc_mwl | 
| Payload for SETMWL/GETMWL CCC (Set/Get Maximum Write Length).  More... | |
| struct | i3c_ccc_mrl | 
| Payload for SETMRL/GETMRL CCC (Set/Get Maximum Read Length).  More... | |
| struct | i3c_ccc_deftgts_active_controller | 
| The active controller part of payload for DEFTGTS CCC.  More... | |
| struct | i3c_ccc_deftgts_target | 
| The target device part of payload for DEFTGTS CCC.  More... | |
| struct | i3c_ccc_deftgts | 
| Payload for DEFTGTS CCC (Define List of Targets).  More... | |
| struct | i3c_ccc_address | 
| Payload for a single device address.  More... | |
| struct | i3c_ccc_getpid | 
| Payload for GETPID CCC (Get Provisioned ID).  More... | |
| struct | i3c_ccc_getbcr | 
| Payload for GETBCR CCC (Get Bus Characteristics Register).  More... | |
| struct | i3c_ccc_getdcr | 
| Payload for GETDCR CCC (Get Device Characteristics Register).  More... | |
| union | i3c_ccc_getstatus | 
| Payload for GETSTATUS CCC (Get Device Status).  More... | |
| struct | i3c_ccc_setbrgtgt_tgt | 
| One Bridged Target for SETBRGTGT payload.  More... | |
| struct | i3c_ccc_setbrgtgt | 
| Payload for SETBRGTGT CCC (Set Bridge Targets).  More... | |
| union | i3c_ccc_getmxds | 
| Payload for GETMXDS CCC (Get Max Data Speed).  More... | |
| struct | i3c_ccc_getcaps | 
| Payload for GETCAPS CCC (Get Optional Feature Capabilities).  More... | |
Enumerations | |
| enum | i3c_ccc_getstatus_fmt { GETSTATUS_FORMAT_1 , GETSTATUS_FORMAT_2 } | 
| Indicate which format of GETSTATUS to use.  More... | |
| enum | i3c_ccc_getstatus_defbyte { GETSTATUS_FORMAT_2_TGTSTAT = 0x00U , GETSTATUS_FORMAT_2_PRECR = 0x91U , GETSTATUS_FORMAT_2_INVALID = 0x100U } | 
| enum | i3c_ccc_rstact_defining_byte {  I3C_CCC_RSTACT_NO_RESET = 0x00U , I3C_CCC_RSTACT_PERIPHERAL_ONLY = 0x01U , I3C_CCC_RSTACT_RESET_WHOLE_TARGET = 0x02U , I3C_CCC_RSTACT_DEBUG_NETWORK_ADAPTER = 0x03U , I3C_CCC_RSTACT_VIRTUAL_TARGET_DETECT = 0x04U }  | 
Functions | |
| static bool | i3c_ccc_is_payload_broadcast (const struct i3c_ccc_payload *payload) | 
| Test if I3C CCC payload is for broadcast.  More... | |
| int | i3c_ccc_do_getbcr (struct i3c_device_desc *target, struct i3c_ccc_getbcr *bcr) | 
| Get BCR from a target.  More... | |
| int | i3c_ccc_do_getdcr (struct i3c_device_desc *target, struct i3c_ccc_getdcr *dcr) | 
| Get DCR from a target.  More... | |
| int | i3c_ccc_do_getpid (struct i3c_device_desc *target, struct i3c_ccc_getpid *pid) | 
| Get PID from a target.  More... | |
| int | i3c_ccc_do_rstact_all (const struct device *controller, enum i3c_ccc_rstact_defining_byte action) | 
| Broadcast RSTACT to reset I3C Peripheral.  More... | |
| int | i3c_ccc_do_rstdaa_all (const struct device *controller) | 
| Broadcast RSTDAA to reset dynamic addresses for all targets.  More... | |
| int | i3c_ccc_do_setdasa (const struct i3c_device_desc *target) | 
| Set Dynamic Address from Static Address for a target.  More... | |
| int | i3c_ccc_do_events_all_set (const struct device *controller, bool enable, struct i3c_ccc_events *events) | 
| Broadcast ENEC/DISEC to enable/disable target events.  More... | |
| int | i3c_ccc_do_events_set (struct i3c_device_desc *target, bool enable, struct i3c_ccc_events *events) | 
| Direct CCC ENEC/DISEC to enable/disable target events.  More... | |
| int | i3c_ccc_do_setmwl_all (const struct device *controller, const struct i3c_ccc_mwl *mwl) | 
| Broadcast SETMWL to Set Maximum Write Length.  More... | |
| int | i3c_ccc_do_setmwl (const struct i3c_device_desc *target, const struct i3c_ccc_mwl *mwl) | 
| Single target SETMWL to Set Maximum Write Length.  More... | |
| int | i3c_ccc_do_getmwl (const struct i3c_device_desc *target, struct i3c_ccc_mwl *mwl) | 
| Single target GETMWL to Get Maximum Write Length.  More... | |
| int | i3c_ccc_do_setmrl_all (const struct device *controller, const struct i3c_ccc_mrl *mrl, bool has_ibi_size) | 
| Broadcast SETMRL to Set Maximum Read Length.  More... | |
| int | i3c_ccc_do_setmrl (const struct i3c_device_desc *target, const struct i3c_ccc_mrl *mrl) | 
| Single target SETMRL to Set Maximum Read Length.  More... | |
| int | i3c_ccc_do_getmrl (const struct i3c_device_desc *target, struct i3c_ccc_mrl *mrl) | 
| Single target GETMRL to Get Maximum Read Length.  More... | |
| int | i3c_ccc_do_getstatus (const struct i3c_device_desc *target, union i3c_ccc_getstatus *status, enum i3c_ccc_getstatus_fmt fmt, enum i3c_ccc_getstatus_defbyte defbyte) | 
| Single target GETSTATUS to Get Target Status.  More... | |
| static int | i3c_ccc_do_getstatus_fmt1 (const struct i3c_device_desc *target, union i3c_ccc_getstatus *status) | 
| Single target GETSTATUS to Get Target Status (Format 1).  More... | |
| static int | i3c_ccc_do_getstatus_fmt2 (const struct i3c_device_desc *target, union i3c_ccc_getstatus *status, enum i3c_ccc_getstatus_defbyte defbyte) | 
| Single target GETSTATUS to Get Target Status (Format 2).  More... | |