Host Command Peripherals API.
More...
Host Command Peripherals API.
◆ ec_host_cmd_periph_api_init
◆ ec_host_cmd_periph_api_send
◆ ec_host_cmd_periph_init()
#include <include/zephyr/drivers/ec_host_cmd_periph/ec_host_cmd_periph.h>
Initialize a host command device.
This routine initializes a host command device, prior to its first use. The receive context object are an output of this function and are valid for the lifetime of this device. The RX context is used by the client to receive data from the host.
- Parameters
-
dev | Pointer to the device structure for the driver instance. |
rx_ctx | [out] The receiving context object that are valid for the lifetime of the device. These objects are used to receive data from the driver when the host send data. |
- Return values
-
◆ ec_host_cmd_periph_send()
#include <include/zephyr/drivers/ec_host_cmd_periph/ec_host_cmd_periph.h>
Sends the specified data to the host.
Sends the data specified in tx_buf to the host over the host communication bus.
- Parameters
-
dev | Pointer to the device structure for the driver instance. |
tx_buf | The data to transmit to the host. |
- Return values
-