3#include "felica_poller.h"
10#define FELICA_POLLER_MAX_BUFFER_SIZE (256U)
12#define FELICA_POLLER_POLLING_FWT (200000U)
14#define FELICA_POLLER_CMD_POLLING_REQ_CODE (0x00U)
15#define FELICA_POLLER_CMD_POLLING_RESP_CODE (0x01U)
18 FelicaPollerStateIdle,
19 FelicaPollerStateActivated,
20 FelicaPollerStateAuthenticateInternal,
21 FelicaPollerStateAuthenticateExternal,
22 FelicaPollerStateReadBlocks,
23 FelicaPollerStateReadSuccess,
24 FelicaPollerStateReadFailed,
31 FelicaPollerState state;
55 uint8_t request_data[2];
68FelicaError felica_poller_polling(
82FelicaError felica_poller_read_blocks(
84 const uint8_t block_count,
85 const uint8_t*
const block_numbers,
98FelicaError felica_poller_write_blocks(
100 const uint8_t block_count,
101 const uint8_t*
const block_numbers,
117FelicaError felica_poller_frame_exchange(
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:99
Structure used to store Felica data and additional values about reading.
Definition felica.h:149
Felica ID block.
Definition felica.h:106
Felica PMm block.
Definition felica.h:111
FelicaPoller poller event structure.
Definition felica_poller.h:40
Definition felica_poller_i.h:29
Definition felica_poller_i.h:46
Definition felica_poller_i.h:52
Generic Nfc event type.
Definition nfc_generic_event.h:58
Felica poller event data.
Definition felica_poller.h:30