Zephyr Project API
3.4.0
A Scalable Open Source RTOS
|
Context for host command backend and handler to pass rx data. More...
#include <backend.h>
Data Fields | |
uint8_t * | buf |
size_t | len |
struct k_sem | handler_owns |
Context for host command backend and handler to pass rx data.
uint8_t* ec_host_cmd_rx_ctx::buf |
Buffer to hold received data. The buffer is provided by the handler if CONFIG_EC_HOST_CMD_HANDLER_RX_BUFFER_SIZE > 0. Otherwise, the backend should provide the buffer on its own and overwrites buf pointer in the init function.
struct k_sem ec_host_cmd_rx_ctx::handler_owns |
The backend gives handler_owns, when data in buf are ready. The handler takes handler_owns to read data in buf.
size_t ec_host_cmd_rx_ctx::len |
Number of bytes written to buf by backend.