Class CanNative
Static class holding the methods for interfacing to the native CAN API
public static class CanNative
- Inheritance
-
CanNative
- Inherited Members
Methods
CanReceive(uint, out byte[], string, bool)
Receive a CAN frame from the specified message id
public static StatusCode CanReceive(uint messageId, out byte[] data, string canbus, bool printErr = true)
Parameters
messageIduintArbID to get CAN frame
databyte[]Data from the CAN frame
canbusstringNetwork to send frame over
printErrboolTrue to print errors to console output
Returns
- StatusCode
Status of the receive
CanSend(uint, byte[], string, bool)
Send arbitrary CAN frames over our platform.
public static void CanSend(uint messageId, byte[] data, string canbus, bool printErr = true)