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.
Dependents: USBMSD_CDC_11U35test
Diff: USBCDCMSC.h
- Revision:
- 3:178491b4d4f3
- Parent:
- 2:8f01347859d0
--- a/USBCDCMSC.h Wed Apr 22 04:54:29 2015 +0000
+++ b/USBCDCMSC.h Wed Apr 22 16:41:59 2015 +0000
@@ -31,11 +31,13 @@
#include "USBSDFileSystem.h"
-
+/**
+class USBCDCMSC: public USBDevice, public Stream
+*/
class USBCDCMSC: public USBDevice, public Stream {
public:
- /*
+ /**
* Constructor
*
* @param vendor_id Your vendor_id
@@ -102,7 +104,6 @@
}
}
-
/**
* Connect the USB MSD device. Establish disk initialization before really connect the device.
*
@@ -110,6 +111,11 @@
*/
bool connect();
+ /**
+ * Disconnect the USB MSD device.
+ */
+ void disconnect();
+
protected:
/*
@@ -221,12 +227,12 @@
/*
* Callback called when a MSD packet is received
*/
- virtual bool EP3_OUT_callback();
+ virtual bool EP4_OUT_callback();
/*
* Callback called when a MSD packet has been sent
*/
- virtual bool EP3_IN_callback();
+ virtual bool EP4_IN_callback();
private: