nfc_debug_pcap.h 610 B

123456789101112131415161718192021
  1. #pragma once
  2. #include <furi_hal_nfc.h>
  3. #include <storage/storage.h>
  4. typedef struct NfcDebugPcapWorker NfcDebugPcapWorker;
  5. NfcDebugPcapWorker* nfc_debug_pcap_alloc(Storage* storage);
  6. void nfc_debug_pcap_free(NfcDebugPcapWorker* instance);
  7. /** Prepare tx/rx context for debug pcap logging, if enabled.
  8. *
  9. * @param instance NfcDebugPcapWorker* instance, can be NULL
  10. * @param tx_rx TX/RX context to log
  11. * @param is_picc if true, record Flipper as PICC, else PCD.
  12. */
  13. void nfc_debug_pcap_prepare_tx_rx(
  14. NfcDebugPcapWorker* instance,
  15. FuriHalNfcTxRxContext* tx_rx,
  16. bool is_picc);