Home
last modified time | relevance | path

Searched refs:mock_api (Results 1 – 7 of 7) sorted by relevance

/Zephyr-Core-3.7.0/tests/subsys/mgmt/ec_host_cmd/uart/src/
Duart_mock.c62 static struct uart_driver_api mock_api = { variable
70 .api = &mock_api,
/Zephyr-Core-3.7.0/drivers/spi/
Dspi_emul.c82 if (emul->mock_api != NULL && emul->mock_api->io != NULL) { in spi_emul_io()
83 ret = emul->mock_api->io(emul->target, config, tx_bufs, rx_bufs); in spi_emul_io()
/Zephyr-Core-3.7.0/drivers/i2c/
Di2c_emul.c93 if (emul->mock_api != NULL && emul->mock_api->transfer != NULL) { in i2c_emul_transfer()
94 ret = emul->mock_api->transfer(emul->target, msgs, num_msgs, addr); in i2c_emul_transfer()
/Zephyr-Core-3.7.0/include/zephyr/drivers/
Di2c_emul.h50 struct i2c_emul_api *mock_api; member
Dspi_emul.h50 struct spi_emul_api *mock_api; member
/Zephyr-Core-3.7.0/tests/drivers/sensor/bmi160/src/
Di2c.c36 fixture->emul_i2c->bus.i2c->mock_api = &mock_bus_api; in ZTEST_USER_F()
Dspi.c36 fixture->emul_spi->bus.spi->mock_api = &mock_bus_api; in ZTEST_USER_F()