Developer World
Spresense Arduino Library v3.2.0-77d75a4
Flash.h
Go to the documentation of this file.
1/*
2 * Flash.h - Spresense Arduino Flash library
3 * Copyright 2019 Sony Semiconductor Solutions Corporation
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20#ifndef __FLASH_H__
21#define __FLASH_H__
22
23#ifdef SUBCORE
24#error "Flash library is NOT supported by SubCore."
25#endif
26
43#include <sdk/config.h>
44
45#include <Arduino.h>
46#include <Storage.h>
47
53class FlashClass : public StorageClass {
54
55public:
56 FlashClass();
57
65 boolean begin() { return true; };
66
73 int format();
74};
75
76extern FlashClass Flash;
77
80#endif
Spresense Arduino Storage library.
The Flash class provides functions for accessing the flash and manipulating its files and directories...
Definition: Flash.h:53
int format()
Format the Flash device.
boolean begin()
Initialize the Flash library.
Definition: Flash.h:65
The Storage class provides functions for accessing the storage manipulating its files and directories...
Definition: Storage.h:53