CreateUsbStream Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Creates the stream used by the USB controller.
Namespace: Microsoft.SPOT.Hardware.UsbClient
Assembly: Microsoft.SPOT.Hardware.Usb (in Microsoft.SPOT.Hardware.Usb.dll)
Syntax
'Declaration
Public Function CreateUsbStream ( _
writeEndpoint As Integer, _
readEndpoint As Integer _
) As UsbStream
public UsbStream CreateUsbStream(
int writeEndpoint,
int readEndpoint
)
public:
UsbStream^ CreateUsbStream(
int writeEndpoint,
int readEndpoint
)
member CreateUsbStream :
writeEndpoint:int *
readEndpoint:int -> UsbStream
public function CreateUsbStream(
writeEndpoint : int,
readEndpoint : int
) : UsbStream
Parameters
- writeEndpoint
Type: System. . :: . .Int32
Specifies the endpoint used for writing to the stream.
- readEndpoint
Type: System. . :: . .Int32
Specifies the endpoint used for reading from the stream.
Return Value
Type: Microsoft.SPOT.Hardware.UsbClient. . :: . .UsbStream
The stream for the controller.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.