[FL-1501] NFC: read Mifare Ultralight (#571)

* nfc: add scripts menu scene
* canvas: add glyph width api
* app_scene: add state to Scene template
* gui: introduce TextBox view
* nfc: add mifare ultralight read scenes
* nfc: add mifare ultralight menu scene
* nfc: fix scene functions declaration
* Gui: use size_t for sizes.

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
gornekich
2021-07-08 23:41:34 +03:00
committed by GitHub
parent 9f6e14d005
commit 20fe544b4f
18 changed files with 722 additions and 2 deletions

View File

@@ -6,6 +6,8 @@
#define NFC_DEV_NAME_MAX_LEN 22
#define NFC_FILE_NAME_MAX_LEN 120
#define NFC_MIFARE_UL_MAX_SIZE 256
typedef enum {
NfcDeviceNfca,
NfcDeviceNfcb,
@@ -36,6 +38,9 @@ typedef struct {
typedef struct {
NfcDeviceData nfc_data;
uint8_t full_dump[NFC_MIFARE_UL_MAX_SIZE];
uint16_t dump_size;
// TODO delete with debug view
uint8_t man_block[12];
uint8_t otp[4];
} NfcMifareUlData;