コード例 #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.
        /// 0x3B, out on -ve edge, in on +ve edge
        /// Length
        /// Byte
        /// </summary>
        /// <param name="data"></param>
        /// <param name="len"></param>
        /// <returns></returns>
        public byte BitsInOnPlusOutOnMinusWithLsbFirst(byte data, byte len)
        {
            write(MpsseCommand.BitsInOnPlusOutOnMinusWithLsbFirst(data, len));

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

            return(read(1)[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.
        /// 0x3B, out on -ve edge, in on +ve edge
        /// Length
        /// Byte
        /// </summary>
        /// <param name="data"></param>
        /// <param name="len"></param>
        /// <returns></returns>
        public byte BitsInOnPlusOutOnMinusWithLsbFirst(byte data, byte len)
        {
            write(MpsseCommand.BitsInOnPlusOutOnMinusWithLsbFirst(data, len));

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