Zephyr API Documentation 4.0.0-rc3
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
ec_host_cmd Struct Reference

#include <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_backendbackend
 
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
 

Field Documentation

◆ backend

struct ec_host_cmd_backend* ec_host_cmd::backend

◆ rx_ctx

struct ec_host_cmd_rx_ctx ec_host_cmd::rx_ctx

◆ rx_ready

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.

◆ rx_status

enum ec_host_cmd_status ec_host_cmd::rx_status

Status of the rx data checked in the ec_host_cmd_send_received function.

◆ state

enum ec_host_cmd_state ec_host_cmd::state

◆ tx

struct ec_host_cmd_tx_buf ec_host_cmd::tx

◆ user_cb

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.

◆ user_data

void* ec_host_cmd::user_data

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