7#ifndef ZEPHYR_INCLUDE_DRIVERS_I3C_HDR_DDR_H_
8#define ZEPHYR_INCLUDE_DRIVERS_I3C_HDR_DDR_H_
103 const void *write_buf,
size_t num_write,
uint8_t read_cmd,
104 void *read_buf,
size_t num_read,
uint8_t write_cmd)
109 msg[0].
len = num_write;
115 msg[1].
len = num_read;
static void cmd(uint32_t command)
Execute a display list command by co-processor engine.
Definition ft8xx_reference_api.h:153
static int i3c_hdr_ddr_read(struct i3c_device_desc *target, uint8_t cmd, uint8_t *buf, uint32_t num_bytes)
Read a set amount of data from an I3C target device with HDR DDR.
Definition hdr_ddr.h:69
static int i3c_hdr_ddr_write(struct i3c_device_desc *target, uint8_t cmd, uint8_t *buf, uint32_t num_bytes)
Write a set amount of data to an I3C target device with HDR DDR.
Definition hdr_ddr.h:41
static int i3c_hdr_ddr_write_read(struct i3c_device_desc *target, const void *write_buf, size_t num_write, uint8_t read_cmd, void *read_buf, size_t num_read, uint8_t write_cmd)
Write then read data from an I3C target device with HDR DDR.
Definition hdr_ddr.h:102
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:397
#define I3C_MSG_READ
Read message from I3C bus.
Definition i3c.h:390
#define I3C_MSG_WRITE
Write message to I3C bus.
Definition i3c.h:387
#define I3C_MSG_HDR_DDR
I3C HDR-DDR (Double Data Rate)
Definition i3c.h:441
#define I3C_MSG_HDR
Transfer use HDR mode.
Definition i3c.h:411
#define I3C_MSG_RESTART
RESTART I3C transaction for this message.
Definition i3c.h:408
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
Structure describing a I3C target device.
Definition i3c.h:929
One I3C Message.
Definition i3c.h:473
uint8_t flags
Flags for this message.
Definition i3c.h:490
uint8_t hdr_mode
HDR mode (I3C_MSG_HDR_MODE*) for transfer if any I3C_MSG_HDR_* is set in flags.
Definition i3c.h:498
uint8_t * buf
Data buffer in bytes.
Definition i3c.h:475
uint8_t hdr_cmd_code
HDR command code field (7-bit) for HDR-DDR, HDR-TSP and HDR-TSL.
Definition i3c.h:501
uint32_t len
Length of buffer in bytes.
Definition i3c.h:478