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.
Fork of USBDevice by
Diff: USBMSD/USBMSD.h
- Revision:
- 29:b7a0ea455a0c
- Parent:
- 25:7c72828865f3
--- a/USBMSD/USBMSD.h Tue Aug 05 20:15:19 2014 +0100
+++ b/USBMSD/USBMSD.h Mon Aug 18 13:45:19 2014 +0100
@@ -88,22 +88,24 @@
protected:
/*
- * read a block on a storage chip
+ * read one or more blocks on a storage chip
*
* @param data pointer where will be stored read data
- * @param block block number
+ * @param block starting block number
+ * @param count number of blocks to read
* @returns 0 if successful
*/
- virtual int disk_read(uint8_t * data, uint64_t block) = 0;
+ virtual int disk_read(uint8_t* data, uint64_t block, uint8_t count) = 0;
/*
- * write a block on a storage chip
+ * write one or more blocks on a storage chip
*
* @param data data to write
- * @param block block number
+ * @param block starting block number
+ * @param count number of blocks to write
* @returns 0 if successful
*/
- virtual int disk_write(const uint8_t * data, uint64_t block) = 0;
+ virtual int disk_write(const uint8_t* data, uint64_t block, uint8_t count) = 0;
/*
* Disk initilization
