Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
ec_host_cmd_periph.h File Reference

Public APIs for Host Command Peripherals that respond to host commands. More...

#include <sys/__assert.h>
#include <zephyr/types.h>
#include <device.h>
#include <syscalls/ec_host_cmd_periph.h>

Go to the source code of this file.

Data Structures

struct  ec_host_cmd_periph_rx_ctx
 Context for host command peripheral and framework to pass rx data. More...
 
struct  ec_host_cmd_periph_tx_buf
 Context for host command peripheral and framework to pass tx data. More...
 
struct  ec_host_cmd_periph_api
 

Typedefs

typedef int(* ec_host_cmd_periph_api_init) (const struct device *dev, struct ec_host_cmd_periph_rx_ctx *rx_ctx)
 
typedef int(* ec_host_cmd_periph_api_send) (const struct device *dev, const struct ec_host_cmd_periph_tx_buf *tx_buf)
 

Functions

int ec_host_cmd_periph_init (const struct device *dev, struct ec_host_cmd_periph_rx_ctx *rx_ctx)
 Initialize a host command device. More...
 
int ec_host_cmd_periph_send (const struct device *dev, const struct ec_host_cmd_periph_tx_buf *tx_buf)
 Sends the specified data to the host. More...
 

Detailed Description

Public APIs for Host Command Peripherals that respond to host commands.