Пример #1
0
  @Override
  public List<TapGroup> getTapGroups() {
    if (mAvailableTaps == null) {
      mAvailableTaps = new ArrayList<>();

      mAvailableTaps.addAll(mPassportFSKDecoder.getTapGroups());
    }

    return mAvailableTaps;
  }
Пример #2
0
  /**
   * Passport Decoder. Decodes unfiltered (e.g. demodulated but with no DC or audio filtering)
   * samples and produces Passport messages.
   */
  public PassportDecoder(DecodeConfiguration config, AliasList aliasList) {
    mPassportFSKDecoder = new LTRFSKDecoder();

    mPassportMessageFramer =
        new MessageFramer(SyncPattern.PASSPORT.getPattern(), PASSPORT_MESSAGE_LENGTH);

    mPassportFSKDecoder.addListener(mPassportMessageFramer);

    mPassportMessageProcessor = new PassportMessageProcessor(aliasList);
    mPassportMessageFramer.addMessageListener(mPassportMessageProcessor);
    mPassportMessageProcessor.setMessageListener(this);
  }
Пример #3
0
 @Override
 public void unregisterTap(Tap tap) {
   mPassportFSKDecoder.unregisterTap(tap);
 }