usbdrv/peripheral/public/d32usbcshared.h
changeset 51 eaaed528d5fd
parent 36 1a2a19ee918d
child 59 bbdce6bffaad
equal deleted inserted replaced
46:613028a7da24 51:eaaed528d5fd
    24 
    24 
    25 #ifndef __D32USBCSHARED_H__
    25 #ifndef __D32USBCSHARED_H__
    26 #define __D32USBCSHARED_H__
    26 #define __D32USBCSHARED_H__
    27 
    27 
    28 #include <usb/usb_peripheral_shai_shared.h>
    28 #include <usb/usb_peripheral_shai_shared.h>
       
    29 #include <usb/usb_charger_detection_shai_shared.h>
       
    30 
    29 
    31 
    30 // FIXME: for dummy dcd compitible, move this line to usbcshared.h
    32 // FIXME: for dummy dcd compitible, move this line to usbcshared.h
    31 // used by shared chunk version LDD's user app interface
    33 // used by shared chunk version LDD's user app interface
    32 typedef TInt TUsbcDeviceState;
    34 typedef TInt TUsbcDeviceState;
    33 
    35 
   119 	TInt MaxPacketSize() const;
   121 	TInt MaxPacketSize() const;
   120 	/** Returns the smallest available packet size for this endpoint. */
   122 	/** Returns the smallest available packet size for this endpoint. */
   121 	TInt MinPacketSize() const;    
   123 	TInt MinPacketSize() const;    
   122     };
   124     };
   123 
   125 
       
   126 typedef UsbShai::TPortType TUsbcChargingPortType;
       
   127 typedef UsbShai::TChargerDetectorProperties TUsbcChargerDetectorProperties;
       
   128 const TUint KUsbChargingPortTypeNone = UsbShai::EPortTypeNone;
       
   129 const TUint KUsbChargingPortTypeUnsupported = UsbShai::EPortTypeUnsupported;
       
   130 const TUint KUsbChargingPortTypeChargingPort = UsbShai::EPortTypeChargingPort;
       
   131 const TUint KUsbChargingPortTypeDedicatedChargingPort = UsbShai::EPortTypeDedicatedChargingPort;
       
   132 const TUint KUsbChargingPortTypeChargingDownstreamPort = UsbShai::EPortTypeChargingDownstreamPort;
       
   133 const TUint KUsbChargingPortTypeStandardDownstreamPort = UsbShai::EPortTypeStandardDownstreamPort;
       
   134 const TUint KUsbChargingPortTypeAcaRidA = UsbShai::EPortTypeAcaRidA;
       
   135 const TUint KUsbChargingPortTypeAcaRidB = UsbShai::EPortTypeAcaRidB;
       
   136 const TUint KUsbChargingPortTypeAcaRidC = UsbShai::EPortTypeAcaRidC;
       
   137 const TUint KChargerDetectorCapChirpCurrentLimiting = UsbShai::TChargerDetectorProperties::KChargerDetectorCapChirpCurrentLimiting;
       
   138 
       
   139 
       
   140 	
   124 /** Endpoint resources/behaviours.
   141 /** Endpoint resources/behaviours.
   125 
   142 
   126 	@see AllocateEndpointResource()
   143 	@see AllocateEndpointResource()
   127 	@see DeAllocateEndpointResource()
   144 	@see DeAllocateEndpointResource()
   128 	@see QueryEndpointResourceUse()
   145 	@see QueryEndpointResourceUse()