Home
last modified time | relevance | path

Searched refs:eeprom (Results 1 – 25 of 158) sorted by relevance

1234567

/Zephyr-latest/tests/drivers/eeprom/api/src/
Dmain.c12 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/
Deeprom_shell.c35 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/
Dmain.c12 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/
Dsltb010a.overlay4 eeprom0: eeprom@54 {
5 compatible = "zephyr,i2c-target-eeprom";
9 eeprom1: eeprom@56 {
10 compatible = "zephyr,i2c-target-eeprom";
Dstm32f072b_disco.overlay4 eeprom0: eeprom@54 {
5 compatible = "zephyr,i2c-target-eeprom";
13 eeprom1: eeprom@56 {
14 compatible = "zephyr,i2c-target-eeprom";
Dmec1501modular_assy6885.overlay8 eeprom0: eeprom@54 {
9 compatible = "zephyr,i2c-target-eeprom";
18 eeprom1: eeprom@56 {
19 compatible = "zephyr,i2c-target-eeprom";
Dmr_canhubk3.overlay11 eeprom0: eeprom@54 {
12 compatible = "zephyr,i2c-target-eeprom";
20 eeprom1: eeprom@56 {
21 compatible = "zephyr,i2c-target-eeprom";
Dmimxrt1180_evk_mimxrt1189_cm33.overlay11 eeprom0: eeprom@54 {
12 compatible = "zephyr,i2c-target-eeprom";
20 eeprom1: eeprom@56 {
21 compatible = "zephyr,i2c-target-eeprom";
Dmimxrt1170_evk_mimxrt1176_cm7.overlay11 eeprom0: eeprom@54 {
12 compatible = "zephyr,i2c-target-eeprom";
20 eeprom1: eeprom@56 {
21 compatible = "zephyr,i2c-target-eeprom";
Dmimxrt1170_evkb_mimxrt1176_cm4.overlay11 eeprom0: eeprom@54 {
12 compatible = "zephyr,i2c-target-eeprom";
20 eeprom1: eeprom@56 {
21 compatible = "zephyr,i2c-target-eeprom";
Dmimxrt1170_evkb_mimxrt1176_cm7.overlay11 eeprom0: eeprom@54 {
12 compatible = "zephyr,i2c-target-eeprom";
20 eeprom1: eeprom@56 {
21 compatible = "zephyr,i2c-target-eeprom";
Dmimxrt1180_evk_mimxrt1189_cm7.overlay11 eeprom0: eeprom@54 {
12 compatible = "zephyr,i2c-target-eeprom";
20 eeprom1: eeprom@56 {
21 compatible = "zephyr,i2c-target-eeprom";
Dmax32666evkit_max32666_cpu0.overlay8 eeprom0: eeprom@54 {
9 compatible = "zephyr,i2c-target-eeprom";
20 eeprom1: eeprom@56 {
21 compatible = "zephyr,i2c-target-eeprom";
Dmax32680evkit_max32680_m4.overlay8 eeprom0: eeprom@54 {
9 compatible = "zephyr,i2c-target-eeprom";
20 eeprom1: eeprom@56 {
21 compatible = "zephyr,i2c-target-eeprom";
Dfrdm_ke17z512.overlay13 eeprom0: eeprom@54 {
14 compatible = "zephyr,i2c-target-eeprom";
21 eeprom1: eeprom@56 {
22 compatible = "zephyr,i2c-target-eeprom";
Dfrdm_mcxa156.overlay13 eeprom0: eeprom@54 {
14 compatible = "zephyr,i2c-target-eeprom";
21 eeprom1: eeprom@56 {
22 compatible = "zephyr,i2c-target-eeprom";
Dmax32662evkit.overlay12 eeprom0: eeprom@54 {
13 compatible = "zephyr,i2c-target-eeprom";
23 eeprom1: eeprom@56 {
24 compatible = "zephyr,i2c-target-eeprom";
Dnpcx9m6f_evb.overlay10 eeprom0: eeprom@54 {
11 compatible = "zephyr,i2c-target-eeprom";
24 eeprom1: eeprom@56 {
25 compatible = "zephyr,i2c-target-eeprom";
Dit8xxx2_evb.overlay14 eeprom1: eeprom@54 {
15 compatible = "zephyr,i2c-target-eeprom";
28 eeprom0: eeprom@52 {
29 compatible = "zephyr,i2c-target-eeprom";
Dmax32670evkit.overlay8 eeprom0: eeprom@54 {
9 compatible = "zephyr,i2c-target-eeprom";
24 eeprom1: eeprom@56 {
25 compatible = "zephyr,i2c-target-eeprom";
Dmax32672evkit.overlay8 eeprom0: eeprom@54 {
9 compatible = "zephyr,i2c-target-eeprom";
24 eeprom1: eeprom@56 {
25 compatible = "zephyr,i2c-target-eeprom";
Dmax32675evkit.overlay12 eeprom0: eeprom@54 {
13 compatible = "zephyr,i2c-target-eeprom";
24 eeprom1: eeprom@56 {
25 compatible = "zephyr,i2c-target-eeprom";
Dmax32690evkit_max32690_m4.overlay8 eeprom0: eeprom@54 {
9 compatible = "zephyr,i2c-target-eeprom";
24 eeprom1: eeprom@56 {
25 compatible = "zephyr,i2c-target-eeprom";
Dmax32655evkit_max32655_m4.overlay8 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/
Dmain.c40 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()

1234567