C# 클래스 LibUsbDotNet.UsbEndpointReader

Contains methods for retrieving data from a EndpointType.Bulk or EndpointType.Interrupt endpoint using the overloaded Read(byte[],int,out int) functions or a DataReceived event.
Before using the DataReceived event, the DataReceivedEnabled property must be set to true. While the DataReceivedEnabled property is True, the overloaded Read(byte[],int,out int) functions cannot be used.
상속: LibUsbDotNet.Main.UsbEndpointBase
파일 보기 프로젝트 열기: arvydas/BlinkStickDotNet 1 사용 예제들

공개 메소드들

메소드 설명
Read ( IntPtr buffer, int offset, int count, int timeout, int &transferLength ) : ErrorCode

Reads data from the current UsbEndpointReader.

Read ( byte buffer, int timeout, int &transferLength ) : ErrorCode

Reads data from the current UsbEndpointReader.

Read ( byte buffer, int offset, int count, int timeout, int &transferLength ) : ErrorCode

Reads data from the current UsbEndpointReader.

Read ( object buffer, int timeout, int &transferLength ) : ErrorCode

Reads data from the current UsbEndpointReader.

Read ( object buffer, int offset, int count, int timeout, int &transferLength ) : ErrorCode

Reads data from the current UsbEndpointReader.

ReadFlush ( ) : ErrorCode

Reads/discards data from the enpoint until no more data is available.

비공개 메소드들

메소드 설명
CreateTransferContext ( ) : UsbTransfer
ReadData ( object context ) : void
StartReadThread ( ) : void
StartStopReadThread ( ) : void
StopReadThread ( ) : bool
UsbEndpointReader ( UsbDevice usbDevice, int readBufferSize, ReadEndpointID readEndpointID, EndpointType endpointType ) : System

메소드 상세

Read() 공개 메소드

Reads data from the current UsbEndpointReader.
public Read ( IntPtr buffer, int offset, int count, int timeout, int &transferLength ) : ErrorCode
buffer System.IntPtr The buffer to store the recieved data in.
offset int The position in buffer to start storing the data.
count int The maximum number of bytes to receive.
timeout int Maximum time to wait for the transfer to complete. If the transfer times out, the IO operation will be cancelled.
transferLength int Number of bytes actually transferred.
리턴 ErrorCode

Read() 공개 메소드

Reads data from the current UsbEndpointReader.
public Read ( byte buffer, int timeout, int &transferLength ) : ErrorCode
buffer byte The buffer to store the recieved data in.
timeout int Maximum time to wait for the transfer to complete. If the transfer times out, the IO operation will be cancelled.
transferLength int Number of bytes actually transferred.
리턴 ErrorCode

Read() 공개 메소드

Reads data from the current UsbEndpointReader.
public Read ( byte buffer, int offset, int count, int timeout, int &transferLength ) : ErrorCode
buffer byte The buffer to store the recieved data in.
offset int The position in buffer to start storing the data.
count int The maximum number of bytes to receive.
timeout int Maximum time to wait for the transfer to complete. If the transfer times out, the IO operation will be cancelled.
transferLength int Number of bytes actually transferred.
리턴 ErrorCode

Read() 공개 메소드

Reads data from the current UsbEndpointReader.
public Read ( object buffer, int timeout, int &transferLength ) : ErrorCode
buffer object The buffer to store the recieved data in.
timeout int Maximum time to wait for the transfer to complete. If the transfer times out, the IO operation will be cancelled.
transferLength int Number of bytes actually transferred.
리턴 ErrorCode

Read() 공개 메소드

Reads data from the current UsbEndpointReader.
public Read ( object buffer, int offset, int count, int timeout, int &transferLength ) : ErrorCode
buffer object The buffer to store the recieved data in.
offset int The position in buffer to start storing the data.
count int The maximum number of bytes to receive.
timeout int Maximum time to wait for the transfer to complete. If the transfer times out, the IO operation will be cancelled.
transferLength int Number of bytes actually transferred.
리턴 ErrorCode

ReadFlush() 공개 메소드

Reads/discards data from the enpoint until no more data is available.
public ReadFlush ( ) : ErrorCode
리턴 ErrorCode