Searched refs:mock_api (Results 1 – 7 of 7) sorted by relevance
62 static struct uart_driver_api mock_api = { variable70 .api = &mock_api,
82 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()
93 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()
50 struct i2c_emul_api *mock_api; member
50 struct spi_emul_api *mock_api; member
36 fixture->emul_i2c->bus.i2c->mock_api = &mock_bus_api; in ZTEST_USER_F()
36 fixture->emul_spi->bus.spi->mock_api = &mock_bus_api; in ZTEST_USER_F()