nfc_worker_i.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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/nfca.h"
  9. struct NfcWorker {
  10. FuriThread* thread;
  11. Storage* storage;
  12. Stream* dict_stream;
  13. NfcDeviceData* dev_data;
  14. NfcWorkerCallback callback;
  15. void* context;
  16. NfcWorkerState state;
  17. };
  18. void nfc_worker_change_state(NfcWorker* nfc_worker, NfcWorkerState state);
  19. int32_t nfc_worker_task(void* context);
  20. void nfc_worker_read(NfcWorker* nfc_worker);
  21. void nfc_worker_read_type(NfcWorker* nfc_worker);
  22. void nfc_worker_emulate_uid(NfcWorker* nfc_worker);
  23. void nfc_worker_emulate_mf_ultralight(NfcWorker* nfc_worker);
  24. void nfc_worker_emulate_mf_classic(NfcWorker* nfc_worker);
  25. void nfc_worker_write_mf_classic(NfcWorker* nfc_worker);
  26. void nfc_worker_update_mf_classic(NfcWorker* nfc_worker);
  27. void nfc_worker_mf_classic_dict_attack(NfcWorker* nfc_worker);
  28. void nfc_worker_mf_ultralight_read_auth(NfcWorker* nfc_worker);
  29. void nfc_worker_mf_ul_auth_attack(NfcWorker* nfc_worker);
  30. void nfc_worker_emulate_apdu(NfcWorker* nfc_worker);
  31. void nfc_worker_analyze_reader(NfcWorker* nfc_worker);