Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
|
Arguments passed into every installed host command handler. More...
#include <ec_host_cmd.h>
Data Fields | |
const void *const | input_buf |
const uint16_t | input_buf_size |
void *const | output_buf |
uint16_t | output_buf_size |
const uint8_t | version |
Arguments passed into every installed host command handler.
const void* const ec_host_cmd_handler_args::input_buf |
The incoming data that can be cast to the handlers request type.
const uint16_t ec_host_cmd_handler_args::input_buf_size |
The number of valid bytes that can be read from input_buf.
void* const ec_host_cmd_handler_args::output_buf |
The data written to this buffer will be send to the host.
uint16_t ec_host_cmd_handler_args::output_buf_size |
[in/out] Upon entry, this is the maximum number of bytes that can be written to the output_buf. Upon exit, this should be the number of bytes of output_buf to send to the host.
const uint8_t ec_host_cmd_handler_args::version |
The version of the host command that is being requested. This will be a value that has been static registered as valid for the handler.