Opens an endpoint for reading
Declaration Syntax
C# | Visual Basic | Visual C++ |
public override UsbEndpointReader OpenEndpointReader( ReadEndpointID readEndpointID, int readBufferSize, EndpointType endpointType )
Public Overrides Function OpenEndpointReader ( _ readEndpointID As ReadEndpointID, _ readBufferSize As Integer, _ endpointType As EndpointType _ ) As UsbEndpointReader
public: virtual UsbEndpointReader^ OpenEndpointReader( ReadEndpointID readEndpointID, int readBufferSize, EndpointType endpointType ) override
Parameters
- readEndpointID (ReadEndpointID)
- Endpoint number for read operations.
- readBufferSize (Int32)
- Size of the read buffer allocated for the DataReceived event.
- endpointType (EndpointType)
- The type of endpoint to open.
Return Value
A UsbEndpointReader class ready for reading. If the specified endpoint is already been opened, the original UsbEndpointReader class is returned.