







![]() ![]() |
Beta Innovations USB SDK Wrapper Library for .NET/COM v2.0.0.0 reference library |
BIUSB..::.WriteDirectOutput Method |
BIUSB Class See Also Send Feedback |
Writes contents of iDataBuffer to the output
pins on the port specified by inPort. This
function can be used on modules supporting direct outputs.
Namespace:
BIUSBWrapper
Assembly:
BIUSBWrapper (in BIUSBWrapper.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Shared Function WriteDirectOutput ( _ ByRef iDeviceList As DeviceParam, _ inPort As Byte, _ iDataBuffer As DIRECT_OUTPUT() _ ) As Integer |
C# |
---|
public static int WriteDirectOutput( ref DeviceParam iDeviceList, byte inPort, DIRECT_OUTPUT[] iDataBuffer ) |
Parameters
- iDeviceList
- Type:
BIUSBWrapper..::.DeviceParam
%
A DeviceParam structure. Must contain valid device information returned from call to DetectHID.
- inPort
- Type: System..::.Byte
Zero based index of output Port to write to.
- iDataBuffer
- Type: array<
BIUSBWrapper..::.DIRECT_OUTPUT
>[]()[]
Array of DIRECT_OUTPUT structures containing data to write to the output pins specified by inPort.
Return Value
0: If failure writing to device.>0: if success, returns number of bytes written to device.