Loading...
Searching...
No Matches
iso14443_4a_poller.h
1#pragma once
2
3#include <lib/nfc/protocols/iso14443_3a/iso14443_3a_poller.h>
4
5#include "iso14443_4a.h"
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
15
19typedef enum {
20 Iso14443_4aPollerEventTypeError,
21 Iso14443_4aPollerEventTypeReady,
22} Iso14443_4aPollerEventType;
23
27typedef union {
28 Iso14443_4aError error;
30
36typedef struct {
37 Iso14443_4aPollerEventType type;
40
54Iso14443_4aError iso14443_4a_poller_send_block(
55 Iso14443_4aPoller* instance,
56 const BitBuffer* tx_buffer,
57 BitBuffer* rx_buffer);
58
73Iso14443_4aError iso14443_4a_poller_send_chain_block(
74 Iso14443_4aPoller* instance,
75 const BitBuffer* tx_buffer,
76 BitBuffer* rx_buffer);
77
93Iso14443_4aError iso14443_4a_poller_send_receive_ready_block(
94 Iso14443_4aPoller* instance,
95 bool acknowledged,
96 const BitBuffer* tx_buffer,
97 BitBuffer* rx_buffer);
98
116Iso14443_4aError iso14443_4a_poller_send_supervisory_block(
117 Iso14443_4aPoller* instance,
118 bool deselect,
119 const BitBuffer* tx_buffer,
120 BitBuffer* rx_buffer);
121
132Iso14443_4aError iso14443_4a_poller_halt(Iso14443_4aPoller* instance);
133
145Iso14443_4aError
146 iso14443_4a_poller_read_ats(Iso14443_4aPoller* instance, Iso14443_4aAtsData* data);
147
148#ifdef __cplusplus
149}
150#endif
Definition bit_buffer.c:7
Definition iso14443_4a.h:33
Iso14443_4a poller event structure.
Definition iso14443_4a_poller.h:36
Iso14443_4aPollerEventType type
Type of emmitted event.
Definition iso14443_4a_poller.h:37
Iso14443_4aPollerEventData * data
Pointer to event specific data.
Definition iso14443_4a_poller.h:38
Definition iso14443_4a_poller_i.h:30
Iso14443_4a poller event data.
Definition iso14443_4a_poller.h:27
Iso14443_4aError error
Error code indicating card activation fail reason.
Definition iso14443_4a_poller.h:28