nfc_worker_i.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #pragma once
  2. #include "nfc_worker.h"
  3. #include <furi.h>
  4. #include <lib/toolbox/stream/file_stream.h>
  5. #include "protocols/nfc_util.h"
  6. #include "protocols/mifare_common.h"
  7. #include "protocols/mifare_ultralight.h"
  8. #include "protocols/mifare_classic.h"
  9. #include "protocols/nfca.h"
  10. #include "helpers/reader_analyzer.h"
  11. struct NfcWorker {
  12. FuriThread* thread;
  13. Storage* storage;
  14. Stream* dict_stream;
  15. NfcDeviceData* dev_data;
  16. NfcWorkerCallback callback;
  17. void* context;
  18. NfcWorkerState state;
  19. ReaderAnalyzer* reader_analyzer;
  20. };
  21. void nfc_worker_change_state(NfcWorker* nfc_worker, NfcWorkerState state);
  22. int32_t nfc_worker_task(void* context);
  23. void nfc_worker_read(NfcWorker* nfc_worker);
  24. void nfc_worker_read_type(NfcWorker* nfc_worker);
  25. void nfc_worker_emulate_uid(NfcWorker* nfc_worker);
  26. void nfc_worker_emulate_mf_ultralight(NfcWorker* nfc_worker);
  27. void nfc_worker_emulate_mf_classic(NfcWorker* nfc_worker);
  28. void nfc_worker_write_mf_classic(NfcWorker* nfc_worker);
  29. void nfc_worker_update_mf_classic(NfcWorker* nfc_worker);
  30. void nfc_worker_mf_classic_dict_attack(NfcWorker* nfc_worker);
  31. void nfc_worker_mf_ultralight_read_auth(NfcWorker* nfc_worker);
  32. void nfc_worker_mf_ul_auth_attack(NfcWorker* nfc_worker);
  33. void nfc_worker_emulate_apdu(NfcWorker* nfc_worker);
  34. void nfc_worker_analyze_reader(NfcWorker* nfc_worker);