示例#1
0
        /// <summary>
        /// 3.3.10 Clock Data Bits 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.
        /// 0x33, out on -ve edge, in on +ve edge
        /// Length
        /// Byte
        /// </summary>
        /// <param name="data"></param>
        /// <param name="len"></param>
        /// <returns></returns>
        public byte BitsInOnPlusOutOnMinusWithMsbFirst(byte data, byte len)
        {
            write(MpsseCommand.BitsInOnPlusOutOnMinusWithMsbFirst(data, len));

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

            return(read(1)[0]);
        }
示例#2
0
        /// <summary>
        /// 3.3.10 Clock Data Bits 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.
        /// 0x33, out on -ve edge, in on +ve edge
        /// Length
        /// Byte
        /// </summary>
        /// <param name="data"></param>
        /// <param name="len"></param>
        /// <returns></returns>
        public byte BitsInOnPlusOutOnMinusWithMsbFirst(byte data, byte len)
        {
            write(MpsseCommand.BitsInOnPlusOutOnMinusWithMsbFirst(data, len));

            return(read(1)[0]);
        }