1#include "felica_listener.h"
5#define FELICA_LISTENER_READ_BLOCK_COUNT_MAX (4U)
6#define FELICA_LISTENER_READ_BLOCK_COUNT_MIN (1U)
7#define FELICA_LISTENER_WRITE_BLOCK_COUNT_MAX (2U)
8#define FELICA_LISTENER_WRITE_BLOCK_COUNT_MIN (1U)
11 Felica_ListenerStateIdle,
12 Felica_ListenerStateActivated,
43typedef void (*FelicaCommandWriteBlockHandler)(
45 const uint8_t block_number,
53typedef void (*FelicaCommanReadBlockHandler)(
55 const uint8_t block_number,
56 const uint8_t resp_data_index,
62 FelicaListenerState state;
66 uint8_t request_size_buf;
67 uint8_t block_list_size;
68 uint8_t requested_blocks[FELICA_LISTENER_READ_BLOCK_COUNT_MAX];
69 uint8_t mac_calc_start;
117bool felica_listener_check_block_list_size(
187bool felica_listener_validate_write_request_and_set_sf(
213bool felica_listener_validate_read_request_and_set_sf(
225FelicaCommanReadBlockHandler felica_listener_get_read_block_handler(
const uint8_t block_number);
234FelicaCommandWriteBlockHandler felica_listener_get_write_block_handler(
const uint8_t block_number);
Generic Nfc stack event definitions.
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
Generic Felica request same for both read and write operations.
Definition felica_listener_i.h:16
Definition felica_listener_i.h:59
Generic request but with list of requested elements.
Definition felica_listener_i.h:22
Struct for write request data.
Definition felica_listener_i.h:34
Generic Nfc event type.
Definition nfc_generic_event.h:58