Zephyr Project API 4.0.0
A Scalable Open Source RTOS
|
I3C HDR DDR API. More...
Functions | |
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. | |
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. | |
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. | |
I3C HDR DDR API.
|
inlinestatic |
#include <include/zephyr/drivers/i3c/hdr_ddr.h>
Read a set amount of data from an I3C target device with HDR DDR.
This routine reads a set amount of data synchronously.
target | I3C target device descriptor. |
cmd | 7-bit command code |
buf | Memory pool that stores the retrieved data. |
num_bytes | Number of bytes to read. |
0 | If successful. |
-EBUSY | Bus is busy. |
-EIO | General input / output error. |
|
inlinestatic |
#include <include/zephyr/drivers/i3c/hdr_ddr.h>
Write a set amount of data to an I3C target device with HDR DDR.
This routine writes a set amount of data synchronously.
target | I3C target device descriptor. |
cmd | 7-bit command code |
buf | Memory pool from which the data is transferred. |
num_bytes | Number of bytes to write. |
0 | If successful. |
-EBUSY | Bus is busy. |
-EIO | General input / output error. |
|
inlinestatic |
#include <include/zephyr/drivers/i3c/hdr_ddr.h>
Write then read data from an I3C target device with HDR DDR.
This supports the common operation "this is what I want", "now give it to me" transaction pair through a combined write-then-read bus transaction.
target | I3C target device descriptor. |
write_buf | Pointer to the data to be written |
num_write | Number of bytes to write |
write_cmd | 7-bit command code for write |
read_buf | Pointer to storage for read data |
num_read | Number of bytes to read |
read_cmd | 7-bit command code for read |
0 | if successful |
-EBUSY | Bus is busy. |
-EIO | General input / output error. |