2022-09-08 16:40:33 +00:00
|
|
|
#pragma once
|
|
|
|
#include <gui/view.h>
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
LfRfidReadAsk,
|
|
|
|
LfRfidReadPsk,
|
2023-05-17 18:18:05 +00:00
|
|
|
LfRfidReadHitag,
|
2022-09-08 16:40:33 +00:00
|
|
|
LfRfidReadAskOnly,
|
2023-05-17 18:18:05 +00:00
|
|
|
LfRfidReadPskOnly,
|
|
|
|
LfRfidReadRtfOnly,
|
2022-09-08 16:40:33 +00:00
|
|
|
} LfRfidReadViewMode;
|
|
|
|
|
2023-05-17 18:18:05 +00:00
|
|
|
typedef enum {
|
|
|
|
LfRfidReadScanning,
|
|
|
|
LfRfidReadTagDetected,
|
|
|
|
} LfRfidReadViewState;
|
|
|
|
|
2022-09-08 16:40:33 +00:00
|
|
|
typedef struct LfRfidReadView LfRfidReadView;
|
|
|
|
|
|
|
|
LfRfidReadView* lfrfid_view_read_alloc();
|
|
|
|
|
|
|
|
void lfrfid_view_read_free(LfRfidReadView* read_view);
|
|
|
|
|
|
|
|
View* lfrfid_view_read_get_view(LfRfidReadView* read_view);
|
|
|
|
|
|
|
|
void lfrfid_view_read_set_read_mode(LfRfidReadView* read_view, LfRfidReadViewMode mode);
|
2023-05-17 18:18:05 +00:00
|
|
|
|
|
|
|
void lfrfid_view_read_set_read_state(LfRfidReadView* read_view, LfRfidReadViewState state);
|