Пример #1
0
        /// <summary>
        /// 3.3.9 Clock Data Bytes In and Out MSB first
        /// The following commands allow for data to be clocked in and out at the same time
        /// most significant bit first.
        /// 0x34, out on +ve edge, in on -ve edge
        /// LengthL,
        /// LengthH,
        /// Byte1
        /// ..
        /// Byte65536 (max)
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        public byte[] BytesInOnMinusOutOnPlusWithMsbFirst(byte[] data)
        {
            write(MpsseCommand.BytesInOnMinusOutOnPlusWithMsbFirst(data));

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

            return(read((uint)data.Length));
        }
Пример #2
0
        /// <summary>
        /// 3.3.9 Clock Data Bytes In and Out MSB first
        /// The following commands allow for data to be clocked in and out at the same time
        /// most significant bit first.
        /// 0x34, out on +ve edge, in on -ve edge
        /// LengthL,
        /// LengthH,
        /// Byte1
        /// ..
        /// Byte65536 (max)
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        public byte[] BytesInOnMinusOutOnPlusWithMsbFirst(byte[] data)
        {
            write(MpsseCommand.BytesInOnMinusOutOnPlusWithMsbFirst(data));

            return(read((uint)data.Length));
        }