Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
ec_host_cmd_periph_rx_ctx Struct Reference

Context for host command peripheral and framework to pass rx data. More...

#include <ec_host_cmd_periph.h>

Data Fields

uint8_tbuf
 
size_t * len
 
struct k_sem * dev_owns
 
struct k_sem * handler_owns
 

Detailed Description

Context for host command peripheral and framework to pass rx data.

Field Documentation

◆ buf

uint8_t* ec_host_cmd_periph_rx_ctx::buf

Buffer written to by device (when dev_owns) and read from by command framework and handler (when handler_owns). Buffer is owned by devices and lives as long as device is valid. Device will never read from this buffer (for security reasons).

◆ dev_owns

struct k_sem* ec_host_cmd_periph_rx_ctx::dev_owns

Device will take when it needs to write to buf and size.

◆ handler_owns

struct k_sem* ec_host_cmd_periph_rx_ctx::handler_owns

Handler will take so it can read buf and size

◆ len

size_t* ec_host_cmd_periph_rx_ctx::len

Number of bytes written to buf by device (when dev_owns).


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