Zephyr API Documentation  3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
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
 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.
 

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


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