equal
deleted
inserted
replaced
204 ERequestAlternateDeviceStatusNotifyCancel = 1<<ERequestAlternateDeviceStatusNotify, |
204 ERequestAlternateDeviceStatusNotifyCancel = 1<<ERequestAlternateDeviceStatusNotify, |
205 ERequestReEnumerateCancel = 1<<ERequestReEnumerate, |
205 ERequestReEnumerateCancel = 1<<ERequestReEnumerate, |
206 ERequestEndpointStatusNotifyCancel = 1<<ERequestEndpointStatusNotify, |
206 ERequestEndpointStatusNotifyCancel = 1<<ERequestEndpointStatusNotify, |
207 ERequestOtgFeaturesNotify = 10, |
207 ERequestOtgFeaturesNotify = 10, |
208 ERequestOtgFeaturesNotifyCancel = 1<<ERequestOtgFeaturesNotify, |
208 ERequestOtgFeaturesNotifyCancel = 1<<ERequestOtgFeaturesNotify, |
|
209 ERequestChargingPortTypeNotify = 11, |
|
210 ERequestChargingPortTypeNotifyCancel = 1<<ERequestChargingPortTypeNotify |
209 }; |
211 }; |
210 |
212 |
211 enum TControl |
213 enum TControl |
212 { |
214 { |
213 // Changing the order of these enums will break BC. |
215 // Changing the order of these enums will break BC. |
283 EControlSetStringDescriptor, |
285 EControlSetStringDescriptor, |
284 EControlGetStringDescriptor, |
286 EControlGetStringDescriptor, |
285 EControlRemoveStringDescriptor, |
287 EControlRemoveStringDescriptor, |
286 EControlSetOtgDescriptor, |
288 EControlSetOtgDescriptor, |
287 EControlGetOtgDescriptor, |
289 EControlGetOtgDescriptor, |
288 EControlGetOtgFeatures |
290 EControlGetOtgFeatures, |
|
291 EControlGetChargerDetectorCaps |
289 }; |
292 }; |
290 |
293 |
291 public: |
294 public: |
292 |
295 |
293 #ifndef __KERNEL_MODE__ |
296 #ifndef __KERNEL_MODE__ |
1150 inline void OtgFeaturesNotify(TRequestStatus& aStatus, TUint8& aValue); |
1153 inline void OtgFeaturesNotify(TRequestStatus& aStatus, TUint8& aValue); |
1151 |
1154 |
1152 /** Cancel pending OTG feature request. |
1155 /** Cancel pending OTG feature request. |
1153 */ |
1156 */ |
1154 inline void OtgFeaturesNotifyCancel(); |
1157 inline void OtgFeaturesNotifyCancel(); |
1155 |
1158 /** Register for notification on USB charger type' change. If any usb charger |
|
1159 is detected, request completes and current charger type value is filled in aValue. |
|
1160 |
|
1161 @param aStatus Request status object |
|
1162 @param aValue On request completion, it contains current charger type value |
|
1163 */ |
|
1164 inline void ChargingPortTypeNotify(TRequestStatus& aStatus, TUint& aValue); |
|
1165 |
|
1166 /** Cancel pending Charger Type request. |
|
1167 */ |
|
1168 inline void ChargingPortTypeNotifyCancel(); |
|
1169 inline TInt ChargerDetectorCaps(TUsbcChargerDetectorProperties& aProperties); |
1156 #endif // #ifndef __KERNEL_MODE__ |
1170 #endif // #ifndef __KERNEL_MODE__ |
1157 }; |
1171 }; |
1158 |
1172 |
1159 |
1173 |
1160 #include <usb/d32usbc.inl> |
1174 #include <usb/d32usbc.inl> |