Loading...
Searching...
No Matches
lfrfid_worker_i.h
Go to the documentation of this file.
1
7#pragma once
8#include <furi.h>
9#include "lfrfid_worker.h"
10#include "lfrfid_raw_worker.h"
11#include "protocols/lfrfid_protocols.h"
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17typedef struct {
18 void (*const process)(LFRFIDWorker* worker);
20
21typedef enum {
22 LFRFIDWorkerIdle,
23 LFRFIDWorkerRead,
24 LFRFIDWorkerWrite,
25 LFRFIDWorkerEmulate,
26 LFRFIDWorkerReadRaw,
27 LFRFIDWorkerEmulateRaw,
28} LFRFIDWorkerMode;
29
31 char* raw_filename;
32
33 LFRFIDWorkerMode mode_index;
34 void* mode_storage;
35
36 FuriEventFlag* events;
37 FuriThread* thread;
38
39 LFRFIDWorkerReadType read_type;
40
41 LFRFIDWorkerReadCallback read_cb;
42 LFRFIDWorkerWriteCallback write_cb;
43 LFRFIDWorkerReadRawCallback read_raw_cb;
44 LFRFIDWorkerEmulateRawCallback emulate_raw_cb;
45
46 void* cb_ctx;
47
48 ProtocolDict* protocols;
49 LFRFIDProtocol protocol;
50};
51
52extern const LFRFIDWorkerModeType lfrfid_worker_modes[];
53
61
62#ifdef __cplusplus
63}
64#endif
LFRFID worker.
bool lfrfid_worker_check_for_stop(LFRFIDWorker *worker)
Check for stop flag.
Definition lfrfid_worker.c:141
Definition event_flag.c:14
Definition thread.c:33
Definition lfrfid_worker_i.h:30
Definition lfrfid_worker_i.h:17
Definition protocol_dict.c:4