nfc_supported_card.h 674 B

123456789101112131415161718192021222324252627
  1. #pragma once
  2. #include <furi_hal_nfc.h>
  3. #include "../nfc_worker.h"
  4. #include <m-string.h>
  5. typedef enum {
  6. NfcSupportedCardTypeTroyka,
  7. NfcSupportedCardTypeEnd,
  8. } NfcSupportedCardType;
  9. typedef bool (*NfcSupportedCardVerify)(NfcWorker* nfc_worker, FuriHalNfcTxRxContext* tx_rx);
  10. typedef bool (*NfcSupportedCardRead)(NfcWorker* nfc_worker, FuriHalNfcTxRxContext* tx_rx);
  11. typedef bool (*NfcSupportedCardParse)(NfcWorker* nfc_worker);
  12. typedef struct {
  13. NfcProtocol protocol;
  14. NfcSupportedCardVerify verify;
  15. NfcSupportedCardRead read;
  16. NfcSupportedCardParse parse;
  17. } NfcSupportedCard;
  18. extern NfcSupportedCard nfc_supported_card[NfcSupportedCardTypeEnd];