VLCB
Loading...
Searching...
No Matches
FlashStorage.h
Go to the documentation of this file.
1// Copyright (C) Sven Rosvall (sven@rosvall.ie)
2// This file is part of VLCB-Arduino project on https://github.com/SvenRosvall/VLCB-Arduino
3// Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
4// The full licence can be found at: http://creativecommons.org/licenses/by-nc-sa/4.0/
5
6#pragma once
7
8#include "Storage.h"
9
10#include <Arduino.h> // for definition of byte datatype
11
12namespace VLCB
13{
14
15class FlashStorage : public Storage
16{
17public:
18 virtual void begin(unsigned int size) override;
19
20 virtual byte read(unsigned int eeaddress) override;
21 virtual byte readBytes(unsigned int eeaddress, byte nbytes, byte dest[]) override;
22 virtual void write(unsigned int eeaddress, byte data) override;
23 virtual void writeBytes(unsigned int eeaddress, const byte src[], byte numbytes) override;
24 virtual void reset() override;
25};
26
27}
Definition FlashStorage.h:16
virtual byte readBytes(unsigned int eeaddress, byte nbytes, byte dest[]) override
Definition FlashStorage.cpp:88
virtual void writeBytes(unsigned int eeaddress, const byte src[], byte numbytes) override
Definition FlashStorage.cpp:118
virtual byte read(unsigned int eeaddress) override
Definition FlashStorage.cpp:70
virtual void reset() override
Definition FlashStorage.cpp:129
virtual void write(unsigned int eeaddress, byte data) override
Definition FlashStorage.cpp:106
Interface for persistent storage. Used by Configuration class.
Definition Storage.h:15
Definition AbstractEventTeachingService.cpp:13
void begin()
Definition VLCB.cpp:181