Exemplo n.º 1
0
 /// <summary>
 /// Create a device lock style class.
 /// </summary>
 /// <param name="deviceLockType">See <see cref="DeviceLockType"/>.</param>
 /// <param name="controlEpLockType">See <see cref="ControlEpLock"/>.</param>
 /// <param name="dataEpLockType">See <see cref="DataEpLock"/>.</param>
 /// <param name="endpoint0Timeout">Number of milliseconds to wait for an endpoint 0 lock before returning a timeout errorcode.</param>
 /// <param name="endpointLockTimeout">Number of milliseconds to wait for an endpoint lock before returning a timeout errorcode.</param>
 public UsbLockStyle(DeviceLockType deviceLockType,
                     ControlEpLockType controlEpLockType,
                     DataEpLockType dataEpLockType,
                     int endpoint0Timeout,
                     int endpointLockTimeout)
 {
     mDeviceLockType         = deviceLockType;
     mControlEpLock          = controlEpLockType;
     mDataEpLock             = dataEpLockType;
     mEndpointControlTimeout = endpoint0Timeout;
     mEndpointLockTimeout    = endpointLockTimeout;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Create a device lock style class.
 /// </summary>
 /// <param name="deviceLockType">See <see cref="DeviceLockType"/>.</param>
 /// <param name="controlEpLockType">See <see cref="ControlEpLock"/>.</param>
 /// <param name="dataEpLockType">See <see cref="DataEpLock"/>.</param>
 /// <param name="endpoint0Timeout">Number of milliseconds to wait for an endpoint 0 lock before returning a timeout errorcode.</param>
 /// <param name="endpointLockTimeout">Number of milliseconds to wait for an endpoint lock before returning a timeout errorcode.</param>
 public UsbLockStyle(DeviceLockType deviceLockType,
     ControlEpLockType controlEpLockType,
     DataEpLockType dataEpLockType,
     int endpoint0Timeout,
     int endpointLockTimeout)
 {
     mDeviceLockType = deviceLockType;
     mControlEpLock = controlEpLockType;
     mDataEpLock = dataEpLockType;
     mEndpointControlTimeout = endpoint0Timeout;
     mEndpointLockTimeout = endpointLockTimeout;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Create a device lock style class.
 /// </summary>
 /// <param name="deviceLockType">See <see cref="DeviceLockType"/>.</param>
 /// <param name="controlEpLockType">See <see cref="ControlEpLock"/>.</param>
 /// <param name="dataEpLockType">See <see cref="DataEpLock"/>.</param>
 public UsbLockStyle(DeviceLockType deviceLockType, ControlEpLockType controlEpLockType, DataEpLockType dataEpLockType)
     : this(deviceLockType, controlEpLockType, dataEpLockType, 1000, 1000)
 {
 }
Exemplo n.º 4
0
 /// <summary>
 /// Create a device lock style class.
 /// </summary>
 /// <param name="deviceLockType">See <see cref="DeviceLockType"/>.</param>
 /// <param name="controlEpLockType">See <see cref="ControlEpLock"/>.</param>
 /// <param name="dataEpLockType">See <see cref="DataEpLock"/>.</param>
 public UsbLockStyle(DeviceLockType deviceLockType, ControlEpLockType controlEpLockType, DataEpLockType dataEpLockType)
     : this(deviceLockType, controlEpLockType, dataEpLockType, 1000, 1000)
 {
 }