12#ifndef ZEPHYR_INCLUDE_DRIVERS_HOST_CMD_PERIPH_H_
13#define ZEPHYR_INCLUDE_DRIVERS_HOST_CMD_PERIPH_H_
93 return api->
init(dev, rx_ctx);
114 return api->
send(dev, tx_buf);
static int ec_host_cmd_periph_init(const struct device *dev, struct ec_host_cmd_periph_rx_ctx *rx_ctx)
Initialize a host command device.
Definition: ec_host_cmd_periph.h:87
int(* ec_host_cmd_periph_api_send)(const struct device *dev, const struct ec_host_cmd_periph_tx_buf *tx_buf)
Definition: ec_host_cmd_periph.h:62
int(* ec_host_cmd_periph_api_init)(const struct device *dev, struct ec_host_cmd_periph_rx_ctx *rx_ctx)
Definition: ec_host_cmd_periph.h:59
static 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.
Definition: ec_host_cmd_periph.h:107
__UINT8_TYPE__ uint8_t
Definition: stdint.h:88
Runtime device structure (in ROM) per driver instance.
Definition: device.h:378
const void * api
Definition: device.h:384
Definition: ec_host_cmd_periph.h:66
ec_host_cmd_periph_api_send send
Definition: ec_host_cmd_periph.h:68
ec_host_cmd_periph_api_init init
Definition: ec_host_cmd_periph.h:67
Context for host command peripheral and framework to pass rx data.
Definition: ec_host_cmd_periph.h:34
uint8_t * buf
Definition: ec_host_cmd_periph.h:40
size_t * len
Definition: ec_host_cmd_periph.h:42
struct k_sem * handler_owns
Definition: ec_host_cmd_periph.h:46
struct k_sem * dev_owns
Definition: ec_host_cmd_periph.h:44
Context for host command peripheral and framework to pass tx data.
Definition: ec_host_cmd_periph.h:52
void * buf
Definition: ec_host_cmd_periph.h:54
size_t len
Definition: ec_host_cmd_periph.h:56