12#ifndef ZEPHYR_INCLUDE_DRIVERS_HOST_CMD_PERIPH_H_
13#define ZEPHYR_INCLUDE_DRIVERS_HOST_CMD_PERIPH_H_
89z_impl_ec_host_cmd_periph_init(
const struct device *dev,
95 return api->
init(dev, rx_ctx);
113static inline int z_impl_ec_host_cmd_periph_send(
120 return api->
send(dev, tx_buf);
131#include <syscalls/ec_host_cmd_periph.h>
int ec_host_cmd_periph_init(const struct device *dev, struct ec_host_cmd_periph_rx_ctx *rx_ctx)
Initialize a host command device.
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:61
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:58
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.
__UINT8_TYPE__ uint8_t
Definition: stdint.h:58
Runtime device structure (in ROM) per driver instance.
Definition: device.h:367
const void * api
Definition: device.h:373
Definition: ec_host_cmd_periph.h:65
ec_host_cmd_periph_api_send send
Definition: ec_host_cmd_periph.h:67
ec_host_cmd_periph_api_init init
Definition: ec_host_cmd_periph.h:66
Context for host command peripheral and framework to pass rx data.
Definition: ec_host_cmd_periph.h:33
uint8_t * buf
Definition: ec_host_cmd_periph.h:39
size_t * len
Definition: ec_host_cmd_periph.h:41
struct k_sem * handler_owns
Definition: ec_host_cmd_periph.h:45
struct k_sem * dev_owns
Definition: ec_host_cmd_periph.h:43
Context for host command peripheral and framework to pass tx data.
Definition: ec_host_cmd_periph.h:51
void * buf
Definition: ec_host_cmd_periph.h:53
size_t len
Definition: ec_host_cmd_periph.h:55