Ejemplo n.º 1
0
 public static bool Equals(C4FMSymbol symbol, C4FMSymbol other)
 {
     if (other == null)
         return false;
     else
         return (other.getBit1() == symbol.getBit1() && other.getBit2() == symbol.getBit2());
 }
Ejemplo n.º 2
0
 public static bool Equals(C4FMSymbol symbol, C4FMSymbol other)
 {
     if (other == null)
     {
         return(false);
     }
     else
     {
         return(other.getBit1() == symbol.getBit1() && other.getBit2() == symbol.getBit2());
     }
 }
Ejemplo n.º 3
0
            public void receive(C4FMSymbol symbol)
            {
                if (mActive)
                {
                    /* Throw away status bits that are injected every 70 bits */
                    if (mMessage.pointer() == STATUS_BITS[mStatusIndicatorPointer])
                    {
                        mStatusIndicatorPointer++;
                    }
                    else
                    {
                        mMessage.Add(symbol.getBit1());
                        mMessage.Add(symbol.getBit2());

                        /* Check the message for complete */
                        if (mMessage.IsFull())
                        {
                            checkComplete();
                        }
                    }
                }
            }