Loading...
Searching...
No Matches
iso14443_3a_listener_i.h
1#pragma once
2
3#include "iso14443_3a_listener.h"
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
10typedef enum {
11 Iso14443_3aListenerStateIdle,
12 Iso14443_3aListenerStateActive,
13} Iso14443_3aListenerState;
14
16 Nfc* nfc;
17 Iso14443_3aData* data;
18 Iso14443_3aListenerState state;
19
20 BitBuffer* tx_buffer;
21
22 NfcGenericEvent generic_event;
23 Iso14443_3aListenerEvent iso14443_3a_event;
24 Iso14443_3aListenerEventData iso14443_3a_event_data;
25 NfcGenericCallback callback;
26 void* context;
27};
28
29Iso14443_3aError
30 iso14443_3a_listener_tx(Iso14443_3aListener* instance, const BitBuffer* tx_buffer);
31
32Iso14443_3aError iso14443_3a_listener_tx_with_custom_parity(
33 Iso14443_3aListener* instance,
34 const BitBuffer* tx_buffer);
35
36Iso14443_3aError iso14443_3a_listener_send_standard_frame(
37 Iso14443_3aListener* instance,
38 const BitBuffer* tx_buffer);
39
40#ifdef __cplusplus
41}
42#endif
Generic Nfc stack event definitions.
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.h:58
Definition iso14443_3a_listener.h:20
Definition iso14443_3a_listener.h:24
Definition iso14443_3a_listener_i.h:15
Generic Nfc event type.
Definition nfc_generic_event.h:58
Definition nfc.c:41