|
Zephyr API Documentation 4.3.0-rc1
A Scalable Open Source RTOS
|
Host command context structure. More...
#include <zephyr/mgmt/ec_host_cmd/ec_host_cmd.h>
Data Fields | |
| struct ec_host_cmd_rx_ctx | rx_ctx |
| struct ec_host_cmd_tx_buf | tx |
| struct ec_host_cmd_backend * | backend |
| struct k_sem | rx_ready |
| The backend gives rx_ready (by calling the ec_host_cmd_send_receive function), when data in rx_ctx are ready. | |
| enum ec_host_cmd_status | rx_status |
| Status of the rx data checked in the ec_host_cmd_send_received function. | |
| ec_host_cmd_user_cb_t | user_cb |
| User callback after receiving a command. | |
| void * | user_data |
| enum ec_host_cmd_state | state |
Host command context structure.
| struct ec_host_cmd_backend* ec_host_cmd::backend |
| struct ec_host_cmd_rx_ctx ec_host_cmd::rx_ctx |
| struct k_sem ec_host_cmd::rx_ready |
The backend gives rx_ready (by calling the ec_host_cmd_send_receive function), when data in rx_ctx are ready.
The handler takes rx_ready to read data in rx_ctx.
| enum ec_host_cmd_status ec_host_cmd::rx_status |
Status of the rx data checked in the ec_host_cmd_send_received function.
| enum ec_host_cmd_state ec_host_cmd::state |
| struct ec_host_cmd_tx_buf ec_host_cmd::tx |
| ec_host_cmd_user_cb_t ec_host_cmd::user_cb |
User callback after receiving a command.
It is called by the ec_host_cmd_send_received function.
| void* ec_host_cmd::user_data |