mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-26 20:53:07 +00:00
5b8f147882
* nfc: add separate nfc_detect * nfc_worker: add callback and context * api-hal-nfc: return busy if rfal worker is running * nfc: introduce nfc_detect, change nfc_worker API, rework main nfc task * nfc_emulate: introduce nfc_emulate module * nfc: introduce nfc_emv module * nfc: introduce nfc_mifare_ul module * nfc: remove unused nfc_views * nfc: separate messages and models * nfc: remove unused nfc message types * nfc: remove message_queue from common api * view_dispatcher: delete internal queue in destructor * api-hal-nfc: fix rfal worker initialization condition Co-authored-by: あく <alleteam@gmail.com>
14 lines
294 B
C
14 lines
294 B
C
#pragma once
|
|
|
|
#include <gui/view.h>
|
|
#include "nfc_types.h"
|
|
|
|
typedef struct NfcEmv NfcEmv;
|
|
|
|
NfcEmv* nfc_emv_alloc(NfcCommon* nfc_common);
|
|
|
|
void nfc_emv_free(NfcEmv* nfc_emv);
|
|
|
|
View* nfc_emv_get_view(NfcEmv* nfc_emv);
|
|
|
|
void nfc_emv_view_dispatcher_callback(NfcEmv* nfc_emv, NfcMessage* message);
|