Property | Type | Description | |
---|---|---|---|
mHasWaitBeenCalled | bool | ||
mIsoPacketSize | int | ||
mOriginalCount | int | ||
mOriginalOffset | int | ||
mTimeout | int | ||
mTransferCancelEvent | |||
mTransferCompleteEvent | |||
mTransferLOCK | object |
Method | Description | |
---|---|---|
Cancel ( ) : ErrorCode |
Cancels a pending transfer that was previously submitted with Submit.
|
|
Dispose ( ) : void |
Cancels any pending transfer and frees resources.
|
|
Fill ( |
Fills the transfer with the data to Submit.
|
|
Fill ( |
Fills the transfer with the data to Submit an isochronous transfer.
|
|
Fill ( object buffer, int offset, int count, int timeout ) : void |
Fills the transfer with the data to Submit.
|
|
Fill ( object buffer, int offset, int count, int timeout, int isoPacketSize ) : void |
Fills the transfer with the data to Submit an isochronous transfer.
|
|
IncrementTransfer ( int amount ) : bool |
Increments the internal counters to the next transfer batch (for transfers greater than UsbEndpointBase.MaxReadWrite)
|
|
Reset ( ) : void |
Resets the transfer to its orignal state. Prepares a UsbTransfer to be resubmitted. |
|
Submit ( ) : ErrorCode |
Submits the transfer. This functions submits the USB transfer and return immediately. |
|
Wait ( int &transferredCount ) : ErrorCode |
Wait for the transfer to complete, timeout, or get cancelled.
|
|
Wait ( int &transferredCount, bool cancel ) : ErrorCode |
Wait for the transfer to complete, timeout, or get cancelled.
|
Method | Description | |
---|---|---|
UsbTransfer ( |
|
Method | Description | |
---|---|---|
SyncTransfer ( |
||
SyncTransfer ( |
public Fill ( |
||
buffer | The buffer. | |
offset | int | The offset on the buffer where the transfer should read/write. |
count | int | The number of bytes to transfer. |
timeout | int | Time (milliseconds) to wait before the transfer times out. |
return | void |
public Fill ( |
||
buffer | The buffer. | |
offset | int | The offset on the buffer where the transfer should read/write. |
count | int | The number of bytes to transfer. |
timeout | int | Time (milliseconds) to wait before the transfer times out. |
isoPacketSize | int | Size of each isochronous packet. |
return | void |
public Fill ( object buffer, int offset, int count, int timeout ) : void | ||
buffer | object | The buffer; See |
offset | int | The offset on the buffer where the transfer should read/write. |
count | int | The number of bytes to transfer. |
timeout | int | Time (milliseconds) to wait before the transfer times out. |
return | void |
public Fill ( object buffer, int offset, int count, int timeout, int isoPacketSize ) : void | ||
buffer | object | The buffer; See |
offset | int | The offset on the buffer where the transfer should read/write. |
count | int | The number of bytes to transfer. |
timeout | int | Time (milliseconds) to wait before the transfer times out. |
isoPacketSize | int | Size of each isochronous packet. |
return | void |
public IncrementTransfer ( int amount ) : bool | ||
amount | int | This will usually be the total transferred on the previous batch. |
return | bool |
protected UsbTransfer ( |
||
endpointBase | ||
return | System |
public Wait ( int &transferredCount ) : ErrorCode | ||
transferredCount | int | The number of bytes transferred on |
return | ErrorCode |
public abstract Wait ( int &transferredCount, bool cancel ) : ErrorCode | ||
transferredCount | int | The number of bytes transferred on |
cancel | bool | If true, the transfer is cancelled if it does not complete within the time specified in |
return | ErrorCode |
protected ManualResetEvent,System.Threading mTransferCancelEvent | ||
return |
protected ManualResetEvent,System.Threading mTransferCompleteEvent | ||
return |