Zephyr API
4.4.99
A Scalable Open Source RTOS
Toggle main menu visibility
Loading...
Searching...
No Matches
simulator.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2020 Google LLC
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
13
14
#ifndef ZEPHYR_INCLUDE_MGMT_EC_HOST_CMD_SIMULATOR_H_
15
#define ZEPHYR_INCLUDE_MGMT_EC_HOST_CMD_SIMULATOR_H_
16
23
24
/* For ec_host_cmd_backend_api_send function pointer type */
25
#include <
zephyr/mgmt/ec_host_cmd/backend.h
>
26
39
void
ec_host_cmd_backend_sim_install_send_cb
(
ec_host_cmd_backend_api_send
cb,
40
struct
ec_host_cmd_tx_buf
**tx_buf);
41
54
int
ec_host_cmd_backend_sim_data_received
(
const
uint8_t
*buffer,
size_t
len);
55
59
60
#endif
/* ZEPHYR_INCLUDE_MGMT_EC_HOST_CMD_SIMULATOR_H_ */
backend.h
Public APIs for Host Command backends that respond to host commands.
ec_host_cmd_backend_api_send
int(* ec_host_cmd_backend_api_send)(const struct ec_host_cmd_backend *backend)
Sends data to the host.
Definition
backend.h:108
ec_host_cmd_backend_sim_install_send_cb
void ec_host_cmd_backend_sim_install_send_cb(ec_host_cmd_backend_api_send cb, struct ec_host_cmd_tx_buf **tx_buf)
Install callback for when this device would sends data to host.
ec_host_cmd_backend_sim_data_received
int ec_host_cmd_backend_sim_data_received(const uint8_t *buffer, size_t len)
Simulate receiving data from host as passed in to this function.
uint8_t
__UINT8_TYPE__ uint8_t
Definition
stdint.h:88
ec_host_cmd_tx_buf
Context for host command backend and handler to pass tx data.
Definition
backend.h:63
zephyr
mgmt
ec_host_cmd
simulator.h
Generated on
for Zephyr API by
1.17.0