NFC: fixes & improvements (#897)
* nfc: (mf_ul) fix overflow while reading * nfc: (mf_ul) fix FAST_READ command emulation * nfc: (mf_ul) implement non-strict PWD_AUTH command emulation for NTAG21x * nfc: (mf_ul) improve emulation stability by removing frequent furi_hal_console_put() calls that cause delays or something * nfc: (mf_ul) remove calls to blocking functions from emulation worker Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
@@ -60,6 +60,14 @@ typedef struct {
|
||||
uint8_t data[MF_UL_MAX_DUMP_SIZE];
|
||||
} MifareUlData;
|
||||
|
||||
typedef struct {
|
||||
uint8_t pwd[4];
|
||||
union {
|
||||
uint8_t raw[2];
|
||||
uint16_t value;
|
||||
} pack;
|
||||
} MifareUlAuthData;
|
||||
|
||||
typedef struct {
|
||||
MfUltralightType type;
|
||||
uint8_t pages_to_read;
|
||||
@@ -67,6 +75,7 @@ typedef struct {
|
||||
bool support_fast_read;
|
||||
bool data_changed;
|
||||
MifareUlData data;
|
||||
MifareUlAuthData* auth_data;
|
||||
} MifareUlDevice;
|
||||
|
||||
bool mf_ul_check_card_type(uint8_t ATQA0, uint8_t ATQA1, uint8_t SAK);
|
||||
|
Reference in New Issue
Block a user