CanNativeCanReceive Method

Receive a CAN frame from the specified message id

Definition

Namespace: CTRE.Phoenix6.Native
Assembly: Phoenix6 (in Phoenix6.dll) Version: 1.0.0
C#
public static StatusCode CanReceive(
	uint messageId,
	out byte[] data,
	string canbus,
	bool printErr = true
)

Parameters

messageId  UInt32
ArbID to get CAN frame
data  Byte
Data from the CAN frame
canbus  String
Network to send frame over
printErr  Boolean  (Optional)
True to print errors to console output

Return Value

StatusCode
Status of the receive

See Also