usbdrv/peripheral/public/usbc.h
changeset 48 21625e5de155
parent 33 089413cdde3c
child 59 bbdce6bffaad
--- a/usbdrv/peripheral/public/usbc.h	Wed Aug 25 15:55:37 2010 +0800
+++ b/usbdrv/peripheral/public/usbc.h	Mon Sep 06 11:27:08 2010 +0800
@@ -51,7 +51,7 @@
 /** Must correspond to the max enum of TRequest + 1;
     currently this is ERequestOtgFeaturesNotify = 10.
 */
-const TInt KUsbcMaxRequests = 11;
+const TInt KUsbcMaxRequests = 12;
 
 //
 //########################### Logical Device Driver (LDD) #############################
@@ -297,9 +297,11 @@
     void ClosePhysicalChunk(DPlatChunkHw* &aHwChunk);
     void CancelNotifyEndpointStatus();
     void CancelNotifyOtgFeatures();
+	void CancelNotifyChargerType();
     static void StatusChangeCallback(TAny* aDLddUsbcChannel);
     static void EndpointStatusChangeCallback(TAny* aDLddUsbcChannel);
     static void OtgFeatureChangeCallback(TAny* aDLddUsbcChannel);
+    static void ChargerTypeChangeCallback(TAny* aDLddUsbcChannel);
     static void EmergencyCompleteDfc(TAny* aDLddUsbcChannel);
     void DeConfigure(TInt aErrorCode);
     TInt SelectAlternateSetting(TUint aAlternateSetting);
@@ -333,6 +335,8 @@
     TUsbcEndpointStatusCallback iEndpointStatusCallbackInfo;
     TAny* iOtgFeatureChangePtr;
     TUsbcOtgFeatureCallback iOtgFeatureCallbackInfo;
+    TAny* iChargerTypeChangePtr;
+    TUsbcChargerTypeCallback iChargerTypeCallbackInfo;
     TInt iNumberOfEndpoints;
     RArray<DPlatChunkHw*> iHwChunksEp0;
     RArray<DPlatChunkHw*> iHwChunks;
@@ -350,6 +354,7 @@
     TClientDataRequest<TUint> *iStatusChangeReq;
     TClientDataRequest<TUint> *iEndpointStatusChangeReq;
     TClientDataRequest<TUint> *iOtgFeatureChangeReq;
+    TClientDataRequest<TUint> *iChargerTypeChangeReq;
     TEndpointTransferInfo iTfrInfo;
     };