/// <summary> /// Access a single bit of the output. /// </summary> /// /// <param name="bit">index of the bit to access [0..3]</param> /// <returns>TRUE if the bit is 1, FALSE if the bit is 0</returns> public virtual bool this[int bit] { get { return(RobotHelper.GetBitFromInteger(data, bit)); } set { this.Data = RobotHelper.SetBitOfInteger(data, bit, value); } }