mirror of
https://github.com/flipperdevices/flipperzero-firmware.git
synced 2025-12-12 04:41:26 +04:00
* slix: fix incorrect default privacy passwords * slix poller: add check privacy password state * mf desfire: change detect algorithm * mf desfire: change detection algorithm to check master key version * mf desfire: change assert to check * Update api symbols and cleanup code Co-authored-by: あく <alleteam@gmail.com>
46 lines
937 B
C
46 lines
937 B
C
#pragma once
|
|
|
|
#include <nfc/protocols/iso15693_3/iso15693_3_poller_i.h>
|
|
|
|
#include "slix_poller.h"
|
|
|
|
#define SLIX_POLLER_SET_PASSWORD_FWT (100000)
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef enum {
|
|
SlixPollerStateIdle,
|
|
SlixPollerStateGetNxpSysInfo,
|
|
SlixPollerStateReadSignature,
|
|
SlixPollerStateCheckPrivacyPassword,
|
|
SlixPollerStatePrivacyUnlock,
|
|
SlixPollerStateReady,
|
|
SlixPollerStateError,
|
|
SlixPollerStateNum,
|
|
} SlixPollerState;
|
|
|
|
struct SlixPoller {
|
|
Iso15693_3Poller* iso15693_3_poller;
|
|
SlixType type;
|
|
SlixData* data;
|
|
SlixPollerState poller_state;
|
|
SlixError error;
|
|
SlixRandomNumber random_number;
|
|
bool privacy_password_checked;
|
|
|
|
BitBuffer* tx_buffer;
|
|
BitBuffer* rx_buffer;
|
|
|
|
SlixPollerEventData slix_event_data;
|
|
SlixPollerEvent slix_event;
|
|
NfcGenericEvent general_event;
|
|
NfcGenericCallback callback;
|
|
void* context;
|
|
};
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|