nfc: On-device tag generator (#1319)
* nfc: Add tag generator base * nfc: Fix BCC generation * nfc: Add MFUL EV1 generators * nfc: Fix typos in generator * nfc: Add NTAG21x generators * nfc: More const * nfc: Add NTAG I2C generators * nfc: Add field names to generator initializers * nfc: Move generators to add manually scene * nfc: Revise tag generator UX * nfc: Revert add manually menu item name * nfc: Remove unused scene start submenu index Co-authored-by: あく <alleteam@gmail.com> Co-authored-by: gornekich <n.gorbadey@gmail.com>
This commit is contained in:
13
applications/nfc/helpers/nfc_generators.h
Normal file
13
applications/nfc/helpers/nfc_generators.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#pragma once
|
||||
|
||||
#include "../nfc_i.h"
|
||||
|
||||
typedef void (*NfcGeneratorFunc)(NfcDeviceData* data);
|
||||
|
||||
struct NfcGenerator {
|
||||
const char* name;
|
||||
NfcGeneratorFunc generator_func;
|
||||
NfcScene next_scene;
|
||||
};
|
||||
|
||||
extern const NfcGenerator* const nfc_generators[];
|
||||
Reference in New Issue
Block a user