mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-23 05:14:16 +03:00
bf8fd71c00
* nfc magic: introduce nfc app to work with magic cards * nfc: add nfc device functions to API * nfc magic: add bacis scenes * nfc magic: add wrong card and write confirm scenes * nfc magic: introduce magic lib * nfc magic: write magic lib * nfc magic: add write commands to magic lib * nfc magic: work on worker * furi_hal_nfc: add bits data exchage method to API * nfc magic: rework with new API * nfc magic: add check and wipe scenes * nfc magic: add icons, gui fixes * nfc: format python src Co-authored-by: あく <alleteam@gmail.com>
25 lines
472 B
C
25 lines
472 B
C
#pragma once
|
|
|
|
#include <furi.h>
|
|
|
|
#include "nfc_magic_worker.h"
|
|
|
|
struct NfcMagicWorker {
|
|
FuriThread* thread;
|
|
|
|
NfcDeviceData* dev_data;
|
|
|
|
NfcMagicWorkerCallback callback;
|
|
void* context;
|
|
|
|
NfcMagicWorkerState state;
|
|
};
|
|
|
|
int32_t nfc_magic_worker_task(void* context);
|
|
|
|
void nfc_magic_worker_check(NfcMagicWorker* nfc_magic_worker);
|
|
|
|
void nfc_magic_worker_write(NfcMagicWorker* nfc_magic_worker);
|
|
|
|
void nfc_magic_worker_wipe(NfcMagicWorker* nfc_magic_worker);
|