mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-21 10:13:10 +00:00
fb73d3bd52
* platform: include only used api-hal files * api-hal-nfc: introduce nfc hal * nfc_worker: rework nfc worker * nfc: move nfc from services to applications, add startup hook * api-hal-nfc: init nfc worker in api_hal_detect * nfc: rework nfc application * nfc: fix app exit * api-hal-nfc: init nfc worker only once
37 lines
884 B
C
37 lines
884 B
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
#include <gui/canvas.h>
|
|
#include <furi.h>
|
|
|
|
#include "nfc_types.h"
|
|
|
|
typedef enum {
|
|
NfcViewMenu,
|
|
NfcViewRead,
|
|
NfcViewEmulate,
|
|
NfcViewField,
|
|
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);
|
|
|
|
typedef struct {
|
|
ReturnCode error;
|
|
} NfcViewErrorModel;
|
|
|
|
void nfc_view_error_draw(Canvas* canvas, void* model);
|