Zephyr API 3.6.99
|
A submission queue event. More...
#include <rtio.h>
Data Fields | ||
uint8_t | op | |
Op code. | ||
uint8_t | prio | |
Op priority. | ||
uint16_t | flags | |
Op Flags. | ||
uint16_t | iodev_flags | |
Op iodev flags. | ||
const struct rtio_iodev * | iodev | |
Device to operation on. | ||
void * | userdata | |
User provided data which is returned upon operation completion. | ||
union { | ||
struct { | ||
uint32_t buf_len | ||
Length of buffer. More... | ||
const uint8_t * buf | ||
Buffer to write from. More... | ||
} tx | ||
OP_TX. More... | ||
struct { | ||
uint32_t buf_len | ||
Length of buffer. More... | ||
uint8_t * buf | ||
Buffer to read into. More... | ||
} rx | ||
OP_RX. More... | ||
struct { | ||
uint8_t buf_len | ||
Length of tiny buffer. More... | ||
uint8_t buf [7] | ||
Tiny buffer. More... | ||
} tiny_tx | ||
OP_TINY_TX. More... | ||
struct { | ||
rtio_callback_t callback | ||
void * arg0 | ||
Last argument given to callback. More... | ||
} callback | ||
OP_CALLBACK. More... | ||
struct { | ||
uint32_t buf_len | ||
Length of tx and rx buffers. More... | ||
const uint8_t * tx_buf | ||
Buffer to write from. More... | ||
uint8_t * rx_buf | ||
Buffer to read into. More... | ||
} txrx | ||
OP_TXRX. More... | ||
uint32_t i2c_config | ||
OP_I2C_CONFIGURE. More... | ||
}; | ||
A submission queue event.
union { ... } rtio_sqe |
void* rtio_sqe::arg0 |
Last argument given to callback.
const uint8_t* rtio_sqe::buf |
Buffer to write from.
uint8_t* rtio_sqe::buf |
Buffer to read into.
uint8_t rtio_sqe::buf[7] |
Tiny buffer.
uint32_t rtio_sqe::buf_len |
Length of buffer.
Length of tx and rx buffers.
uint8_t rtio_sqe::buf_len |
Length of tiny buffer.
rtio_callback_t rtio_sqe::callback |
struct { ... } rtio_sqe::callback |
OP_CALLBACK.
uint16_t rtio_sqe::flags |
Op Flags.
uint32_t rtio_sqe::i2c_config |
OP_I2C_CONFIGURE.
const struct rtio_iodev* rtio_sqe::iodev |
Device to operation on.
uint16_t rtio_sqe::iodev_flags |
Op iodev flags.
uint8_t rtio_sqe::op |
Op code.
uint8_t rtio_sqe::prio |
Op priority.
struct { ... } rtio_sqe::rx |
OP_RX.
uint8_t* rtio_sqe::rx_buf |
Buffer to read into.
struct { ... } rtio_sqe::tiny_tx |
OP_TINY_TX.
struct { ... } rtio_sqe::tx |
OP_TX.
const uint8_t* rtio_sqe::tx_buf |
Buffer to write from.
struct { ... } rtio_sqe::txrx |
OP_TXRX.
void* rtio_sqe::userdata |
User provided data which is returned upon operation completion.
Could be a pointer or integer.
If unique identification of completions is desired this should be unique as well.