Loading...
Searching...
No Matches
iso15693_3_poller.h
1#pragma once
2
3#include "iso15693_3.h"
4
5#include <nfc/nfc_poller.h>
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
15
19typedef enum {
20 Iso15693_3PollerEventTypeError,
21 Iso15693_3PollerEventTypeReady,
22} Iso15693_3PollerEventType;
23
27typedef union {
28 Iso15693_3Error error;
30
36typedef struct {
37 Iso15693_3PollerEventType type;
40
55Iso15693_3Error iso15693_3_poller_send_frame(
56 Iso15693_3Poller* instance,
57 const BitBuffer* tx_buffer,
58 BitBuffer* rx_buffer,
59 uint32_t fwt);
60
73Iso15693_3Error iso15693_3_poller_activate(Iso15693_3Poller* instance, Iso15693_3Data* data);
74
84Iso15693_3Error iso15693_3_poller_inventory(Iso15693_3Poller* instance, uint8_t* uid);
85
95Iso15693_3Error
96 iso15693_3_poller_get_system_info(Iso15693_3Poller* instance, Iso15693_3SystemInfo* data);
97
109Iso15693_3Error iso15693_3_poller_read_block(
110 Iso15693_3Poller* instance,
111 uint8_t* data,
112 uint8_t block_number,
113 uint8_t block_size);
114
126Iso15693_3Error iso15693_3_poller_read_blocks(
127 Iso15693_3Poller* instance,
128 uint8_t* data,
129 uint16_t block_count,
130 uint8_t block_size);
131
142Iso15693_3Error iso15693_3_poller_get_blocks_security(
143 Iso15693_3Poller* instance,
144 uint8_t* data,
145 uint16_t block_count);
146
147#ifdef __cplusplus
148}
149#endif
NFC card reading library.
Definition bit_buffer.c:7
Definition iso15693_3.h:117
Iso15693_3 poller event structure.
Definition iso15693_3_poller.h:36
Iso15693_3PollerEventData * data
Pointer to event specific data.
Definition iso15693_3_poller.h:38
Iso15693_3PollerEventType type
Type of emmitted event.
Definition iso15693_3_poller.h:37
Definition iso15693_3_poller_i.h:22
Definition iso15693_3.h:99
Iso15693_3 poller event data.
Definition iso15693_3_poller.h:27
Iso15693_3Error error
Error code indicating card activation fail reason.
Definition iso15693_3_poller.h:28