8#ifndef ZEPHYR_INCLUDE_DRIVERS_I3C_H_
9#define ZEPHYR_INCLUDE_DRIVERS_I3C_H_
86#define I3C_BCR_MAX_DATA_SPEED_LIMIT BIT(0)
89#define I3C_BCR_IBI_REQUEST_CAPABLE BIT(1)
98#define I3C_BCR_IBI_PAYLOAD_HAS_DATA_BYTE BIT(2)
106#define I3C_BCR_OFFLINE_CAPABLE BIT(3)
114#define I3C_BCR_VIRTUAL_TARGET BIT(4)
123#define I3C_BCR_ADV_CAPABILITIES BIT(5)
126#define I3C_BCR_DEVICE_ROLE_I3C_TARGET 0U
129#define I3C_BCR_DEVICE_ROLE_I3C_CONTROLLER_CAPABLE 1U
132#define I3C_BCR_DEVICE_ROLE_MASK GENMASK(7U, 6U)
141#define I3C_BCR_DEVICE_ROLE(bcr) \
142 FIELD_GET(I3C_BCR_DEVICE_ROLE_MASK, (bcr))
167#define I3C_LVR_I2C_FM_PLUS_MODE 0
170#define I3C_LVR_I2C_FM_MODE 1
173#define I3C_LVR_I2C_MODE_MASK BIT(4)
182#define I3C_LVR_I2C_MODE(lvr) \
183 FIELD_GET(I3C_LVR_I2C_MODE_MASK, (lvr))
191#define I3C_LVR_I2C_DEV_IDX_0 0
199#define I3C_LVR_I2C_DEV_IDX_1 1
207#define I3C_LVR_I2C_DEV_IDX_2 2
210#define I3C_LVR_I2C_DEV_IDX_MASK GENMASK(7U, 5U)
219#define I3C_LVR_I2C_DEV_IDX(lvr) \
220 FIELD_GET(I3C_LVR_I2C_DEV_IDX_MASK, (lvr))
307#define I3C_MSG_WRITE (0U << 0U)
310#define I3C_MSG_READ BIT(0)
313#define I3C_MSG_RW_MASK BIT(0)
317#define I3C_MSG_STOP BIT(1)
328#define I3C_MSG_RESTART BIT(2)
331#define I3C_MSG_HDR BIT(3)
334#define I3C_MSG_NBCH BIT(4)
337#define I3C_MSG_HDR_MODE0 BIT(0)
340#define I3C_MSG_HDR_MODE1 BIT(1)
343#define I3C_MSG_HDR_MODE2 BIT(2)
346#define I3C_MSG_HDR_MODE3 BIT(3)
349#define I3C_MSG_HDR_MODE4 BIT(4)
352#define I3C_MSG_HDR_MODE5 BIT(5)
355#define I3C_MSG_HDR_MODE6 BIT(6)
358#define I3C_MSG_HDR_MODE7 BIT(7)
361#define I3C_MSG_HDR_DDR I3C_MSG_HDR_MODE0
364#define I3C_MSG_HDR_TSP I3C_MSG_HDR_MODE1
367#define I3C_MSG_HDR_TSL I3C_MSG_HDR_MODE2
370#define I3C_MSG_HDR_BT I3C_MSG_HDR_MODE3
507__subsystem
struct i3c_driver_api {
517 struct i2c_driver_api i2c_api;
531 int (*configure)(
const struct device *dev,
546 int (*config_get)(
const struct device *dev,
560 int (*recover_bus)(
const struct device *dev);
574 int (*attach_i3c_device)(
const struct device *dev,
590 int (*reattach_i3c_device)(
const struct device *dev,
606 int (*detach_i3c_device)(
const struct device *dev,
621 int (*attach_i2c_device)(
const struct device *dev,
636 int (*detach_i2c_device)(
const struct device *dev,
650 int (*do_daa)(
const struct device *dev);
664 int (*do_ccc)(
const struct device *dev,
679 int (*i3c_xfers)(
const struct device *dev,
710 int (*ibi_hj_response)(
const struct device *dev,
725 int (*ibi_raise)(
const struct device *dev,
740 int (*ibi_enable)(
const struct device *dev,
755 int (*ibi_disable)(
const struct device *dev,
773 int (*target_register)(
const struct device *dev,
791 int (*target_unregister)(
const struct device *dev,
810 int (*target_tx_write)(
const struct device *dev,
813#ifdef CONFIG_I3C_RTIO
824 void (*iodev_submit)(
const struct device *dev,
849#define I3C_DEVICE_ID(pid) \
930#if defined(CONFIG_I3C_USE_GROUP_ADDR) || defined(__DOXYGEN__)
1034 void *controller_priv;
1037#if defined(CONFIG_I3C_USE_IBI) || defined(__DOXYGEN__)
1078 void *controller_priv;
1171#define I3C_BUS_FOR_EACH_I3CDEV(bus, desc) \
1172 SYS_SLIST_FOR_EACH_CONTAINER( \
1173 &((struct i3c_driver_data *)(bus->data))->attached_dev.devices.i3c, desc, node)
1182#define I3C_BUS_FOR_EACH_I2CDEV(bus, desc) \
1183 SYS_SLIST_FOR_EACH_CONTAINER( \
1184 &((struct i3c_driver_data *)(bus->data))->attached_dev.devices.i2c, desc, node)
1305 const struct i3c_driver_api *api =
1306 (
const struct i3c_driver_api *)dev->
api;
1308 if (api->configure == NULL) {
1312 return api->configure(dev, type, config);
1338 const struct i3c_driver_api *api =
1339 (
const struct i3c_driver_api *)dev->
api;
1341 if (api->config_get == NULL) {
1345 return api->config_get(dev, type, config);
1360 const struct i3c_driver_api *api =
1361 (
const struct i3c_driver_api *)dev->
api;
1363 if (api->recover_bus == NULL) {
1367 return api->recover_bus(dev);
1502 const struct i3c_driver_api *api =
1503 (
const struct i3c_driver_api *)dev->
api;
1505 if (api->do_daa == NULL) {
1509 return api->do_daa(dev);
1528static inline int z_impl_i3c_do_ccc(
const struct device *dev,
1531 const struct i3c_driver_api *api =
1532 (
const struct i3c_driver_api *)dev->
api;
1534 if (api->do_ccc == NULL) {
1538 return api->do_ccc(dev, payload);
1578 const struct i3c_driver_api *api =
1579 (
const struct i3c_driver_api *)target->
bus->
api;
1581 return api->i3c_xfers(target->bus, target, msgs, num_msgs);
1604 const struct i3c_driver_api *api =
1605 (
const struct i3c_driver_api *)dev->
api;
1607 if (api->i3c_device_find == NULL) {
1611 return api->i3c_device_find(dev,
id);
1634 const struct i3c_driver_api *api =
1635 (
const struct i3c_driver_api *)dev->
api;
1637 if (api->ibi_hj_response == NULL) {
1641 return api->ibi_hj_response(dev, ack);
1658 const struct i3c_driver_api *api =
1659 (
const struct i3c_driver_api *)dev->
api;
1661 if (api->ibi_raise == NULL) {
1665 return api->ibi_raise(dev, request);
1684 const struct i3c_driver_api *api =
1685 (
const struct i3c_driver_api *)target->
bus->
api;
1687 if (api->ibi_enable == NULL) {
1691 return api->ibi_enable(target->
bus, target);
1708 const struct i3c_driver_api *api =
1709 (
const struct i3c_driver_api *)target->
bus->
api;
1711 if (api->ibi_disable == NULL) {
1715 return api->ibi_disable(target->
bus, target);
1795 msg.
len = num_bytes;
1822 msg.
len = num_bytes;
1848 const void *write_buf,
size_t num_write,
1849 void *read_buf,
size_t num_read)
1854 msg[0].
len = num_write;
1860 msg[1].
len = num_read;
1891 &start_addr,
sizeof(start_addr),
1922 msg[0].
buf = &start_addr;
1929 msg[1].
len = num_bytes;
1955 ®_addr,
sizeof(reg_addr),
1956 value,
sizeof(*value));
1979 uint8_t tx_buf[2] = {reg_addr, value};
2014 new_value = (old_value & ~mask) | (value & mask);
2015 if (new_value == old_value) {
2170#if defined(CONFIG_I3C_RTIO) || defined(__DOXYGEN__)
2199 const struct i3c_driver_api *api = (
const struct i3c_driver_api *)data->
bus->
api;
2201 if (api->iodev_submit == NULL) {
2205 api->iodev_submit(data->
bus, iodev_sqe);
2219#define I3C_DT_IODEV_DEFINE(name, node_id) \
2220 const struct i3c_iodev_data _i3c_iodev_data_##name = { \
2221 .bus = DEVICE_DT_GET(DT_BUS(node_id)), \
2222 .dev_id = I3C_DEVICE_ID_DT(node_id), \
2224 RTIO_IODEV_DEFINE(name, &i3c_iodev_api, (void *)&_i3c_iodev_data_##name)
2264#include <zephyr/syscalls/i3c.h>
workaround assembler barfing for ST r
Definition asm-macro-32-bit-gnu.h:24
Public APIs for the I2C drivers.
i3c_sdr_controller_error_types
I3C SDR Controller Error Types.
Definition error_types.h:24
static int i3c_ibi_disable(struct i3c_device_desc *target)
Disable IBI of a target device.
Definition i3c.h:1706
static int i3c_ibi_has_payload(struct i3c_device_desc *target)
Check if target's IBI has payload.
Definition i3c.h:1729
static int i3c_ibi_raise(const struct device *dev, struct i3c_ibi *request)
Raise an In-Band Interrupt (IBI).
Definition i3c.h:1655
static int i3c_device_is_controller_capable(struct i3c_device_desc *target)
Check if the target is controller capable.
Definition i3c.h:1763
static int i3c_device_is_ibi_capable(struct i3c_device_desc *target)
Check if device is IBI capable.
Definition i3c.h:1746
static int i3c_ibi_enable(struct i3c_device_desc *target)
Enable IBI of a target device.
Definition i3c.h:1682
int(* i3c_target_ibi_cb_t)(struct i3c_device_desc *target, struct i3c_ibi_payload *payload)
Function called when In-Band Interrupt received from target device.
Definition ibi.h:146
static int i3c_ibi_hj_response(const struct device *dev, bool ack)
ACK or NACK IBI HJ Requests.
Definition i3c.h:1631
int i3c_attach_i3c_device(struct i3c_device_desc *target)
Attach an I3C device.
#define I3C_BCR_IBI_REQUEST_CAPABLE
IBI Request Capable bit.
Definition i3c.h:89
#define I3C_BCR_DEVICE_ROLE_I3C_CONTROLLER_CAPABLE
Device Role - I3C Controller Capable.
Definition i3c.h:129
struct i3c_device_desc * i3c_dev_list_i3c_addr_find(const struct device *dev, uint8_t addr)
Find a I3C target device descriptor by dynamic address.
static struct i3c_device_desc * i3c_device_find(const struct device *dev, const struct i3c_device_id *id)
Find a registered I3C target device.
Definition i3c.h:1601
bool i3c_bus_has_sec_controller(const struct device *dev)
Check if the bus has a secondary controller.
static int i3c_configure(const struct device *dev, enum i3c_config_type type, void *config)
Configure the I3C hardware.
Definition i3c.h:1302
static int i3c_device_info_get(struct i3c_device_desc *target)
Get all information from device and update device descriptor.
Definition i3c.h:2133
int i3c_dev_list_daa_addr_helper(struct i3c_addr_slots *addr_slots, const struct i3c_dev_list *dev_list, uint64_t pid, bool must_match, bool assigned_okay, struct i3c_device_desc **target, uint8_t *addr)
Helper function to find a usable address during ENTDAA.
static void i3c_iodev_submit(struct rtio_iodev_sqe *iodev_sqe)
Submit request(s) to an I3C device with RTIO.
Definition i3c.h:2195
int i3c_device_adv_info_get(struct i3c_device_desc *target)
Get advanced information from device and update device descriptor.
int i3c_bus_deftgts(const struct device *dev)
Send the CCC DEFTGTS.
i3c_config_type
Type of configuration being passed to configure function.
Definition i3c.h:437
int i3c_attach_i2c_device(struct i3c_i2c_device_desc *target)
Attach an I2C device.
i3c_i2c_speed_type
I2C bus speed under I3C bus.
Definition i3c.h:260
int i3c_detach_i3c_device(struct i3c_device_desc *target)
Detach I3C Device.
i3c_bus_mode
I3C bus mode.
Definition i3c.h:227
static int i3c_recover_bus(const struct device *dev)
Attempt bus recovery on the I3C bus.
Definition i3c.h:1358
static int i3c_config_get(const struct device *dev, enum i3c_config_type type, void *config)
Get configuration of the I3C hardware.
Definition i3c.h:1335
int i3c_detach_i2c_device(struct i3c_i2c_device_desc *target)
Detach I2C Device.
#define I3C_BCR_DEVICE_ROLE(bcr)
Device Role.
Definition i3c.h:141
void i3c_iodev_submit_fallback(const struct device *dev, struct rtio_iodev_sqe *iodev_sqe)
Fallback submit implementation.
struct i3c_device_desc * i3c_dev_list_find(const struct i3c_dev_list *dev_list, const struct i3c_device_id *id)
Find a I3C target device descriptor by ID.
int i3c_bus_init(const struct device *dev, const struct i3c_dev_list *i3c_dev_list)
Generic helper function to perform bus initialization.
int i3c_do_ccc(const struct device *dev, struct i3c_ccc_payload *payload)
Send CCC to the bus.
int i3c_device_basic_info_get(struct i3c_device_desc *target)
Get basic information from device and update device descriptor.
struct rtio_sqe * i3c_rtio_copy(struct rtio *r, struct rtio_iodev *iodev, const struct i3c_msg *msgs, uint8_t num_msgs)
Copy the i3c_msgs into a set of RTIO requests.
static int i3c_do_daa(const struct device *dev)
Perform Dynamic Address Assignment on the I3C bus.
Definition i3c.h:1500
const struct rtio_iodev_api i3c_iodev_api
#define I3C_BCR_IBI_PAYLOAD_HAS_DATA_BYTE
IBI Payload bit.
Definition i3c.h:98
int i3c_reattach_i3c_device(struct i3c_device_desc *target, uint8_t old_dyn_addr)
Reattach I3C device.
i3c_data_rate
I3C data rate.
Definition i3c.h:276
struct i3c_i2c_device_desc * i3c_dev_list_i2c_addr_find(const struct device *dev, uint16_t addr)
Find a I2C target device descriptor by address.
@ I3C_CONFIG_TARGET
Definition i3c.h:439
@ I3C_CONFIG_CUSTOM
Definition i3c.h:440
@ I3C_CONFIG_CONTROLLER
Definition i3c.h:438
@ I3C_I2C_SPEED_INVALID
Definition i3c.h:268
@ I3C_I2C_SPEED_MAX
Definition i3c.h:267
@ I3C_I2C_SPEED_FMPLUS
I2C FM+ mode.
Definition i3c.h:265
@ I3C_I2C_SPEED_FM
I2C FM mode.
Definition i3c.h:262
@ I3C_BUS_MODE_INVALID
Definition i3c.h:252
@ I3C_BUS_MODE_PURE
Only I3C devices are on the bus.
Definition i3c.h:229
@ I3C_BUS_MODE_MIXED_FAST
Both I3C and legacy I2C devices are on the bus.
Definition i3c.h:235
@ I3C_BUS_MODE_MAX
Definition i3c.h:251
@ I3C_BUS_MODE_MIXED_LIMITED
Both I3C and legacy I2C devices are on the bus.
Definition i3c.h:242
@ I3C_BUS_MODE_MIXED_SLOW
Both I3C and legacy I2C devices are on the bus.
Definition i3c.h:249
@ I3C_DATA_RATE_MAX
Definition i3c.h:292
@ I3C_DATA_RATE_INVALID
Definition i3c.h:293
@ I3C_DATA_RATE_HDR_TSP
High Data Rate - Ternary Symbol for Pure Bus.
Definition i3c.h:287
@ I3C_DATA_RATE_HDR_DDR
High Data Rate - Double Data Rate messaging.
Definition i3c.h:281
@ I3C_DATA_RATE_SDR
Single Data Rate messaging.
Definition i3c.h:278
@ I3C_DATA_RATE_HDR_TSL
High Data Rate - Ternary Symbol Legacy-inclusive-Bus.
Definition i3c.h:284
@ I3C_DATA_RATE_HDR_BT
High Data Rate - Bulk Transport.
Definition i3c.h:290
int i3c_transfer(struct i3c_device_desc *target, struct i3c_msg *msgs, uint8_t num_msgs)
Perform data transfer from the controller to a I3C target device.
#define I3C_MSG_STOP
Send STOP after this message.
Definition i3c.h:317
static int i3c_write_read(struct i3c_device_desc *target, const void *write_buf, size_t num_write, void *read_buf, size_t num_read)
Write then read data from an I3C target device.
Definition i3c.h:1847
static int i3c_burst_read(struct i3c_device_desc *target, uint8_t start_addr, uint8_t *buf, uint32_t num_bytes)
Read multiple bytes from an internal address of an I3C target device.
Definition i3c.h:1885
static int i3c_reg_update_byte(struct i3c_device_desc *target, uint8_t reg_addr, uint8_t mask, uint8_t value)
Update internal register of an I3C target device.
Definition i3c.h:2002
void i3c_dump_msgs(const char *name, const struct i3c_msg *msgs, uint8_t num_msgs, struct i3c_device_desc *target)
Dump out an I3C message.
#define I3C_MSG_READ
Read message from I3C bus.
Definition i3c.h:310
#define I3C_MSG_WRITE
Write message to I3C bus.
Definition i3c.h:307
static int i3c_reg_read_byte(struct i3c_device_desc *target, uint8_t reg_addr, uint8_t *value)
Read internal register of an I3C target device.
Definition i3c.h:1951
static int i3c_write(struct i3c_device_desc *target, const uint8_t *buf, uint32_t num_bytes)
Write a set amount of data to an I3C target device.
Definition i3c.h:1789
static int i3c_read(struct i3c_device_desc *target, uint8_t *buf, uint32_t num_bytes)
Read a set amount of data from an I3C target device.
Definition i3c.h:1816
#define I3C_MSG_RESTART
RESTART I3C transaction for this message.
Definition i3c.h:328
static int i3c_burst_write(struct i3c_device_desc *target, uint8_t start_addr, const uint8_t *buf, uint32_t num_bytes)
Write multiple bytes to an internal address of an I3C target device.
Definition i3c.h:1915
static int i3c_reg_write_byte(struct i3c_device_desc *target, uint8_t reg_addr, uint8_t value)
Write internal register of an I3C target device.
Definition i3c.h:1976
static void rtio_iodev_sqe_err(struct rtio_iodev_sqe *iodev_sqe, int result)
Inform the executor of a submissions completion with error.
Definition rtio.h:1233
struct _slist sys_slist_t
Single-linked list structure.
Definition slist.h:49
struct _snode sys_snode_t
Single-linked list node structure.
Definition slist.h:39
#define ENOSYS
Function not implemented.
Definition errno.h:82
Real-Time IO device API for moving bytes with low effort.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT64_TYPE__ uint64_t
Definition stdint.h:91
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
__UINTPTR_TYPE__ uintptr_t
Definition stdint.h:105
__UINT16_TYPE__ uint16_t
Definition stdint.h:89
Runtime device structure (in ROM) per driver instance.
Definition device.h:411
const void * api
Address of the API structure exposed by the device instance.
Definition device.h:417
Structure to keep track of addresses on I3C bus.
Definition addresses.h:58
Payload structure for one CCC transaction.
Definition ccc.h:275
Configuration parameters for I3C hardware to act as controller.
Definition i3c.h:446
struct i3c_config_controller::@222 scl
uint32_t i3c
SCL frequency (in Hz) for I3C transfers.
Definition i3c.h:455
uint8_t supported_hdr
Bit mask of supported HDR modes (0 - 7).
Definition i3c.h:467
bool is_secondary
True if the controller is to be the secondary controller of the bus.
Definition i3c.h:451
uint32_t i2c
SCL frequency (in Hz) for I2C transfers.
Definition i3c.h:458
Custom I3C configuration parameters.
Definition i3c.h:478
void * ptr
Pointer to configuration parameter.
Definition i3c.h:492
uint32_t id
ID of the configuration parameter.
Definition i3c.h:480
uintptr_t val
Value of configuration parameter.
Definition i3c.h:484
Structure for describing attached devices for a controller.
Definition i3c.h:1090
sys_slist_t i3c
Linked list of attached I3C devices.
Definition i3c.h:1103
sys_slist_t i2c
Linked list of attached I2C devices.
Definition i3c.h:1108
struct i3c_addr_slots addr_slots
Address slots:
Definition i3c.h:1097
struct i3c_dev_attached_list::@230 devices
Structure for describing known devices for a controller.
Definition i3c.h:1120
struct i3c_i2c_device_desc *const i2c
Pointer to array of known I2C devices.
Definition i3c.h:1129
const uint8_t num_i3c
Number of I3C devices in array.
Definition i3c.h:1134
struct i3c_device_desc *const i3c
Pointer to array of known I3C devices.
Definition i3c.h:1124
const uint8_t num_i2c
Number of I2C devices in array.
Definition i3c.h:1139
Structure describing a I3C target device.
Definition i3c.h:870
struct i3c_device_desc::@226 data_length
uint8_t maxwr
Maximum Write Speed.
Definition i3c.h:961
const uint8_t init_dynamic_addr
Initial dynamic address.
Definition i3c.h:905
uint8_t getcap1
I3C v1.1+ GETCAPS1 (I3C_CCC_GETCAPS1_*)
Definition i3c.h:998
uint8_t getcap2
GETCAPS2 (I3C_CCC_GETCAPS2_*)
Definition i3c.h:1008
uint32_t max_read_turnaround
Maximum Read turnaround time in microseconds.
Definition i3c.h:964
const uint8_t static_addr
Static address for this target device.
Definition i3c.h:894
uint8_t getcap4
GETCAPS4.
Definition i3c.h:1027
struct i3c_device_desc::@227 getcaps
Describes advanced (Target) capabilities and features.
uint8_t max_ibi
Maximum IBI Payload Size.
Definition i3c.h:975
i3c_target_ibi_cb_t ibi_cb
In-Band Interrupt (IBI) callback.
Definition i3c.h:1042
uint8_t group_addr
Group address for this target device.
Definition i3c.h:939
uint16_t mwl
Maximum Write Length.
Definition i3c.h:972
uint8_t getcap3
GETCAPS3 (I3C_CCC_GETCAPS3_*)
Definition i3c.h:1021
uint8_t dynamic_addr
Dynamic Address for this target device used for communication.
Definition i3c.h:928
const struct device *const dev
Device driver instance of the I3C device.
Definition i3c.h:877
sys_snode_t node
Definition i3c.h:871
uint16_t mrl
Maximum Read Length.
Definition i3c.h:969
const uint64_t pid
Device Provisioned ID.
Definition i3c.h:880
uint8_t maxrd
Maximum Read Speed.
Definition i3c.h:958
uint8_t gethdrcap
I3C v1.0 HDR Capabilities (I3C_CCC_GETCAPS1_*)
Definition i3c.h:988
uint8_t bcr
Bus Characteristic Register (BCR)
Definition i3c.h:946
uint8_t dcr
Device Characteristic Register (DCR)
Definition i3c.h:954
const bool supports_setaasa
Device support for SETAASA.
Definition i3c.h:913
struct i3c_device_desc::@225 data_speed
const struct device *const bus
I3C bus to which this target device is attached.
Definition i3c.h:874
Structure used for matching I3C devices.
Definition i3c.h:836
const uint64_t pid
Device Provisioned ID.
Definition i3c.h:838
This structure is common to all I3C drivers and is expected to be the first element in the object poi...
Definition i3c.h:1147
struct i3c_dev_list dev_list
I3C/I2C device list struct.
Definition i3c.h:1149
This structure is common to all I3C drivers and is expected to be the first element in the driver's s...
Definition i3c.h:1156
struct i3c_config_controller ctrl_config
Controller Configuration.
Definition i3c.h:1158
struct i3c_dev_attached_list attached_dev
Attached I3C/I2C devices and addresses.
Definition i3c.h:1161
Structure describing a I2C device on I3C bus.
Definition i3c.h:1059
const struct device * bus
I3C bus to which this I2C device is attached.
Definition i3c.h:1063
const uint16_t addr
Static address for this I2C device.
Definition i3c.h:1066
const uint8_t lvr
Legacy Virtual Register (LVR)
Definition i3c.h:1072
sys_snode_t node
Definition i3c.h:1060
Struct for IBI request.
Definition ibi.h:58
const struct device * bus
Definition i3c.h:2173
const struct i3c_device_id dev_id
Definition i3c.h:2174
One I3C Message.
Definition i3c.h:393
uint8_t flags
Flags for this message.
Definition i3c.h:418
uint8_t hdr_mode
HDR mode (I3C_MSG_HDR_MODE*) for transfer if any I3C_MSG_HDR_* is set in flags.
Definition i3c.h:426
uint32_t num_xfer
Total number of bytes transferred.
Definition i3c.h:407
uint8_t * buf
Data buffer in bytes.
Definition i3c.h:395
uint8_t hdr_cmd_code
HDR command code field (7-bit) for HDR-DDR, HDR-TSP and HDR-TSL.
Definition i3c.h:429
uint32_t len
Length of buffer in bytes.
Definition i3c.h:398
enum i3c_sdr_controller_error_types err
SDR Error Type.
Definition i3c.h:415
Structure describing a device that supports the I3C target API.
Definition target_device.h:102
API that an RTIO IO device should implement.
Definition rtio.h:502
Compute the mempool block index for a given pointer.
Definition rtio.h:492
struct rtio_sqe sqe
Definition rtio.h:493
An IO device with a function table for submitting requests.
Definition rtio.h:517
void * data
Definition rtio.h:522
A submission queue event.
Definition rtio.h:286
const struct rtio_iodev * iodev
Device to operation on.
Definition rtio.h:295
An RTIO context containing what can be viewed as a pair of queues.
Definition rtio.h:396