Library to allo USB PTP device to be hosted by the mbed platform

Dependents:   class_project_main

Revision:
11:3b072cf16df8
Parent:
10:fc1cb68fc91e
--- a/USBHostPTP.h	Wed Sep 18 01:48:07 2013 +0000
+++ b/USBHostPTP.h	Mon Oct 07 04:45:55 2013 +0000
@@ -36,6 +36,7 @@
 
 //Define a data handler function pointer type to allow handler function pointeers to be readable in function definitions.
 typedef void (*DataHandler)(void *object, uint8_t *bufffer, uint16_t length);
+typedef bool (*CodeDecoder)(uint16_t code, char *bufffer);
 
 /**
  * USBHostPTP class
@@ -349,6 +350,9 @@
     
     //This is a generic function should belong to some other class or namespance.
     void DumpBuffer(uint8_t *buffer,uint32_t length);
+    void (*LookupCodeStringFunctionPointer)(uint16_t value,char *stringValue);
+ 
+    CodeDecoder CodeDecoderFunction;
 
 //protected:
     //From IUSBEnumerator
@@ -357,6 +361,7 @@
     virtual bool useEndpoint(uint8_t intf_nb, ENDPOINT_TYPE type, ENDPOINT_DIRECTION dir); //Must return true if the endpoint will be used
 
     void DumpResponseContainer(void);
+    void PrintCodeInformation(uint16_t value);
     
 //private:
     USBHost            * host;
@@ -372,6 +377,7 @@
     PIMAContainer      responseContainer;
     //PIMAContainer      dataContainer;
     PIMAContainer      eventContainer;
+    PIMAPropDesc       propertyDescription;
     uint32_t           transactionCnt;
     uint32_t           sessionID;
     uint8_t            buffer[1024];