Exemple #1
0
        /// <summary>
        /// 3.3.6 Clock Data Bytes In on -ve clock edge MSB first (no write)
        /// 0x24,
        /// 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 MSB of the first byte and so on. The data will be sampled
        /// on the falling 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[] BytesInOnMinusEdgeWithMsbFirst(uint len)
        {
            write(MpsseCommand.BytesInOnMinusEdgeWithMsbFirst(len));

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

            return(read(len));
        }
        /// <summary>
        /// 3.3.6 Clock Data Bytes In on -ve clock edge MSB first (no write)
        /// 0x24,
        /// 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 MSB of the first byte and so on. The data will be sampled
        /// on the falling 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[] BytesInOnMinusEdgeWithMsbFirst(uint len)
        {
            write(MpsseCommand.BytesInOnMinusEdgeWithMsbFirst(len));

            return(read(len));
        }