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.
- Attributes
Type: System. . :: . .Byte
Specifies the endpoint type.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.