LibUsbDotNet 2.2.8
UsbEndpointReader Class
Library Reference ► LibUsbDotNet ► UsbEndpointReader
|
![]() |
Contains methods for retrieving data from a Bulk or Interrupt endpoint using the overloaded Read(array<Byte>[]()[][], Int32, Int32%) functions or a DataReceived event.

C# | Visual Basic | Visual C++ |
public class UsbEndpointReader : UsbEndpointBase
Public Class UsbEndpointReader _ Inherits UsbEndpointBase
public ref class UsbEndpointReader : public UsbEndpointBase

All Members | Methods | Properties | Events | ||
|
|
|
Icon | Member | Description |
---|---|---|
![]() |
DataReceived |
The DataReceived Event is fired when new data arrives for the current UsbEndpointReader.
|
![]() |
DataReceivedEnabled |
Gets/Sets a value indicating if the DataReceived event should be used.
|
![]() |
DataReceivedEnabledChanged |
The DataReceivedEnabledChanged Event is fired when the DataReceived event is started or stopped.
|
![]() ![]() |
DefReadBufferSize |
Default read buffer size when using the DataReceived event.
|
![]() |
Read(array<Byte>[]()[][], Int32, Int32%) |
Reads data from the current UsbEndpointReader.
|
![]() |
Read(IntPtr, Int32, Int32, Int32, Int32%) |
Reads data from the current UsbEndpointReader.
|
![]() |
Read(array<Byte>[]()[][], Int32, Int32, Int32, Int32%) |
Reads data from the current UsbEndpointReader.
|
![]() |
Read(Object, Int32, Int32, Int32, Int32%) |
Reads data from the current UsbEndpointReader.
|
![]() |
Read(Object, Int32, Int32%) |
Reads data from the current UsbEndpointReader.
|
![]() |
ReadBufferSize |
Size of the read buffer in bytes for the DataReceived event.
|
![]() |
ReadFlush()()()() |
Reads/discards data from the enpoint until no more data is available.
|
![]() |
ReadThreadPriority |
Gets/Sets the Priority level for the read thread when DataReceivedEnabled is true.
|

- Before using the DataReceived event, the DataReceivedEnabled property must be set to true.
- While the DataReceivedEnabled property is True, the overloaded Read(array<Byte>[]()[][], Int32, Int32%) functions cannot be used.

Object | |||
![]() |
UsbEndpointBase | ||
![]() |
UsbEndpointReader | ||
![]() |
MonoUsbEndpointReader |