Developer World
Spresense Arduino Library v3.3.0-b2e6327
SDHCI.h
Go to the documentation of this file.
1/*
2 * SDHCI.h - Spresense Arduino SDHCI 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 __SD_H__
21#define __SD_H__
22
23#ifdef SUBCORE
24#error "SDHCI library is NOT supported by SubCore."
25#endif
26
43#include <sdk/config.h>
44
45#include <Arduino.h>
46#include <Storage.h>
47
54class SDClass : public StorageClass {
55
56public:
57 SDClass();
58
68 boolean begin(uint8_t dummy = 0);
69
74
78 int endUsbMsc();
79
87 int format(uint8_t fattype = 32);
88
89private:
90 void *mshandle;
91};
92
95#endif
Spresense Arduino Storage library.
The SD class provides functions for accessing the SD card and manipulating its files and directories....
Definition: SDHCI.h:54
int endUsbMsc()
Stop USB Mass Storage Class.
boolean begin(uint8_t dummy=0)
Initialize the SD library.
int beginUsbMsc()
Start USB Mass Storage Class.
int format(uint8_t fattype=32)
Format the SD card.
The Storage class provides functions for accessing the storage manipulating its files and directories...
Definition: Storage.h:53