Zephyr API Documentation 4.0.0-rc3
A Scalable Open Source RTOS
|
Structure use for statically registering host command handlers. More...
#include <ec_host_cmd.h>
Data Fields | |
ec_host_cmd_handler_cb | handler |
Callback routine to process commands that match id. | |
uint16_t | id |
The numerical command id used as the lookup for commands. | |
uint16_t | version_mask |
The bitfield of all versions that the handler supports, where each bit value represents that the handler supports that version. | |
uint16_t | min_rqt_size |
The minimum input_buf_size enforced by the framework before passing to the handler. | |
uint16_t | min_rsp_size |
The minimum output_buf_size enforced by the framework before passing to the handler. | |
Structure use for statically registering host command handlers.
ec_host_cmd_handler_cb ec_host_cmd_handler::handler |
Callback routine to process commands that match id.
uint16_t ec_host_cmd_handler::id |
The numerical command id used as the lookup for commands.
uint16_t ec_host_cmd_handler::min_rqt_size |
The minimum input_buf_size enforced by the framework before passing to the handler.
uint16_t ec_host_cmd_handler::min_rsp_size |
The minimum output_buf_size enforced by the framework before passing to the handler.
uint16_t ec_host_cmd_handler::version_mask |
The bitfield of all versions that the handler supports, where each bit value represents that the handler supports that version.
E.g. BIT(0) corresponds to version 0.