Speeduino
Loading...
Searching...
No Matches
Namespaces | Functions
board_eeprom_adapter.hpp File Reference

Used internally by the board to create storage_api_t instances. More...

#include "storage_api.h"

Go to the source code of this file.

Namespaces

namespace  EEPROMApi
 

Functions

static byte EEPROMApi::read (uint16_t address)
 
static void EEPROMApi::write (uint16_t address, byte val)
 
static uint16_t EEPROMApi::length (void)
 
storage_api_t getEEPROMStorageApi (uint16_t(*getMaxWriteBlockSize)(const statuses &))
 Get the EEPROM storage API for the board.
 

Detailed Description

Used internally by the board to create storage_api_t instances.

This is not intended for use by user code.

It's only purpose is to reduce code duplication between the different board files, as the implementation of the storage API is mostly the same across boards.

It is assumed that a global instance named EEPROM is available prior to including this file.

Function Documentation

◆ getEEPROMStorageApi()

storage_api_t getEEPROMStorageApi ( uint16_t(*)(const statuses &)  getMaxWriteBlockSize)

Get the EEPROM storage API for the board.

Here is the call graph for this function: