Library to allo USB PTP device to be hosted by the mbed platform
Dependents: class_project_main
Diff: USBHostPTP.h
- Revision:
- 7:c3a16a61643f
- Parent:
- 6:124a01eaf569
- Child:
- 9:961c3357504d
--- a/USBHostPTP.h Thu Aug 29 19:19:37 2013 +0000 +++ b/USBHostPTP.h Thu Aug 29 23:59:17 2013 +0000 @@ -346,17 +346,19 @@ */ void DumpObjectInfo(void); PIMAContainer dataContainer; + + //This is a generic function should belong to some other class or namespance. + void DumpBuffer(uint8_t *buffer,uint32_t length); -protected: +//protected: //From IUSBEnumerator virtual void setVidPid(uint16_t vid, uint16_t pid); virtual bool parseInterface(uint8_t intf_nb, uint8_t intf_class, uint8_t intf_subclass, uint8_t intf_protocol); //Must return true if the interface should be parsed virtual bool useEndpoint(uint8_t intf_nb, ENDPOINT_TYPE type, ENDPOINT_DIRECTION dir); //Must return true if the endpoint will be used - //This is a generic function should belong to some other class or namespance. - void DumpBuffer(uint8_t *buffer,uint32_t length); + void DumpResponseContainer(void); -private: +//private: USBHost * host; USBDeviceConnected * pointerToDevice; bool deviceFound;