Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
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
 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.
 

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 and len_max in the init function.

◆ len

size_t ec_host_cmd_rx_ctx::len

Number of bytes written to buf by backend.

◆ len_max

size_t ec_host_cmd_rx_ctx::len_max

Maximum number of bytes to receive with one request packet.


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