| 
    Zephyr Project API
    3.3.0
    
   A Scalable Open Source RTOS 
   | 
 
Context for host command peripheral and framework to pass rx data. More...
#include <ec_host_cmd_periph.h>
Data Fields | |
| uint8_t * | buf | 
| size_t * | len | 
| struct k_sem * | dev_owns | 
| struct k_sem * | handler_owns | 
Context for host command peripheral and framework to pass rx data.
| 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).
| struct k_sem* ec_host_cmd_periph_rx_ctx::dev_owns | 
Device will take when it needs to write to buf and size.
| struct k_sem* ec_host_cmd_periph_rx_ctx::handler_owns | 
Handler will take so it can read buf and size
| size_t* ec_host_cmd_periph_rx_ctx::len | 
Number of bytes written to buf by device (when dev_owns).