Lines Matching full:eeprom
9 #include <drivers/eeprom.h>
21 * Get a device structure from a devicetree node with alias eeprom-0
34 printk("Found EEPROM device \"%s\"\n", dev->name); in get_eeprom_device()
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()
50 printk("Using eeprom with size of: %d.\n", eeprom_size); in main()
52 rc = eeprom_read(eeprom, EERPOM_SAMPLE_OFFSET, &values, sizeof(values)); in main()
54 printk("Error: Couldn't read eeprom: err: %d.\n", rc); in main()
66 rc = eeprom_write(eeprom, EERPOM_SAMPLE_OFFSET, &values, sizeof(values)); in main()
68 printk("Error: Couldn't write eeprom: err:%d.\n", rc); in main()