adds a USB serial port to your design
Dependents: Example_WatchDog_Timer
Diff: USBMSD/USBMSD.h
- Revision:
- 29:b7a0ea455a0c
- Parent:
- 25:7c72828865f3
- Child:
- 47:a0cd9646ecd1
diff -r c09a0c9bf425 -r b7a0ea455a0c USBMSD/USBMSD.h --- 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