|
Zephyr API Documentation 4.3.0-rc1
A Scalable Open Source RTOS
|
Context for host command backend and handler to pass rx data. More...
#include <zephyr/mgmt/ec_host_cmd/backend.h>
Data Fields | |
| uint8_t * | buf |
| Buffer to hold received data. | |
| size_t | len |
| Number of bytes written to buf by backend. | |
| size_t | len_max |
| Maximum number of bytes to receive with one request packet. | |
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 and len_max in the init function.
| size_t ec_host_cmd_rx_ctx::len |
Number of bytes written to buf by backend.
| size_t ec_host_cmd_rx_ctx::len_max |
Maximum number of bytes to receive with one request packet.