Create and populate a response packet

Namespace:  VideoRay.Communication
Assembly:  vrLib (in vrLib.dll) Version: 2.0.0.0 (2.0.0.0)

Syntax

C#
public static Protocol_PRO4_Packet Build_Response(
	byte id,
	byte flags,
	byte address,
	byte deviceType,
	byte[] payload
)
Visual Basic (Declaration)
Public Shared Function Build_Response ( _
	id As Byte, _
	flags As Byte, _
	address As Byte, _
	deviceType As Byte, _
	payload As Byte() _
) As Protocol_PRO4_Packet
Visual C++
public:
static Protocol_PRO4_Packet^ Build_Response(
	unsigned char id, 
	unsigned char flags, 
	unsigned char address, 
	unsigned char deviceType, 
	array<unsigned char>^ payload
)

Parameters

id
Type: System..::.Byte
Self ID
flags
Type: System..::.Byte
FLAGS indicating type of response requested
address
Type: System..::.Byte
CSR address to write into and or read from
deviceType
Type: System..::.Byte
Device Type identifier for the response
payload
Type: array< System..::.Byte >[]()[]
data payload bytes

Return Value

Fully formed PRO4 protocol response packet

See Also