Loading...
Searching...
No Matches
iso14443_3a_poller.h
1#pragma once
2
3#include "iso14443_3a.h"
4#include <lib/nfc/nfc.h>
5
6#include <nfc/nfc_poller.h>
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
16
20typedef enum {
21 Iso14443_3aPollerEventTypeError,
22 Iso14443_3aPollerEventTypeReady,
23} Iso14443_3aPollerEventType;
24
28typedef union {
29 Iso14443_3aError error;
31
37typedef struct {
38 Iso14443_3aPollerEventType type;
41
57Iso14443_3aError iso14443_3a_poller_txrx(
58 Iso14443_3aPoller* instance,
59 const BitBuffer* tx_buffer,
60 BitBuffer* rx_buffer,
61 uint32_t fwt);
62
77Iso14443_3aError iso14443_3a_poller_send_standard_frame(
78 Iso14443_3aPoller* instance,
79 const BitBuffer* tx_buffer,
80 BitBuffer* rx_buffer,
81 uint32_t fwt);
82
100Iso14443_3aError iso14443_3a_poller_txrx_custom_parity(
101 Iso14443_3aPoller* instance,
102 const BitBuffer* tx_buffer,
103 BitBuffer* rx_buffer,
104 uint32_t fwt);
105
114Iso14443_3aError iso14443_3a_poller_check_presence(Iso14443_3aPoller* instance);
115
128Iso14443_3aError
129 iso14443_3a_poller_activate(Iso14443_3aPoller* instance, Iso14443_3aData* iso14443_3a_data);
130
141Iso14443_3aError iso14443_3a_poller_halt(Iso14443_3aPoller* instance);
142
143#ifdef __cplusplus
144}
145#endif
Transport layer Nfc library.
NFC card reading library.
Definition bit_buffer.c:7
Definition iso14443_3a.h:58
Iso14443_3a poller event structure.
Definition iso14443_3a_poller.h:37
Iso14443_3aPollerEventType type
Type of emmitted event.
Definition iso14443_3a_poller.h:38
Iso14443_3aPollerEventData * data
Pointer to event specific data.
Definition iso14443_3a_poller.h:39
Definition iso14443_3a_poller_i.h:42
Iso14443_3a poller event data.
Definition iso14443_3a_poller.h:28
Iso14443_3aError error
Error code indicating card activation fail reason.
Definition iso14443_3a_poller.h:29