Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
ec_host_cmd_tx_buf Struct Reference

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

#include <backend.h>

Data Fields

void * buf
 Data to write to the host The buffer is provided by the handler if CONFIG_EC_HOST_CMD_HANDLER_TX_BUFFER_SIZE > 0.
 
size_t len
 Number of bytes to write from buf.
 
size_t len_max
 Maximum number of bytes to send with one response packet.
 

Detailed Description

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

Field Documentation

◆ buf

void* ec_host_cmd_tx_buf::buf

Data to write to the host The buffer is provided by the handler if CONFIG_EC_HOST_CMD_HANDLER_TX_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_tx_buf::len

Number of bytes to write from buf.

◆ len_max

size_t ec_host_cmd_tx_buf::len_max

Maximum number of bytes to send with one response packet.


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