mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-22 04:41:36 +03:00
9b2d80d6b7
* FBT, applications: add MENUEXTERNAL app type * FBT, uFBT: build MENUEXTERNAL as EXTERNAL app * Loader menu: show external menu apps * LFRFID: move to sd card * FBT: always build External Applications list * Archive: look for external apps path * Infrared: move to sd card * Apps: add "start" apps * iButton: move to sd card * BadUSB: move to sd card * External apps: update icons * GPIO: move to sd card * Loader: look for external apps path * U2F: move to sd * SubGHz: move to sd * Apps: "on_start" metapackage * NFC: move to sd * Sync f7 and f18 Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
47 lines
1.3 KiB
C
47 lines
1.3 KiB
C
#pragma once
|
|
|
|
#include <furi_hal_nfc.h>
|
|
#include "../nfc_worker.h"
|
|
#include "../nfc_device.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef enum {
|
|
NfcSupportedCardTypePlantain,
|
|
NfcSupportedCardTypeTroika,
|
|
NfcSupportedCardTypePlantain4K,
|
|
NfcSupportedCardTypeTroika4K,
|
|
NfcSupportedCardTypeTwoCities,
|
|
NfcSupportedCardTypeAllInOne,
|
|
NfcSupportedCardTypeOpal,
|
|
|
|
NfcSupportedCardTypeEnd,
|
|
} NfcSupportedCardType;
|
|
|
|
typedef bool (*NfcSupportedCardVerify)(NfcWorker* nfc_worker, FuriHalNfcTxRxContext* tx_rx);
|
|
|
|
typedef bool (*NfcSupportedCardRead)(NfcWorker* nfc_worker, FuriHalNfcTxRxContext* tx_rx);
|
|
|
|
typedef bool (*NfcSupportedCardParse)(NfcDeviceData* dev_data);
|
|
|
|
typedef struct {
|
|
NfcProtocol protocol;
|
|
NfcSupportedCardVerify verify;
|
|
NfcSupportedCardRead read;
|
|
NfcSupportedCardParse parse;
|
|
} NfcSupportedCard;
|
|
|
|
extern NfcSupportedCard nfc_supported_card[NfcSupportedCardTypeEnd];
|
|
|
|
bool nfc_supported_card_verify_and_parse(NfcDeviceData* dev_data);
|
|
|
|
// stub_parser_verify_read does nothing, and always reports that it does not
|
|
// support the card. This is needed for DESFire card parsers which can't
|
|
// provide keys, and only use NfcSupportedCard->parse.
|
|
bool stub_parser_verify_read(NfcWorker* nfc_worker, FuriHalNfcTxRxContext* tx_rx);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif |