Go to the documentation of this file.
22 #ifndef PERIPH_EEPROM_H
23 #define PERIPH_EEPROM_H
27 #include "periph_cpu.h"
34 #error "periph/eeprom: EEPROM_SIZE is not defined"
40 #ifndef EEPROM_CLEAR_BYTE
41 #define EEPROM_CLEAR_BYTE 0x00
65 size_t eeprom_read(uint32_t pos,
void *data,
size_t len);
87 size_t eeprom_write(uint32_t pos,
const void *data,
size_t len);
98 size_t eeprom_set(uint32_t pos, uint8_t val,
size_t len);
void eeprom_write_byte(uint32_t pos, uint8_t data)
Write a byte at the given position.
size_t eeprom_read(uint32_t pos, void *data, size_t len)
Read len bytes from the given position.
size_t eeprom_clear(uint32_t pos, size_t len)
Clear len bytes from the given position pos.
size_t eeprom_erase(void)
Erase the whole EEPROM content.
size_t eeprom_write(uint32_t pos, const void *data, size_t len)
Write len bytes at the given position.
size_t eeprom_set(uint32_t pos, uint8_t val, size_t len)
Set len bytes from the given position pos with value val.
uint8_t eeprom_read_byte(uint32_t pos)
Read a byte at the given position in eeprom.