Loading...
Searching...
No Matches
mf_plus_poller.h
1#pragma once
2
3#include "mf_plus.h"
4
5#include <lib/nfc/protocols/iso14443_4a/iso14443_4a.h>
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
14typedef struct MfPlusPoller MfPlusPoller;
15
20typedef enum {
21 MfPlusPollerEventTypeReadSuccess,
22 MfPlusPollerEventTypeReadFailed,
23} MfPlusPollerEventType;
24
28typedef union {
29 MfPlusError error;
31
37typedef struct {
38 MfPlusPollerEventType type;
41
51MfPlusError mf_plus_poller_read_version(MfPlusPoller* instance, MfPlusVersion* data);
52
53#ifdef __cplusplus
54}
55#endif
MIFARE Plus poller event structure.
Definition mf_plus_poller.h:37
MfPlusPollerEventData * data
Pointer to event specific data.
Definition mf_plus_poller.h:39
MfPlusPollerEventType type
Type of emitted event.
Definition mf_plus_poller.h:38
Definition mf_plus_poller_i.h:29
Definition mf_plus.h:55
MIFARE Plus poller event data.
Definition mf_plus_poller.h:28
MfPlusError error
Error code indicating card reading fail reason.
Definition mf_plus_poller.h:29