unleashed-firmware/applications/main/lfrfid/views/lfrfid_view_read.h

28 lines
680 B
C
Raw Normal View History

#pragma once
#include <gui/view.h>
typedef enum {
LfRfidReadAsk,
LfRfidReadPsk,
2023-05-17 18:18:05 +00:00
LfRfidReadHitag,
LfRfidReadAskOnly,
2023-05-17 18:18:05 +00:00
LfRfidReadPskOnly,
LfRfidReadRtfOnly,
} LfRfidReadViewMode;
2023-05-17 18:18:05 +00:00
typedef enum {
LfRfidReadScanning,
LfRfidReadTagDetected,
} LfRfidReadViewState;
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);