The eMMC class provides functions for accessing the eMMC and manipulating its files and directories. Also, this class also provides the USB Mass storage function. More...
#include <eMMC.h>
Public Member Functions | |
boolean | begin () |
Initialize the eMMC library. More... | |
boolean | begin (uint8_t) |
Initialize the eMMC library with Power on PIN. More... | |
boolean | end () |
Finalize the eMMC library. More... | |
int | beginUsbMsc () |
Start USB Mass Storage Class. | |
int | endUsbMsc () |
Stop USB Mass Storage Class. | |
int | format (uint8_t fattype=32) |
Format the eMMC device. More... | |
Public Member Functions inherited from StorageClass | |
StorageClass (const char *str) | |
File | open (const char *filename, uint8_t mode=FILE_READ) |
Opens a file on the Flash. More... | |
File | open (const String &filename, uint8_t mode=FILE_READ) |
Opens a file on the Flash. More... | |
boolean | exists (const char *filepath) |
Tests whether a file or directory exists on the Flash. More... | |
boolean | exists (const String &filepath) |
Tests whether a file or directory exists on the Flash. More... | |
boolean | mkdir (const char *filepath) |
Create a directory on the Flash. More... | |
boolean | mkdir (const String &filepath) |
Create a directory on the Flash. More... | |
boolean | remove (const char *filepath) |
Remove a file from the Flash. More... | |
boolean | remove (const String &filepath) |
Remove a file from the Flash. More... | |
boolean | rmdir (const char *filepath) |
Remove a directory from the Flash. More... | |
boolean | rmdir (const String &filepath) |
Remove a directory from the Flash. More... | |
Additional Inherited Members | |
Protected Attributes inherited from StorageClass | |
char | mountdir [16] |
The eMMC class provides functions for accessing the eMMC and manipulating its files and directories. Also, this class also provides the USB Mass storage function.
boolean eMMCClass::begin | ( | ) |
Initialize the eMMC library.
This will check that the eMMC is mounted or not after being initialized it. This needs to be called to set up the connection to the eMMC before other methods are used.
boolean eMMCClass::begin | ( | uint8_t | ) |
Initialize the eMMC library with Power on PIN.
This will check that the eMMC is mounted or not after being initialized it. This needs to be called to set up the connection to the eMMC before other methods are used.
[in] | Power | control pin for eMMC |
boolean eMMCClass::end | ( | ) |
Finalize the eMMC library.
This function unmount, finalize device and power off device.
int eMMCClass::format | ( | uint8_t | fattype = 32 | ) |
Format the eMMC device.
This will format the unformatted eMMC device to FAT file system.
[in] | fattype | FAT type: 12 or 16 or 32 (default 32) |