Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
|
Header for requests from host to embedded controller. More...
#include <ec_host_cmd.h>
Data Fields | |
uint8_t | prtcl_ver |
Should be 3. | |
uint8_t | checksum |
Checksum of response and data; sum of all bytes including checksum. | |
uint16_t | cmd_id |
Id of command that is being sent. | |
uint8_t | cmd_ver |
Version of the specific cmd_id being requested. | |
uint8_t | reserved |
Unused byte in current protocol version; set to 0. | |
uint16_t | data_len |
Length of data which follows this header. | |
Header for requests from host to embedded controller.
Represent the over-the-wire header in LE format for host command requests. This represent version 3 of the host command header. The requests are always sent from host to embedded controller.
uint8_t ec_host_cmd_request_header::checksum |
Checksum of response and data; sum of all bytes including checksum.
Should total to 0.
uint16_t ec_host_cmd_request_header::cmd_id |
Id of command that is being sent.
uint8_t ec_host_cmd_request_header::cmd_ver |
Version of the specific cmd_id being requested.
Valid versions start at 0.
uint16_t ec_host_cmd_request_header::data_len |
Length of data which follows this header.
uint8_t ec_host_cmd_request_header::prtcl_ver |
Should be 3.
The EC will return EC_HOST_CMD_INVALID_HEADER if it receives a header with a version it doesn't know how to parse.
uint8_t ec_host_cmd_request_header::reserved |
Unused byte in current protocol version; set to 0.