Example #1
0
        /// <summary>
        /// 3.4.5 Clock Data Bytes In on +ve clock edge LSB first (no write)
        /// 0x28,
        /// LengthL,
        /// LengthH
        /// This will clock in bytes on TDO/DI from 1 to 65536 depending on the Length bytes.
        /// A length of 0x0000 will do 1 byte and a length of 0xffff will do 65536 bytes. The
        /// first bit in will be the LSB of the first byte and so on. The data will be sampled
        /// on the rising edge of the CLK pin. No data is clocked out of the device on TDI/DO.
        /// </summary>
        /// <param name="len"></param>
        /// <returns></returns>
        public byte[] BytesInOnPlusEdgeWithLsbFirst(uint len)
        {
            write(MpsseCommand.BytesInOnPlusEdgeWithLsbFirst(len));

            while (inputLen == 0)
            {
                Thread.Sleep(10);
            }

            return(read(len));
        }
Example #2
0
        /// <summary>
        /// 3.4.5 Clock Data Bytes In on +ve clock edge LSB first (no write)
        /// 0x28,
        /// LengthL,
        /// LengthH
        /// This will clock in bytes on TDO/DI from 1 to 65536 depending on the Length bytes.
        /// A length of 0x0000 will do 1 byte and a length of 0xffff will do 65536 bytes. The
        /// first bit in will be the LSB of the first byte and so on. The data will be sampled
        /// on the rising edge of the CLK pin. No data is clocked out of the device on TDI/DO.
        /// </summary>
        /// <param name="len"></param>
        /// <returns></returns>
        public byte[] BytesInOnPlusEdgeWithLsbFirst(uint len)
        {
            write(MpsseCommand.BytesInOnPlusEdgeWithLsbFirst(len));

            return(read(len));
        }