nfc_views.h 884 B

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