/// <summary>Initializes the CAN bus.</summary> /// <param name="timings">The desired bus timings.</param> /// <param name="channel">The CAN channel to use.</param> public void Initialize(ControllerAreaNetwork.Timings timings, ControllerAreaNetwork.Channel channel) { this.can = new ControllerAreaNetwork(channel, timings); this.can.MessageAvailable += this.OnCanMessagesAvailable; this.can.ErrorReceived += this.OnCanErrorReceived; this.can.Enabled = true; }
public CanNativeAdapter(ControllerAreaNetwork.Channel canPort, ControllerAreaNetwork.Timings timings) : this(new CanNativeAdapterSettings(canPort, 0), timings) { }
public CanNativeAdapterSettings(ControllerAreaNetwork.Channel canPort, CanSpeed speed) : base(speed) { CanPort = canPort; }
public CanNativeAdapter(ControllerAreaNetwork.Channel canPort, CanAdapterSettings.CanSpeed speed) : this(new CanNativeAdapterSettings(canPort, speed)) { }