--- a/usbdrv/peripheral/public/d32usbc.h Thu Sep 02 22:23:37 2010 +0300
+++ b/usbdrv/peripheral/public/d32usbc.h Fri Sep 17 08:40:15 2010 +0300
@@ -206,6 +206,8 @@
ERequestEndpointStatusNotifyCancel = 1<<ERequestEndpointStatusNotify,
ERequestOtgFeaturesNotify = 10,
ERequestOtgFeaturesNotifyCancel = 1<<ERequestOtgFeaturesNotify,
+ ERequestChargingPortTypeNotify = 11,
+ ERequestChargingPortTypeNotifyCancel = 1<<ERequestChargingPortTypeNotify
};
enum TControl
@@ -285,7 +287,8 @@
EControlRemoveStringDescriptor,
EControlSetOtgDescriptor,
EControlGetOtgDescriptor,
- EControlGetOtgFeatures
+ EControlGetOtgFeatures,
+ EControlGetChargerDetectorCaps
};
public:
@@ -1152,7 +1155,18 @@
/** Cancel pending OTG feature request.
*/
inline void OtgFeaturesNotifyCancel();
+ /** Register for notification on USB charger type' change. If any usb charger
+ is detected, request completes and current charger type value is filled in aValue.
+ @param aStatus Request status object
+ @param aValue On request completion, it contains current charger type value
+ */
+ inline void ChargingPortTypeNotify(TRequestStatus& aStatus, TUint& aValue);
+
+ /** Cancel pending Charger Type request.
+ */
+ inline void ChargingPortTypeNotifyCancel();
+ inline TInt ChargerDetectorCaps(TUsbcChargerDetectorProperties& aProperties);
#endif // #ifndef __KERNEL_MODE__
};