Initializes a new instance of the Packet class.

Namespace:  Bespoke.Robotics.BrainStem
Assembly:  Bespoke.Robotics.BrainStem (in Bespoke.Robotics.BrainStem.dll) Version: 2.0.0.0 (2.0.0.0)

Syntax

C#
public Packet(
	byte iicAddress,
	Packet..::.CommandCodeType commandCode,
	Packet..::.DirectionType direction,
	byte[] data
)
Visual Basic (Declaration)
Public Sub New ( _
	iicAddress As Byte, _
	commandCode As Packet..::.CommandCodeType, _
	direction As Packet..::.DirectionType, _
	data As Byte() _
)
Visual C++
public:
Packet(
	unsigned char iicAddress, 
	Packet..::.CommandCodeType commandCode, 
	Packet..::.DirectionType direction, 
	array<unsigned char>^ data
)

Parameters

iicAddress
Type: System..::.Byte
The address of the IIC module referenced by the packet.
commandCode
Type: Bespoke.Robotics.BrainStem..::.Packet..::.CommandCodeType
The command being referenced by the packet.
direction
Type: Bespoke.Robotics.BrainStem..::.Packet..::.DirectionType
The direction of the packet.
data
Type: array< System..::.Byte >[]()[]
The data stored in the packet.

See Also