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: mbed-rtos EthernetInterface FatFileSystemCpp MCP23S17 SDFileSystem mbed
Fork of HTTPServerHelloWorld by
Diff: HardwareDrivers/MscFileSystem/MSCFileSystem.h
- Revision:
- 8:3655e9a98f28
- Parent:
- 7:1fe91b525d9a
- Child:
- 9:8f1dce5f85fe
--- a/HardwareDrivers/MscFileSystem/MSCFileSystem.h Sat Feb 08 17:33:41 2014 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,49 +0,0 @@
-/* USB Mass Storage device file system
- * Copyrigh (c) 2010, Igor Skochinsky
- * based on SDFileStorage
- * Copyright (c) 2008-2009, sford
- */
-
-#ifndef MSCFILESYSTEM_H
-#define MSCFILESYSTEM_H
-
-#include "mbed.h"
-#include "FATFileSystem.h"
-
-/* Class: MSCFileSystem
- * Access the filesystem on an attached USB mass storage device (e.g. a memory stick)
- *
- * Example:
- * > MSCFileSystem msc("msc");
- * >
- * > int main() {
- * > FILE *fp = fopen("/msc/myfile.txt", "w");
- * > fprintf(fp, "Hello World!\n");
- * > fclose(fp);
- * > }
- */
-class MSCFileSystem : public FATFileSystem {
-public:
-
- /* Constructor: MSCFileSystem
- * Create the File System for accessing a USB mass storage device
- *
- * Parameters:
- * name - The name used to access the filesystem
- */
- MSCFileSystem(const char* name);
- virtual int disk_initialize();
- virtual int disk_write(const char *buffer, int block_number);
- virtual int disk_read(char *buffer, int block_number);
- virtual int disk_status();
- virtual int disk_sync();
- virtual int disk_sectors();
-
-protected:
-
- int initialise_msc();
- uint32_t _numBlks;
- uint32_t _blkSize;
-};
-
-#endif
