nfc_views.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. NfcViewEmulateEMV,
  12. NfcViewEmulate,
  13. NfcViewField,
  14. NfcViewError,
  15. } NfcView;
  16. typedef struct {
  17. bool found;
  18. NfcDevice device;
  19. } NfcViewReadModel;
  20. void nfc_view_read_draw(Canvas* canvas, void* model);
  21. void nfc_view_read_nfca_draw(Canvas* canvas, NfcViewReadModel* model);
  22. void nfc_view_read_nfcb_draw(Canvas* canvas, NfcViewReadModel* model);
  23. void nfc_view_read_nfcf_draw(Canvas* canvas, NfcViewReadModel* model);
  24. void nfc_view_read_nfcv_draw(Canvas* canvas, NfcViewReadModel* model);
  25. void nfc_view_read_emv_draw(Canvas* canvas, void* model);
  26. void nfc_view_emulate_emv_draw(Canvas* canvas, void* model);
  27. void nfc_view_emulate_draw(Canvas* canvas, void* model);
  28. void nfc_view_field_draw(Canvas* canvas, void* model);
  29. typedef struct {
  30. ReturnCode error;
  31. } NfcViewErrorModel;
  32. void nfc_view_error_draw(Canvas* canvas, void* model);