Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
ec_host_cmd_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/* For ec_host_cmd_periph_api_send function pointer type */
15
29
Public APIs for Host Command Peripherals that respond to host commands.
int ec_host_cmd_periph_sim_data_received(const uint8_t *buffer, size_t len)
Simulate receiving data from host as passed in to this function.
void ec_host_cmd_periph_sim_install_send_cb(ec_host_cmd_periph_api_send cb)
Install callback for when this device would sends data to host.
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
static ZTEST_BMEM char buffer[8]
Test mailbox enhance capabilities.
Definition: test_mbox_api.c:566
__UINT8_TYPE__ uint8_t
Definition: stdint.h:58