Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BaseDAP SWD USBDAP USBLocalFileSystem mbed DA14580 SWSPI W25X40BV
MyStorage Class Reference
MyStorage: a StorageInterface class to interface SPI flash memory and USBLocalFilesystem. More...
#include <mystorage.h>
Public Member Functions | |
| virtual int | storage_read (uint8_t *data, uint32_t block) |
| read 512bytes from memory; | |
| virtual int | storage_write (const uint8_t *data, uint32_t block) |
| write 512bytes to memory; | |
| virtual uint32_t | storage_sectors () |
| returns number of 512byte sectors in storage; | |
| virtual uint32_t | storage_size () |
| returns size of storage in bytes; | |
Detailed Description
MyStorage: a StorageInterface class to interface SPI flash memory and USBLocalFilesystem.
MyStorage: a StorageInterface class to interface SPI flash memory and USBLocalFilesystem It uses W25X40BV library also hints from Sissors/code/S25FL216K_USBFileSystem
- USBLocalFileSystem by va009039/USBLocalFileSystem
- W25X40BV by k4zuki/code/W25X40BV forked from jyam/code/W25X40BV
Definition at line 11 of file mystorage.h.
Member Function Documentation
| int storage_read | ( | uint8_t * | data, |
| uint32_t | block | ||
| ) | [virtual] |
read 512bytes from memory;
- Parameters:
-
data block numbered from 0
Definition at line 11 of file mystorage.cpp.
| uint32_t storage_sectors | ( | ) | [virtual] |
returns number of 512byte sectors in storage;
Definition at line 37 of file mystorage.cpp.
| uint32_t storage_size | ( | ) | [virtual] |
returns size of storage in bytes;
Definition at line 43 of file mystorage.cpp.
| int storage_write | ( | const uint8_t * | data, |
| uint32_t | block | ||
| ) | [virtual] |
write 512bytes to memory;
- Parameters:
-
data block numbered from 0
Definition at line 22 of file mystorage.cpp.
Generated on Mon Jul 25 2022 10:58:37 by
1.7.2