Searched refs:mock_api (Results 1 – 7 of 7) sorted by relevance
62 static DEVICE_API(uart, mock_api) = {70 .api = &mock_api,
83 if (emul->mock_api != NULL && emul->mock_api->io != NULL) { in spi_emul_io()84 ret = emul->mock_api->io(emul->target, config, tx_bufs, rx_bufs); in spi_emul_io()
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()
229 if (emul->mock_api != NULL && emul->mock_api->transfer != NULL) { in i2c_emul_transfer()230 ret = emul->mock_api->transfer(emul->target, msgs, num_msgs, addr); in i2c_emul_transfer()