/Zephyr-latest/tests/drivers/eeprom/api/src/ |
D | main.c | 12 ZTEST_BMEM static const struct device *eeprom; variable 15 ZTEST_USER(eeprom, test_size) in ZTEST_USER() argument 19 size = eeprom_get_size(eeprom); in ZTEST_USER() 24 ZTEST_USER(eeprom, test_out_of_bounds) in ZTEST_USER() argument 30 size = eeprom_get_size(eeprom); in ZTEST_USER() 32 rc = eeprom_write(eeprom, size - 1, data, sizeof(data)); in ZTEST_USER() 37 ZTEST_USER(eeprom, test_write_rewrite) in ZTEST_USER() argument 46 size = eeprom_get_size(eeprom); in ZTEST_USER() 50 rc = eeprom_write(eeprom, address, wr_buf1, sizeof(wr_buf1)); in ZTEST_USER() 53 rc = eeprom_read(eeprom, address, rd_buf, sizeof(rd_buf)); in ZTEST_USER() [all …]
|
/Zephyr-latest/drivers/eeprom/ |
D | eeprom_shell.c | 35 const struct device *eeprom; in cmd_read() local 45 eeprom = shell_device_get_binding(argv[args_indx.device]); in cmd_read() 46 if (!eeprom) { in cmd_read() 58 err = eeprom_read(eeprom, addr, data, pending); in cmd_read() 76 const struct device *eeprom; in cmd_write() local 101 eeprom = shell_device_get_binding(argv[args_indx.device]); in cmd_write() 102 if (!eeprom) { in cmd_write() 109 err = eeprom_write(eeprom, offset, wr_buf, len); in cmd_write() 117 err = eeprom_read(eeprom, offset, rd_buf, len); in cmd_write() 135 const struct device *eeprom; in cmd_size() local [all …]
|
/Zephyr-latest/samples/drivers/i2c/target_eeprom/src/ |
D | main.c | 12 static const struct device *eeprom = DEVICE_DT_GET(DT_NODELABEL(eeprom0)); variable 18 if (!device_is_ready(eeprom)) { in main() 23 if (i2c_target_driver_register(eeprom) < 0) { in main() 32 if (i2c_target_driver_unregister(eeprom) < 0) { in main()
|
/Zephyr-latest/tests/drivers/i2c/i2c_target_api/boards/ |
D | sltb010a.overlay | 4 eeprom0: eeprom@54 { 5 compatible = "zephyr,i2c-target-eeprom"; 9 eeprom1: eeprom@56 { 10 compatible = "zephyr,i2c-target-eeprom";
|
D | stm32f072b_disco.overlay | 4 eeprom0: eeprom@54 { 5 compatible = "zephyr,i2c-target-eeprom"; 13 eeprom1: eeprom@56 { 14 compatible = "zephyr,i2c-target-eeprom";
|
D | mec1501modular_assy6885.overlay | 8 eeprom0: eeprom@54 { 9 compatible = "zephyr,i2c-target-eeprom"; 18 eeprom1: eeprom@56 { 19 compatible = "zephyr,i2c-target-eeprom";
|
D | mr_canhubk3.overlay | 11 eeprom0: eeprom@54 { 12 compatible = "zephyr,i2c-target-eeprom"; 20 eeprom1: eeprom@56 { 21 compatible = "zephyr,i2c-target-eeprom";
|
D | mimxrt1180_evk_mimxrt1189_cm33.overlay | 11 eeprom0: eeprom@54 { 12 compatible = "zephyr,i2c-target-eeprom"; 20 eeprom1: eeprom@56 { 21 compatible = "zephyr,i2c-target-eeprom";
|
D | mimxrt1170_evk_mimxrt1176_cm7.overlay | 11 eeprom0: eeprom@54 { 12 compatible = "zephyr,i2c-target-eeprom"; 20 eeprom1: eeprom@56 { 21 compatible = "zephyr,i2c-target-eeprom";
|
D | mimxrt1170_evkb_mimxrt1176_cm4.overlay | 11 eeprom0: eeprom@54 { 12 compatible = "zephyr,i2c-target-eeprom"; 20 eeprom1: eeprom@56 { 21 compatible = "zephyr,i2c-target-eeprom";
|
D | mimxrt1170_evkb_mimxrt1176_cm7.overlay | 11 eeprom0: eeprom@54 { 12 compatible = "zephyr,i2c-target-eeprom"; 20 eeprom1: eeprom@56 { 21 compatible = "zephyr,i2c-target-eeprom";
|
D | mimxrt1180_evk_mimxrt1189_cm7.overlay | 11 eeprom0: eeprom@54 { 12 compatible = "zephyr,i2c-target-eeprom"; 20 eeprom1: eeprom@56 { 21 compatible = "zephyr,i2c-target-eeprom";
|
D | max32666evkit_max32666_cpu0.overlay | 8 eeprom0: eeprom@54 { 9 compatible = "zephyr,i2c-target-eeprom"; 20 eeprom1: eeprom@56 { 21 compatible = "zephyr,i2c-target-eeprom";
|
D | max32680evkit_max32680_m4.overlay | 8 eeprom0: eeprom@54 { 9 compatible = "zephyr,i2c-target-eeprom"; 20 eeprom1: eeprom@56 { 21 compatible = "zephyr,i2c-target-eeprom";
|
D | frdm_ke17z512.overlay | 13 eeprom0: eeprom@54 { 14 compatible = "zephyr,i2c-target-eeprom"; 21 eeprom1: eeprom@56 { 22 compatible = "zephyr,i2c-target-eeprom";
|
D | frdm_mcxa156.overlay | 13 eeprom0: eeprom@54 { 14 compatible = "zephyr,i2c-target-eeprom"; 21 eeprom1: eeprom@56 { 22 compatible = "zephyr,i2c-target-eeprom";
|
D | max32662evkit.overlay | 12 eeprom0: eeprom@54 { 13 compatible = "zephyr,i2c-target-eeprom"; 23 eeprom1: eeprom@56 { 24 compatible = "zephyr,i2c-target-eeprom";
|
D | npcx9m6f_evb.overlay | 10 eeprom0: eeprom@54 { 11 compatible = "zephyr,i2c-target-eeprom"; 24 eeprom1: eeprom@56 { 25 compatible = "zephyr,i2c-target-eeprom";
|
D | it8xxx2_evb.overlay | 14 eeprom1: eeprom@54 { 15 compatible = "zephyr,i2c-target-eeprom"; 28 eeprom0: eeprom@52 { 29 compatible = "zephyr,i2c-target-eeprom";
|
D | max32670evkit.overlay | 8 eeprom0: eeprom@54 { 9 compatible = "zephyr,i2c-target-eeprom"; 24 eeprom1: eeprom@56 { 25 compatible = "zephyr,i2c-target-eeprom";
|
D | max32672evkit.overlay | 8 eeprom0: eeprom@54 { 9 compatible = "zephyr,i2c-target-eeprom"; 24 eeprom1: eeprom@56 { 25 compatible = "zephyr,i2c-target-eeprom";
|
D | max32675evkit.overlay | 12 eeprom0: eeprom@54 { 13 compatible = "zephyr,i2c-target-eeprom"; 24 eeprom1: eeprom@56 { 25 compatible = "zephyr,i2c-target-eeprom";
|
D | max32690evkit_max32690_m4.overlay | 8 eeprom0: eeprom@54 { 9 compatible = "zephyr,i2c-target-eeprom"; 24 eeprom1: eeprom@56 { 25 compatible = "zephyr,i2c-target-eeprom";
|
D | max32655evkit_max32655_m4.overlay | 8 eeprom0: eeprom@54 { 9 compatible = "zephyr,i2c-target-eeprom"; 24 eeprom1: eeprom@56 { 25 compatible = "zephyr,i2c-target-eeprom";
|
/Zephyr-latest/samples/drivers/eeprom/src/ |
D | main.c | 40 const struct device *eeprom = get_eeprom_device(); in main() local 45 if (eeprom == NULL) { in main() 49 eeprom_size = eeprom_get_size(eeprom); in main() 52 rc = eeprom_read(eeprom, EEPROM_SAMPLE_OFFSET, &values, sizeof(values)); in main() 66 rc = eeprom_write(eeprom, EEPROM_SAMPLE_OFFSET, &values, sizeof(values)); in main()
|