mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-20 17:53:20 +00:00
ca9862ef6c
Co-authored-by: あく <alleteam@gmail.com>
39 lines
937 B
C
39 lines
937 B
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
#include <gui/canvas.h>
|
|
#include <furi.h>
|
|
|
|
#include "nfc_types.h"
|
|
|
|
typedef enum {
|
|
NfcViewRead,
|
|
NfcViewEmulate,
|
|
NfcViewField,
|
|
NfcViewCli,
|
|
NfcViewError,
|
|
} NfcView;
|
|
|
|
typedef struct {
|
|
bool found;
|
|
NfcDevice device;
|
|
} NfcViewReadModel;
|
|
|
|
void nfc_view_read_draw(Canvas* canvas, void* model);
|
|
void nfc_view_read_nfca_draw(Canvas* canvas, NfcViewReadModel* model);
|
|
void nfc_view_read_nfcb_draw(Canvas* canvas, NfcViewReadModel* model);
|
|
void nfc_view_read_nfcf_draw(Canvas* canvas, NfcViewReadModel* model);
|
|
void nfc_view_read_nfcv_draw(Canvas* canvas, NfcViewReadModel* model);
|
|
|
|
void nfc_view_emulate_draw(Canvas* canvas, void* model);
|
|
|
|
void nfc_view_field_draw(Canvas* canvas, void* model);
|
|
|
|
void nfc_view_cli_draw(Canvas* canvas, void* model);
|
|
|
|
typedef struct {
|
|
ReturnCode error;
|
|
} NfcViewErrorModel;
|
|
|
|
void nfc_view_error_draw(Canvas* canvas, void* model);
|