Share via


Configuration.Endpoint Constructor

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Creates an instance of the Configuration..::..Endpoint class.

Namespace:  Microsoft.SPOT.Hardware.UsbClient
Assembly:  Microsoft.SPOT.Hardware.Usb (in Microsoft.SPOT.Hardware.Usb.dll)

Syntax

'Declaration
Public Sub New ( _
    EndpointAddress As Byte, _
    Attributes As Byte _
)
public Endpoint(
    byte EndpointAddress,
    byte Attributes
)
public:
Endpoint(
    unsigned char EndpointAddress, 
    unsigned char Attributes
)
new : 
        EndpointAddress:byte * 
        Attributes:byte -> Endpoint
public function Configuration..::..Endpoint(
    EndpointAddress : byte, 
    Attributes : byte
)

Parameters

  • EndpointAddress
    Type: System. . :: . .Byte
    Specifies the USB-defined endpoint address. The four low-order bits specify the endpoint number. The high-order bit specifies the direction of data flow on this endpoint: 1 for in, 0 for out.

Remarks

The Attributes parameter is set by using a bitwise OR of the attribute constants defined in this class. For example, it can be set to ATTRIB_Synchronous | ATTRIB_Write | ATTRIB_Read for a synchronous endpoint that supports both reading and writing.

.NET Framework Security

See Also

Reference

Configuration. . :: . .Endpoint Class

Microsoft.SPOT.Hardware.UsbClient Namespace