mirror of
https://github.com/flipperdevices/flipperzero-firmware.git
synced 2025-12-12 04:41:26 +04:00
* nfc: Fix MIFARE Plus detection MIFARE Plus original doesn't have GetVersion support, so detection for SL2 has been moved. Also, SL2 only exists in MIFARE Plus X, so despite it not being specified in the type identification procedure chart, it's safe to call it for what it is. * Fix spelling * TODO: mark as non flipper one Co-authored-by: あく <alleteam@gmail.com>
33 lines
1.0 KiB
C
33 lines
1.0 KiB
C
#pragma once
|
|
|
|
#include "mf_plus.h"
|
|
|
|
#define MF_PLUS_FFF_PICC_PREFIX "PICC"
|
|
|
|
#define MF_PLUS_STATUS_OPERATION_OK (0x90)
|
|
#define MF_PLUS_STATUS_ADDITIONAL_FRAME (0xAF)
|
|
|
|
MfPlusError mf_plus_get_type_from_version(
|
|
const Iso14443_4aData* iso14443_4a_data,
|
|
MfPlusData* mf_plus_data);
|
|
|
|
MfPlusError mf_plus_get_type_from_iso4(const Iso14443_4aData* iso4_data, MfPlusData* mf_plus_data);
|
|
|
|
MfPlusError mf_plus_version_parse(MfPlusVersion* data, const BitBuffer* buf);
|
|
|
|
bool mf_plus_version_load(MfPlusVersion* data, FlipperFormat* ff);
|
|
|
|
bool mf_plus_security_level_load(MfPlusSecurityLevel* data, FlipperFormat* ff);
|
|
|
|
bool mf_plus_type_load(MfPlusType* data, FlipperFormat* ff);
|
|
|
|
bool mf_plus_size_load(MfPlusSize* data, FlipperFormat* ff);
|
|
|
|
bool mf_plus_version_save(const MfPlusVersion* data, FlipperFormat* ff);
|
|
|
|
bool mf_plus_security_level_save(const MfPlusSecurityLevel* data, FlipperFormat* ff);
|
|
|
|
bool mf_plus_type_save(const MfPlusType* data, FlipperFormat* ff);
|
|
|
|
bool mf_plus_size_save(const MfPlusSize* data, FlipperFormat* ff);
|