nfc_views.h 867 B

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