private void buttonL4Off_Click(object sender, EventArgs e) { dataPacket[2] = (byte)4; dataPacket[3] = (byte)0; MySerial.Write(dataPacket, 0, dataPacket.Length); }
public int Shift(int tms, int tdi) { if (tms != 0) { tms = 1; } if (tdi != 0) { tdi = 1; } _sp.Write((byte)(0x80 | (tms << 1) | tdi)); byte ret = _sp.Read(); if (_verbose) { Console.WriteLine("tms = {0}, tdi = {1}, tdo = {2}", tms, tdi, ret); } return(ret); }
public JtagUartIfaceV1(MySerial sp, bool verbose = false) { _verbose = verbose; _sp = sp; _sp.Write(0x55); }