eeprom.h 844 B

1234567891011121314151617181920212223
  1. #pragma once
  2. #if defined(__AVR__)
  3. #include <avr/eeprom.h>
  4. #else
  5. #include <stdint.h>
  6. uint8_t eeprom_read_byte (const uint8_t *__p);
  7. uint16_t eeprom_read_word (const uint16_t *__p);
  8. uint32_t eeprom_read_dword (const uint32_t *__p);
  9. void eeprom_read_block (void *__dst, const void *__src, uint32_t __n);
  10. void eeprom_write_byte (uint8_t *__p, uint8_t __value);
  11. void eeprom_write_word (uint16_t *__p, uint16_t __value);
  12. void eeprom_write_dword (uint32_t *__p, uint32_t __value);
  13. void eeprom_write_block (const void *__src, void *__dst, uint32_t __n);
  14. void eeprom_update_byte (uint8_t *__p, uint8_t __value);
  15. void eeprom_update_word (uint16_t *__p, uint16_t __value);
  16. void eeprom_update_dword (uint32_t *__p, uint32_t __value);
  17. void eeprom_update_block (const void *__src, void *__dst, uint32_t __n);
  18. #endif