fork from va009039/USBLocalFileSystem
Dependents: 11u35_usbLocalFilesystem
Fork of USBLocalFileSystem by
USBLocalFileSystem.h@0:39eb4d5b97df, 2014-05-03 (annotated)
- Committer:
- va009039
- Date:
- Sat May 03 11:21:37 2014 +0000
- Revision:
- 0:39eb4d5b97df
- Child:
- 1:00c9eb8af5c2
first commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
va009039 | 0:39eb4d5b97df | 1 | #pragma once |
va009039 | 0:39eb4d5b97df | 2 | #include "Storage.h" |
va009039 | 0:39eb4d5b97df | 3 | |
va009039 | 0:39eb4d5b97df | 4 | class USBLocalFileSystem { |
va009039 | 0:39eb4d5b97df | 5 | public: |
va009039 | 0:39eb4d5b97df | 6 | USBLocalFileSystem(const char* name = "local"); |
va009039 | 0:39eb4d5b97df | 7 | USBLocalFileSystem(PinName mosi, PinName miso, PinName sclk, PinName cs, const char* name = "local"); |
va009039 | 0:39eb4d5b97df | 8 | USBLocalFileSystem(StorageInterface* storage, const char* name = "local"); |
va009039 | 0:39eb4d5b97df | 9 | void attachEvent(void (*ptr)()); |
va009039 | 0:39eb4d5b97df | 10 | void remount(); |
va009039 | 0:39eb4d5b97df | 11 | void putc(int c); |
va009039 | 0:39eb4d5b97df | 12 | int getc(); |
va009039 | 0:39eb4d5b97df | 13 | |
va009039 | 0:39eb4d5b97df | 14 | private: |
va009039 | 0:39eb4d5b97df | 15 | void init(StorageInterface* storage, const char* name); |
va009039 | 0:39eb4d5b97df | 16 | const char* _name; |
va009039 | 0:39eb4d5b97df | 17 | StorageInterface* _storage; |
va009039 | 0:39eb4d5b97df | 18 | LocalStorage* _local; |
va009039 | 0:39eb4d5b97df | 19 | USBStorage2* _usb; |
va009039 | 0:39eb4d5b97df | 20 | }; |