Ejemplo n.º 1
0
 internal UsbEndpointBase(UsbDevice usbDevice, byte epNum, EndpointType endpointType)
 {
     mUsbDevice = usbDevice;
     mUsbApi = mUsbDevice.mUsbApi;
     mUsbHandle = mUsbDevice.Handle;
     mEpNum = epNum;
     mEndpointType = endpointType;
     if ((mEpNum & 0x80) > 0)
     {
         mPipeTransferSubmit = ReadPipe;
     }
     else
         mPipeTransferSubmit = WritePipe;
 }
Ejemplo n.º 2
0
 internal UsbEndpointBase(UsbDevice usbDevice, byte epNum, EndpointType endpointType)
 {
     mUsbDevice    = usbDevice;
     mUsbApi       = mUsbDevice.mUsbApi;
     mUsbHandle    = mUsbDevice.Handle;
     mEpNum        = epNum;
     mEndpointType = endpointType;
     if ((mEpNum & 0x80) > 0)
     {
         mPipeTransferSubmit = ReadPipe;
     }
     else
     {
         mPipeTransferSubmit = WritePipe;
     }
 }