Flipper Zero Firmware
Loading...
Searching...
No Matches
iso14443_4a_poller_i.h
1#pragma once
2
3#include <nfc/protocols/iso14443_3a/iso14443_3a_poller_i.h>
4#include <nfc/helpers/iso14443_4_layer.h>
5
6#include "iso14443_4a_poller.h"
7#include "iso14443_4a_i.h"
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13#define ISO14443_4A_POLLER_ATS_FWT_FC (40000)
14
15typedef enum {
16 Iso14443_4aPollerStateIdle,
17 Iso14443_4aPollerStateReadAts,
18 Iso14443_4aPollerStateError,
19 Iso14443_4aPollerStateReady,
20
21 Iso14443_4aPollerStateNum,
22} Iso14443_4aPollerState;
23
24typedef enum {
25 Iso14443_4aPollerSessionStateIdle,
26 Iso14443_4aPollerSessionStateActive,
27 Iso14443_4aPollerSessionStateStopRequest,
28} Iso14443_4aPollerSessionState;
29
31 Iso14443_3aPoller* iso14443_3a_poller;
32 Iso14443_4aPollerState poller_state;
33 Iso14443_4aPollerSessionState session_state;
34 Iso14443_4aError error;
35 Iso14443_4aData* data;
36 Iso14443_4Layer* iso14443_4_layer;
37 BitBuffer* tx_buffer;
38 BitBuffer* rx_buffer;
39 Iso14443_4aPollerEventData iso14443_4a_event_data;
40 Iso14443_4aPollerEvent iso14443_4a_event;
41 NfcGenericEvent general_event;
42 NfcGenericCallback callback;
43 void* context;
44};
45
46const Iso14443_4aData* iso14443_4a_poller_get_data(Iso14443_4aPoller* instance);
47
48#ifdef __cplusplus
49}
50#endif
NfcCommand(* NfcGenericCallback)(NfcGenericEvent event, void *context)
Generic Nfc event callback type.
Definition nfc_generic_event.h:75
Definition bit_buffer.c:7
Definition iso14443_3a_poller_i.h:42
Definition iso14443_4_layer.c:10
Definition iso14443_4a.h:42
Iso14443_4a poller event structure.
Definition iso14443_4a_poller.h:36
Definition iso14443_4a_poller_i.h:30
Generic Nfc event type.
Definition nfc_generic_event.h:58
Iso14443_4a poller event data.
Definition iso14443_4a_poller.h:27