mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-16 01:28:00 +00:00
725981f431
* nfc: add emv decoder * api-hal-nfc: add data exchange api * nfc_worker: add read emv routine * nfc: add emv reader view * nfc: add support for Mastercard reading * api-hal-nfc: fix incorrect merge changes * nfc_worker: set to zero emv app object on each cycle * api-hal-nfc: add api for f6 target * nfc: move emv_decoder to lib folder Co-authored-by: あく <alleteam@gmail.com>
39 lines
962 B
C
39 lines
962 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,
|
|
NfcViewReadEmv,
|
|
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_read_emv_draw(Canvas* canvas, void* 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);
|