Loading...
Searching...
No Matches
slix_poller.h
1#pragma once
2
3#include "slix.h"
4
5#include <nfc/nfc_poller.h>
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
14typedef struct SlixPoller SlixPoller;
15
19typedef enum {
20 SlixPollerEventTypeError,
21 SlixPollerEventTypePrivacyUnlockRequest,
22 SlixPollerEventTypeReady,
23} SlixPollerEventType;
24
32
40
46typedef struct {
47 SlixPollerEventType type;
50
65SlixError slix_poller_send_frame(
66 SlixPoller* instance,
67 const BitBuffer* tx_data,
68 BitBuffer* rx_data,
69 uint32_t fwt);
70
80SlixError slix_poller_get_nxp_system_info(SlixPoller* instance, SlixSystemInfo* data);
81
91SlixError slix_poller_read_signature(SlixPoller* instance, SlixSignature* data);
92
102SlixError slix_poller_get_random_number(SlixPoller* instance, SlixRandomNumber* data);
103
115SlixError slix_poller_set_password(
116 SlixPoller* instance,
117 SlixPasswordType type,
118 SlixPassword password,
119 SlixRandomNumber random_number);
120
121#ifdef __cplusplus
122}
123#endif
NFC card reading library.
Definition bit_buffer.c:7
Slix poller privacy unlock context data.
Definition slix_poller.h:28
SlixPassword password
Privacy password.
Definition slix_poller.h:29
bool password_set
Filed to indicate that password was set or not.
Definition slix_poller.h:30
Slix poller event structure.
Definition slix_poller.h:46
SlixPollerEventType type
Type of emmitted event.
Definition slix_poller.h:47
SlixPollerEventData * data
Pointer to event specific data.
Definition slix_poller.h:48
Definition slix_poller_i.h:24
Definition slix.h:89
Slixs poller event data.
Definition slix_poller.h:36
SlixError error
Error code indicating card reaing fail reason.
Definition slix_poller.h:37
SlixPollerEventDataPrivacyUnlockContext privacy_password
Privacy unlock event context.
Definition slix_poller.h:38