17 static inline byte read(uint16_t address)
19 return EEPROM.read(address);
21 static inline void write(uint16_t address,
byte val)
23 (void)EEPROM.write(address, val);
27 return EEPROM.length();
38 .getMaxWriteBlockSize = getMaxWriteBlockSize,
storage_api_t getEEPROMStorageApi(uint16_t(*getMaxWriteBlockSize)(const statuses &))
Get the EEPROM storage API for the board.
Definition board_eeprom_adapter.hpp:32
Definition board_eeprom_adapter.hpp:15
static void write(uint16_t address, byte val)
Definition board_eeprom_adapter.hpp:21
static byte read(uint16_t address)
Definition board_eeprom_adapter.hpp:17
static uint16_t length(void)
Definition board_eeprom_adapter.hpp:25
Defines the required external storage API plus some convenience functions built around that API.
The status struct with current values for all 'live' variables.
Definition statuses.h:36
The external storage API. This must be supported by any storage system. E.g. EEPROM,...
Definition storage_api.h:18
byte(* read)(uint16_t address)
Function to read a single byte from storage.
Definition storage_api.h:20