fork from va009039/USBLocalFileSystem
Dependents: 11u35_usbLocalFilesystem
Fork of USBLocalFileSystem by
src/StorageInterface.h@2:97c314eae8b8, 2014-05-06 (annotated)
- Committer:
- va009039
- Date:
- Tue May 06 15:42:30 2014 +0900
- Branch:
- branch
- Revision:
- 2:97c314eae8b8
- Parent:
- 0:39eb4d5b97df
- Child:
- 11:c396747794c6
add USB MSD block operation.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
va009039 | 0:39eb4d5b97df | 1 | #pragma once |
va009039 | 0:39eb4d5b97df | 2 | |
va009039 | 0:39eb4d5b97df | 3 | class StorageInterface { |
va009039 | 0:39eb4d5b97df | 4 | public: |
va009039 | 0:39eb4d5b97df | 5 | StorageInterface() { |
va009039 |
2:97c314eae8b8 | 6 | report_read_count = 0; |
va009039 |
2:97c314eae8b8 | 7 | report_write_count = 0; |
va009039 |
2:97c314eae8b8 | 8 | report_sectors_count = 0; |
va009039 |
2:97c314eae8b8 | 9 | report_size_count = 0; |
va009039 | 0:39eb4d5b97df | 10 | } |
va009039 | 0:39eb4d5b97df | 11 | virtual int storage_read(uint8_t* data, uint32_t block) = 0; |
va009039 | 0:39eb4d5b97df | 12 | virtual int storage_write(const uint8_t* data, uint32_t block) = 0; |
va009039 | 0:39eb4d5b97df | 13 | virtual uint32_t storage_sectors() = 0; |
va009039 | 0:39eb4d5b97df | 14 | virtual uint32_t storage_size() = 0; |
va009039 | 0:39eb4d5b97df | 15 | |
va009039 |
2:97c314eae8b8 | 16 | __IO int report_read_count; |
va009039 |
2:97c314eae8b8 | 17 | __IO int report_write_count; |
va009039 |
2:97c314eae8b8 | 18 | __IO int report_sectors_count; |
va009039 |
2:97c314eae8b8 | 19 | __IO int report_size_count; |
va009039 | 0:39eb4d5b97df | 20 | }; |