2022-06-09 08:35:34 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <furi_hal_nfc.h>
|
|
|
|
#include <storage/storage.h>
|
|
|
|
|
2022-06-14 01:14:13 +00:00
|
|
|
typedef struct NfcDebugPcapWorker NfcDebugPcapWorker;
|
|
|
|
|
|
|
|
NfcDebugPcapWorker* nfc_debug_pcap_alloc(Storage* storage);
|
|
|
|
|
|
|
|
void nfc_debug_pcap_free(NfcDebugPcapWorker* instance);
|
|
|
|
|
2022-06-09 08:35:34 +00:00
|
|
|
/** Prepare tx/rx context for debug pcap logging, if enabled.
|
|
|
|
*
|
2022-06-14 01:14:13 +00:00
|
|
|
* @param instance NfcDebugPcapWorker* instance, can be NULL
|
2022-06-09 08:35:34 +00:00
|
|
|
* @param tx_rx TX/RX context to log
|
|
|
|
* @param is_picc if true, record Flipper as PICC, else PCD.
|
|
|
|
*/
|
2022-06-14 01:14:13 +00:00
|
|
|
void nfc_debug_pcap_prepare_tx_rx(
|
|
|
|
NfcDebugPcapWorker* instance,
|
|
|
|
FuriHalNfcTxRxContext* tx_rx,
|
|
|
|
bool is_picc);
|