Loading...
Searching...
No Matches
slix_poller_i.h
1#pragma once
2
3#include <nfc/protocols/iso15693_3/iso15693_3_poller_i.h>
4
5#include "slix_poller.h"
6
7#define SLIX_POLLER_SET_PASSWORD_FWT (100000)
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13typedef enum {
14 SlixPollerStateIdle,
15 SlixPollerStateGetNxpSysInfo,
16 SlixPollerStateReadSignature,
17 SlixPollerStateCheckPrivacyPassword,
18 SlixPollerStatePrivacyUnlock,
19 SlixPollerStateReady,
20 SlixPollerStateError,
21 SlixPollerStateNum,
22} SlixPollerState;
23
24struct SlixPoller {
25 Iso15693_3Poller* iso15693_3_poller;
26 SlixType type;
27 SlixData* data;
28 SlixPollerState poller_state;
29 SlixError error;
30 SlixRandomNumber random_number;
31 bool privacy_password_checked;
32
33 BitBuffer* tx_buffer;
34 BitBuffer* rx_buffer;
35
36 SlixPollerEventData slix_event_data;
37 SlixPollerEvent slix_event;
38 NfcGenericEvent general_event;
39 NfcGenericCallback callback;
40 void* context;
41};
42
43#ifdef __cplusplus
44}
45#endif
NfcCommand(* NfcGenericCallback)(NfcGenericEvent event, void *context)
Generic Nfc event callback type.
Definition nfc_generic_event.h:75
Definition bit_buffer.c:7
Definition iso15693_3_poller_i.h:22
Generic Nfc event type.
Definition nfc_generic_event.h:58
Definition slix.h:101
Slix poller event structure.
Definition slix_poller.h:46
Definition slix_poller_i.h:24
Slixs poller event data.
Definition slix_poller.h:36