private void Lco_nmtecevent(canpacket p, DateTime dt) { if (!busy) { return; } if ((p.cob & 0x0ff) == node) { if (p.len == 1) { if (p.data[0] == 0x00) { this.Invoke(new MethodInvoker(delegate() { textBox1.AppendText("** RESET EVENT **\r\n"); })); nextsdoplease(null); lco.nmtecevent -= Lco_nmtecevent;; } } } }
private void button_send_Click(object sender, EventArgs e) { canpacket p = new canpacket(); p.cob = node; p.data = emcymsg; p.len = 8; _lco.SendPacket(p); }
private static void Instance_rxmessage(DriverInstance.Message msg) { canpacket cp = new canpacket(msg); Console.WriteLine("RX :" + cp.ToString()); }
private void Lcobridge_packetevent(canpacket p, DateTime dt) { _lco.SendPacket(p, true); }
private static void Lco_nmtecevent(canpacket p) { Console.WriteLine("NMTEC :" + p.ToString()); }