'Declaration
Public Function Set_Direction( _ ByVal DeviceHandle As IntPtr, _ ByVal Direction As Integer, _ Optional ByVal ChannelNumber As Byte _ ) As String
'Usage
Dim instance As USB_DLL Dim DeviceHandle As IntPtr Dim Direction As Integer Dim ChannelNumber As Byte Dim value As String value = instance.Set_Direction(DeviceHandle, Direction, ChannelNumber)
public string Set_Direction( IntPtr DeviceHandle, int Direction, byte ChannelNumber )
Parameters
- DeviceHandle
- Type: System.IntPtr
The handle associated with the USB device. - Direction
- Type: System.Int32
The direction associated with the USB device.
The value must be between 0 and 5 for direction 1 and between 16 and 21 for direction 2. - ChannelNumber
- Type: System.Byte
The channel number associated with the USB device.
Return Value
Type: System.String
A value equal to 0; otherwise Error
A value equal to 0; otherwise Error