mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-20 11:51:48 +03:00
28 lines
674 B
C
28 lines
674 B
C
|
#pragma once
|
||
|
|
||
|
#include <furi_hal_nfc.h>
|
||
|
#include "../nfc_worker.h"
|
||
|
|
||
|
#include <m-string.h>
|
||
|
|
||
|
typedef enum {
|
||
|
NfcSupportedCardTypeTroyka,
|
||
|
|
||
|
NfcSupportedCardTypeEnd,
|
||
|
} NfcSupportedCardType;
|
||
|
|
||
|
typedef bool (*NfcSupportedCardVerify)(NfcWorker* nfc_worker, FuriHalNfcTxRxContext* tx_rx);
|
||
|
|
||
|
typedef bool (*NfcSupportedCardRead)(NfcWorker* nfc_worker, FuriHalNfcTxRxContext* tx_rx);
|
||
|
|
||
|
typedef bool (*NfcSupportedCardParse)(NfcWorker* nfc_worker);
|
||
|
|
||
|
typedef struct {
|
||
|
NfcProtocol protocol;
|
||
|
NfcSupportedCardVerify verify;
|
||
|
NfcSupportedCardRead read;
|
||
|
NfcSupportedCardParse parse;
|
||
|
} NfcSupportedCard;
|
||
|
|
||
|
extern NfcSupportedCard nfc_supported_card[NfcSupportedCardTypeEnd];
|