Lines Matching full:eeprom
18 #include <zephyr/drivers/i2c/target/eeprom.h>
55 /* Read EEPROM from I2C Master requests, then compare */ in run_full_read()
58 zassert_equal(ret, 0, "Failed to read EEPROM"); in run_full_read()
97 zassert_equal(ret, 0, "Failed to read EEPROM"); in run_partial_read()
147 zassert_equal(ret, 0, "Failed to write EEPROM"); in run_program_read()
151 /* Read back EEPROM from I2C Master requests, then compare */ in run_program_read()
154 zassert_equal(ret, 0, "Failed to read EEPROM"); in run_program_read()
181 zassert_not_null(i2c_0, "EEPROM 0 - I2C bus not found"); in ZTEST()
182 zassert_not_null(eeprom_0, "EEPROM 0 device not found"); in ZTEST()
184 zassert_true(device_is_ready(i2c_0), "EEPROM 0 - I2C bus not ready"); in ZTEST()
186 TC_PRINT("Found EEPROM 0 on I2C bus device %s at addr %02x\n", in ZTEST()
189 zassert_not_null(i2c_1, "EEPROM 1 - I2C device not found"); in ZTEST()
190 zassert_not_null(eeprom_1, "EEPROM 1 device not found"); in ZTEST()
192 zassert_true(device_is_ready(i2c_1), "EEPROM 1 - I2C bus not ready"); in ZTEST()
194 TC_PRINT("Found EEPROM 1 on I2C bus device %s at addr %02x\n", in ZTEST()
207 zassert_equal(ret, 0, "Failed to program EEPROM 0"); in ZTEST()
211 zassert_equal(ret, 0, "Failed to program EEPROM 1"); in ZTEST()
214 /* Attach each EEPROM to its owning bus as a target device. */ in ZTEST()
216 zassert_equal(ret, 0, "Failed to register EEPROM 0"); in ZTEST()
220 zassert_equal(ret, 0, "Failed to register EEPROM 1"); in ZTEST()
266 /* Detach EEPROM */ in ZTEST()
268 zassert_equal(ret, 0, "Failed to unregister EEPROM 0"); in ZTEST()
272 zassert_equal(ret, 0, "Failed to unregister EEPROM 1"); in ZTEST()