Exemple #1
0
            public void Receive(Boolean bit)
            {
                mMessage.Add(bit);

                /* Once our message is complete (ie full), send it to all registered
                 * message listeners, and set complete flag so for auto-removal */
                if (mMessage.IsFull())
                {
                    mComplete = true;
                    flush();
                }
            }
            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();
                        }
                    }
                }
            }