mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-20 20:01:54 +03:00
d92b0a82cc
"A long time ago in a galaxy far, far away...." we started NFC subsystem refactoring. Starring: - @gornekich - NFC refactoring project lead, architect, senior developer - @gsurkov - architect, senior developer - @RebornedBrain - senior developer Supporting roles: - @skotopes, @DrZlo13, @hedger - general architecture advisors, code review - @Astrrra, @doomwastaken, @Hellitron, @ImagineVagon333 - quality assurance Special thanks: @bettse, @pcunning, @nxv, @noproto, @AloneLiberty and everyone else who has been helping us all this time and contributing valuable knowledges, ideas and source code.
42 lines
931 B
C
42 lines
931 B
C
#pragma once
|
|
|
|
#include "mf_ultralight.h"
|
|
#include <lib/nfc/protocols/iso14443_3a/iso14443_3a_poller.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct MfUltralightPoller MfUltralightPoller;
|
|
|
|
typedef enum {
|
|
MfUltralightPollerEventTypeAuthRequest,
|
|
MfUltralightPollerEventTypeAuthSuccess,
|
|
MfUltralightPollerEventTypeAuthFailed,
|
|
MfUltralightPollerEventTypeReadSuccess,
|
|
MfUltralightPollerEventTypeReadFailed,
|
|
} MfUltralightPollerEventType;
|
|
|
|
typedef struct {
|
|
MfUltralightAuthPassword password;
|
|
MfUltralightAuthPack pack;
|
|
bool auth_success;
|
|
bool skip_auth;
|
|
} MfUltralightPollerAuthContext;
|
|
|
|
typedef struct {
|
|
union {
|
|
MfUltralightPollerAuthContext auth_context;
|
|
MfUltralightError error;
|
|
};
|
|
} MfUltralightPollerEventData;
|
|
|
|
typedef struct {
|
|
MfUltralightPollerEventType type;
|
|
MfUltralightPollerEventData* data;
|
|
} MfUltralightPollerEvent;
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|