D | test_forwarding_pio.cpp | 3 * SPDX-License-Identifier: Apache-2.0 18 constexpr const struct device *controller = DEVICE_DT_GET(CONTROLLER_LABEL); variable 28 zassert_ok(i2c_write(controller, &data, sizeof(data), in ZTEST() 68 [expected_data](struct i2c_target_config *, uint8_t *out) -> int { in ZTEST() argument 69 *out = expected_data[0]; in ZTEST() 73 [expected_data](struct i2c_target_config *, uint8_t *out) -> int { in ZTEST() argument 74 *out = expected_data[1]; in ZTEST() 77 zassert_ok(i2c_read(controller, data, sizeof(data), in ZTEST() 110 target_write_requested_0_fake.return_val = -EINVAL; in ZTEST() 111 zassert_equal(-EINVAL, i2c_write(controller, write_data, sizeof(write_data), in ZTEST() [all …]
|