示例#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);
 }