Example #1
0
        public IrCommandBuilder sequence(ISequenceDefinition definition, long topBit, int length, long data)
        {
            for (int index = 0; index < length; index++)
            {
                if ((data & topBit) != 0)
                {
                    definition.One(this, index);
                }
                else
                {
                    definition.Zero(this, index);
                }

                data <<= 1;
            }

            return(this);
        }