nfc_views.h 962 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #pragma once
  2. #include <stdint.h>
  3. #include <stdbool.h>
  4. #include <gui/canvas.h>
  5. #include <furi.h>
  6. #include "nfc_types.h"
  7. typedef enum {
  8. NfcViewMenu,
  9. NfcViewRead,
  10. NfcViewReadEmv,
  11. NfcViewEmulate,
  12. NfcViewField,
  13. NfcViewError,
  14. } NfcView;
  15. typedef struct {
  16. bool found;
  17. NfcDevice device;
  18. } NfcViewReadModel;
  19. void nfc_view_read_draw(Canvas* canvas, void* model);
  20. void nfc_view_read_nfca_draw(Canvas* canvas, NfcViewReadModel* model);
  21. void nfc_view_read_nfcb_draw(Canvas* canvas, NfcViewReadModel* model);
  22. void nfc_view_read_nfcf_draw(Canvas* canvas, NfcViewReadModel* model);
  23. void nfc_view_read_nfcv_draw(Canvas* canvas, NfcViewReadModel* model);
  24. void nfc_view_read_emv_draw(Canvas* canvas, void* model);
  25. void nfc_view_emulate_draw(Canvas* canvas, void* model);
  26. void nfc_view_field_draw(Canvas* canvas, void* model);
  27. typedef struct {
  28. ReturnCode error;
  29. } NfcViewErrorModel;
  30. void nfc_view_error_draw(Canvas* canvas, void* model);