CanNativeCanReceive Method
Receive a CAN frame from the specified message id
Namespace: CTRE.Phoenix6.NativeAssembly: Phoenix6 (in Phoenix6.dll) Version: 1.0.0
public static StatusCode CanReceive(
uint messageId,
out byte[] data,
string canbus,
bool printErr = true
)
static member CanReceive :
messageId : uint32 *
data : byte[] byref *
canbus : string *
?printErr : bool
(* Defaults:
let _printErr = defaultArg printErr true
*)
-> StatusCode
- 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
StatusCodeStatus of the receive