Zephyr Project API  3.4.0
A Scalable Open Source RTOS
ec_host_cmd_rx_ctx Struct Reference

Context for host command backend and handler to pass rx data. More...

#include <backend.h>

Data Fields

uint8_tbuf
 
size_t len
 
struct k_sem handler_owns
 

Detailed Description

Context for host command backend and handler to pass rx data.

Field Documentation

◆ buf

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.

◆ handler_owns

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.

◆ len

size_t ec_host_cmd_rx_ctx::len

Number of bytes written to buf by backend.


The documentation for this struct was generated from the following file: