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

            return
                (this.EncodingType == other.EncodingType &&
                 this.EncodingClass == other.EncodingClass);
        }
        /// <summary>
        /// Creates the <see cref="DIS.OpenDIS.Enumerations.Radio.Transmitter.RadioSignalEncoding"/> instance from the ushort value.
        /// </summary>
        /// <param name="value">The ushort value which represents the <see cref="DIS.OpenDIS.Enumerations.Radio.Transmitter.RadioSignalEncoding"/> instance.</param>
        /// <returns>The <see cref="DIS.OpenDIS.Enumerations.Radio.Transmitter.RadioSignalEncoding"/> instance, represented by the ushort value.</returns>
        public static RadioSignalEncoding FromUInt16(ushort value)
        {
            RadioSignalEncoding ps = new RadioSignalEncoding();

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

            ps.EncodingType = (RadioSignalEncoding.EncodingTypeValue)newValue0;

            uint mask1     = 0xc000;
            byte shift1    = 14;
            uint newValue1 = (value & mask1) >> shift1;

            ps.EncodingClass = (RadioSignalEncoding.EncodingClassValue)newValue1;

            return(ps);
        }