/// <summary> /// 3.5.2 Clock Data to TMS pin with read /// 0x6F /// Length, /// Byte1 /// This will send data bits 6 down to 0 to the TMS pin using the LSB or MSB and -ve /// or +ve clk , depending on which of the lower bits have been set. /// 0x6F : TMS with LSB first on -ve clk edge, read on -ve edge - use if clk is set to '0' /// Bit 7 of the Byte1 is passed on to TDI/DO before the first clk of TMS and is held /// static for the duration of TMS clocking. The TDO/DI pin is sampled for the /// duration of TMS and a byte containing the data is passed back at the end of TMS /// clocking. /// </summary> /// <param name="data"></param> /// <param name="len"></param> /// <returns></returns> public byte TmsInOutOnMinusEdge(byte data, byte len) { write(MpsseCommand.TmsInOutOnMinusEdge(data, len)); while (inputLen == 0) { Thread.Sleep(10); } return(read(1)[0]); }
/// <summary> /// 3.5.2 Clock Data to TMS pin with read /// 0x6F /// Length, /// Byte1 /// This will send data bits 6 down to 0 to the TMS pin using the LSB or MSB and -ve /// or +ve clk , depending on which of the lower bits have been set. /// 0x6F : TMS with LSB first on -ve clk edge, read on -ve edge - use if clk is set to '0' /// Bit 7 of the Byte1 is passed on to TDI/DO before the first clk of TMS and is held /// static for the duration of TMS clocking. The TDO/DI pin is sampled for the /// duration of TMS and a byte containing the data is passed back at the end of TMS /// clocking. /// </summary> /// <param name="data"></param> /// <param name="len"></param> /// <returns></returns> public byte TmsInOutOnMinusEdge(byte data, byte len) { write(MpsseCommand.TmsInOutOnMinusEdge(data, len)); return(read(1)[0]); }