示例#1
0
        /// <summary>
        /// 3.4.10 Clock Data Bits In and Out LSB first
        /// The following commands allow for data to be clocked in and out at the same time
        /// least significant bit first.
        /// 0x3E, out on +ve edge, in on -ve edge
        /// Length
        /// Byte
        /// </summary>
        /// <param name="data"></param>
        /// <param name="len"></param>
        /// <returns></returns>
        public byte BitsInOnMinusOutOnPlusWithLsbFirst(byte data, byte len)
        {
            write(MpsseCommand.BitsInOnMinusOutOnPlusWithLsbFirst(data, len));

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

            return(read()[0]);
        }
示例#2
0
        /// <summary>
        /// 3.4.10 Clock Data Bits In and Out LSB first
        /// The following commands allow for data to be clocked in and out at the same time
        /// least significant bit first.
        /// 0x3E, out on +ve edge, in on -ve edge
        /// Length
        /// Byte
        /// </summary>
        /// <param name="data"></param>
        /// <param name="len"></param>
        /// <returns></returns>
        public byte BitsInOnMinusOutOnPlusWithLsbFirst(byte data, byte len)
        {
            write(MpsseCommand.BitsInOnMinusOutOnPlusWithLsbFirst(data, len));

            return(flush()[0]);
        }