WriteMuxOutput Method

Beta Innovations USB SDK .NET/COM

Writes contents of iDataBuffer to the multiplexed output pins on the port specified by inPort. This function can be used on modules supporting multiplexed outputs.

Namespace:  BIUSBWrapper
Assembly:  BIUSBWrapper (in BIUSBWrapper.dll)

Syntax

Visual Basic (Declaration)
Public Shared Function WriteMuxOutput ( _
	ByRef iDeviceList As DeviceParam, _
	inPort As Byte, _
	iDataBuffer As DIRECT_OUTPUT() _
) As Integer
C#
public static int WriteMuxOutput(
	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.

See Also