3#include "felica_poller.h"
10#define FELICA_POLLER_MAX_BUFFER_SIZE (256U)
12#define FELICA_POLLER_POLLING_FWT (200000U)
15#define FELICA_REQUEST_SERVICE_MAX_NODES (32U)
17#define FELICA_POLLER_CMD_POLLING_REQ_CODE (0x00U)
18#define FELICA_POLLER_CMD_POLLING_RESP_CODE (0x01U)
22 FelicaPollerCommandClassVariable,
23 FelicaPollerCommandClassFixed,
24 FelicaPollerCommandClassMutualAuth,
25 FelicaPollerCommandClassRead,
26 FelicaPollerCommandClassWrite,
27 FelicaPollerCommandClassOther,
28} FelicaPollerCommandClass;
31 FelicaPollerStateIdle,
32 FelicaPollerStateActivated,
33 FelicaPollerStateListSystem,
34 FelicaPollerStateSelectSystemIndex,
35 FelicaPollerStateAuthenticateInternal,
36 FelicaPollerStateAuthenticateExternal,
37 FelicaPollerStateTraverseStandardSystem,
38 FelicaPollerStateReadStandardBlocks,
39 FelicaPollerStateReadLiteBlocks,
40 FelicaPollerStateReadSuccess,
41 FelicaPollerStateReadFailed,
48 FelicaPollerState state;
61 uint8_t systems_total;
81 uint8_t request_data[2];
98FelicaError felica_poller_polling(
113FelicaError felica_poller_write_blocks(
115 const uint8_t block_count,
116 const uint8_t*
const block_numbers,
132FelicaError felica_poller_frame_exchange(
146uint32_t felica_poller_get_fwt(
148 FelicaPollerCommandClass command_class,
151FelicaError felica_poller_list_service_by_cursor(
156FelicaError felica_poller_list_system_code(
160FelicaError felica_poller_request_service(
162 const uint16_t* codes,
164 uint16_t* key_versions_out);
NfcCommand(* NfcGenericCallback)(NfcGenericEvent event, void *context)
Generic Nfc event callback type.
Definition nfc_generic_event.h:75
Definition bit_buffer.c:7
Structure used to hold authentication related fields.
Definition felica.h:147
Structure used to store Felica data and additional values about reading.
Definition felica.h:226
Felica ID block.
Definition felica.h:154
Felica PMm block.
Definition felica.h:159
FelicaPoller poller event structure.
Definition felica_poller.h:40
Definition felica_poller_i.h:46
Definition felica_poller_i.h:72
Definition felica_poller_i.h:78
Generic Nfc event type.
Definition nfc_generic_event.h:58
Definition felica_poller_i.h:84
Felica poller event data.
Definition felica_poller.h:30