/// <summary>
        /// Determines whether the specified <see cref="OpenDis.Enumerations.DistributedEmission.Iff.Type1Parameter1Mode1CodeStatus"/> instance is equal to this instance.
        /// </summary>
        /// <param name="other">The <see cref="OpenDis.Enumerations.DistributedEmission.Iff.Type1Parameter1Mode1CodeStatus"/> instance to compare with this instance.</param>
        /// <returns>
        ///     <c>true</c> if the specified <see cref="OpenDis.Enumerations.DistributedEmission.Iff.Type1Parameter1Mode1CodeStatus"/> is equal to this instance; otherwise, <c>false</c>.
        /// </returns>
        public bool Equals(Type1Parameter1Mode1CodeStatus other)
        {
            // If parameter is null return false (cast to object to prevent recursive loop!)
            if ((object)other == null)
            {
                return(false);
            }

            return
                (this.CodeElement1 == other.CodeElement1 &&
                 this.CodeElement2 == other.CodeElement2 &&
                 this.Status == other.Status &&
                 this.Damage == other.Damage &&
                 this.Malfunction == other.Malfunction);
        }
        /// <summary>
        /// Creates the <see cref="OpenDis.Enumerations.DistributedEmission.Iff.Type1Parameter1Mode1CodeStatus"/> instance from the ushort value.
        /// </summary>
        /// <param name="value">The ushort value which represents the <see cref="OpenDis.Enumerations.DistributedEmission.Iff.Type1Parameter1Mode1CodeStatus"/> instance.</param>
        /// <returns>The <see cref="OpenDis.Enumerations.DistributedEmission.Iff.Type1Parameter1Mode1CodeStatus"/> instance, represented by the ushort value.</returns>
        public static Type1Parameter1Mode1CodeStatus FromUInt16(ushort value)
        {
            Type1Parameter1Mode1CodeStatus ps = new Type1Parameter1Mode1CodeStatus();

            uint mask0     = 0x0007;
            byte shift0    = 0;
            uint newValue0 = (value & mask0) >> shift0;

            ps.CodeElement1 = (byte)newValue0;

            uint mask1     = 0x0038;
            byte shift1    = 3;
            uint newValue1 = (value & mask1) >> shift1;

            ps.CodeElement2 = (byte)newValue1;

            uint mask4     = 0x2000;
            byte shift4    = 13;
            uint newValue4 = (value & mask4) >> shift4;

            ps.Status = (Type1Parameter1Mode1CodeStatus.StatusValue)newValue4;

            uint mask5     = 0x4000;
            byte shift5    = 14;
            uint newValue5 = (value & mask5) >> shift5;

            ps.Damage = (Type1Parameter1Mode1CodeStatus.DamageValue)newValue5;

            uint mask6     = 0x8000;
            byte shift6    = 15;
            uint newValue6 = (value & mask6) >> shift6;

            ps.Malfunction = (Type1Parameter1Mode1CodeStatus.MalfunctionValue)newValue6;

            return(ps);
        }
        /// <summary>
        /// Determines whether the specified <see cref="OpenDis.Enumerations.DistributedEmission.Iff.Type1Parameter1Mode1CodeStatus"/> instance is equal to this instance.
        /// </summary>
        /// <param name="other">The <see cref="OpenDis.Enumerations.DistributedEmission.Iff.Type1Parameter1Mode1CodeStatus"/> instance to compare with this instance.</param>
        /// <returns>
        /// 	<c>true</c> if the specified <see cref="OpenDis.Enumerations.DistributedEmission.Iff.Type1Parameter1Mode1CodeStatus"/> is equal to this instance; otherwise, <c>false</c>.
        /// </returns>
        public bool Equals(Type1Parameter1Mode1CodeStatus other)
        {
            // If parameter is null return false (cast to object to prevent recursive loop!)
            if ((object)other == null)
            {
                return false;
            }

            return
                this.CodeElement1 == other.CodeElement1 &&
                this.CodeElement2 == other.CodeElement2 &&
                this.Status == other.Status &&
                this.Damage == other.Damage &&
                this.Malfunction == other.Malfunction;
        }
        /// <summary>
        /// Creates the <see cref="OpenDis.Enumerations.DistributedEmission.Iff.Type1Parameter1Mode1CodeStatus"/> instance from the ushort value.
        /// </summary>
        /// <param name="value">The ushort value which represents the <see cref="OpenDis.Enumerations.DistributedEmission.Iff.Type1Parameter1Mode1CodeStatus"/> instance.</param>
        /// <returns>The <see cref="OpenDis.Enumerations.DistributedEmission.Iff.Type1Parameter1Mode1CodeStatus"/> instance, represented by the ushort value.</returns>
        public static Type1Parameter1Mode1CodeStatus FromUInt16(ushort value)
        {
            Type1Parameter1Mode1CodeStatus ps = new Type1Parameter1Mode1CodeStatus();

            uint mask0 = 0x0007;
            byte shift0 = 0;
            uint newValue0 = value & mask0 >> shift0;
            ps.CodeElement1 = (byte)newValue0;

            uint mask1 = 0x0038;
            byte shift1 = 3;
            uint newValue1 = value & mask1 >> shift1;
            ps.CodeElement2 = (byte)newValue1;

            uint mask4 = 0x2000;
            byte shift4 = 13;
            uint newValue4 = value & mask4 >> shift4;
            ps.Status = (Type1Parameter1Mode1CodeStatus.StatusValue)newValue4;

            uint mask5 = 0x4000;
            byte shift5 = 14;
            uint newValue5 = value & mask5 >> shift5;
            ps.Damage = (Type1Parameter1Mode1CodeStatus.DamageValue)newValue5;

            uint mask6 = 0x8000;
            byte shift6 = 15;
            uint newValue6 = value & mask6 >> shift6;
            ps.Malfunction = (Type1Parameter1Mode1CodeStatus.MalfunctionValue)newValue6;

            return ps;
        }