nfc_magic_worker_i.h 624 B

1234567891011121314151617181920212223242526272829
  1. #pragma once
  2. #include <furi.h>
  3. #include "nfc_magic_worker.h"
  4. #include "lib/magic/common.h"
  5. struct NfcMagicWorker {
  6. FuriThread* thread;
  7. NfcMagicDevice* magic_dev;
  8. NfcDeviceData* dev_data;
  9. uint32_t new_password;
  10. NfcMagicWorkerCallback callback;
  11. void* context;
  12. NfcMagicWorkerState state;
  13. };
  14. int32_t nfc_magic_worker_task(void* context);
  15. void nfc_magic_worker_check(NfcMagicWorker* nfc_magic_worker);
  16. void nfc_magic_worker_write(NfcMagicWorker* nfc_magic_worker);
  17. void nfc_magic_worker_rekey(NfcMagicWorker* nfc_magic_worker);
  18. void nfc_magic_worker_wipe(NfcMagicWorker* nfc_magic_worker);