mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-24 05:23:06 +00:00
956788c09b
* nfc: clean up scenes * nfc worker: remove field on from worker * nfc worker: move full data exchange to furi hal * nfc_device: check UID length * nfc protocol: introduce mifare common API * nfc: move common data to furi hal nfc * nfc: rename emv_decoder -> emv * nfc: move emv data structure to emv lib * nfc: remove deactivate after detection * nfc: rework furi hal nfc detect * nfc: clean up CLI commands and type * nfc: remove unused includes and function * nfc: add TxRxType enum * nfc: read mifare ultralight refactoring * nfc: refactore mifare ultralight start * rfal: fix custom data exchange * nfc: refactor read bank card * nfc: refactor read emv application * nfc: refactor emv test emulation * nfc: refactor uid emulation * nfc: add limit to uid emulation logger * fix source formatting * furi_hal_nfc: fix data exchange full * nfc: fix mifare ultralight type load Co-authored-by: あく <alleteam@gmail.com>
44 lines
1,011 B
C
Executable file
44 lines
1,011 B
C
Executable file
#pragma once
|
|
|
|
#include "nfc_i.h"
|
|
#include "nfc_worker.h"
|
|
|
|
#include <furi.h>
|
|
#include <lib/toolbox/stream/file_stream.h>
|
|
|
|
struct NfcWorker {
|
|
FuriThread* thread;
|
|
Storage* storage;
|
|
Stream* dict_stream;
|
|
|
|
NfcDeviceData* dev_data;
|
|
|
|
NfcWorkerCallback callback;
|
|
void* context;
|
|
|
|
NfcWorkerState state;
|
|
};
|
|
|
|
void nfc_worker_change_state(NfcWorker* nfc_worker, NfcWorkerState state);
|
|
|
|
int32_t nfc_worker_task(void* context);
|
|
|
|
void nfc_worker_read_emv_app(NfcWorker* nfc_worker);
|
|
|
|
void nfc_worker_read_emv(NfcWorker* nfc_worker);
|
|
|
|
void nfc_worker_emulate_apdu(NfcWorker* nfc_worker);
|
|
|
|
void nfc_worker_detect(NfcWorker* nfc_worker);
|
|
|
|
void nfc_worker_emulate(NfcWorker* nfc_worker);
|
|
|
|
void nfc_worker_read_mifare_ultralight(NfcWorker* nfc_worker);
|
|
|
|
void nfc_worker_mifare_classic_dict_attack(NfcWorker* nfc_worker);
|
|
|
|
void nfc_worker_read_mifare_desfire(NfcWorker* nfc_worker);
|
|
|
|
void nfc_worker_emulate_mifare_ul(NfcWorker* nfc_worker);
|
|
|
|
void nfc_worker_emulate_mifare_classic(NfcWorker* nfc_worker);
|