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

Structure use for statically registering host command handlers. More...

#include <ec_host_cmd.h>

Data Fields

ec_host_cmd_handler_cb handler
 
uint16_t id
 
uint16_t version_mask
 
uint16_t min_rqt_size
 
uint16_t min_rsp_size
 

Detailed Description

Structure use for statically registering host command handlers.

Field Documentation

◆ handler

ec_host_cmd_handler_cb ec_host_cmd_handler::handler

Callback routine to process commands that match id.

◆ id

uint16_t ec_host_cmd_handler::id

The numberical command id used as the lookup for commands.

◆ min_rqt_size

uint16_t ec_host_cmd_handler::min_rqt_size

The minimum input_buf_size enforced by the framework before passing to the handler.

◆ min_rsp_size

uint16_t ec_host_cmd_handler::min_rsp_size

The minimum output_buf_size enforced by the framework before passing to the handler.

◆ version_mask

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) corresponse to version 0.


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