41#ifndef NFC_T2T_LIB_H__
42#define NFC_T2T_LIB_H__
63#define NFC_T2T_SIZEOF_INTERNAL_BYTES 10
65#define NFC_T2T_MAX_PAYLOAD_SIZE 988
67#define NFC_T2T_MAX_PAYLOAD_SIZE_RAW 1008
173 size_t *max_data_length);
237 size_t payload_length);
int nfc_t2t_payload_raw_set(const uint8_t *payload, size_t payload_length)
Register the raw payload to send on reception of a READ request.
nfc_t2t_event_t
Events passed to the callback function.
Definition: nfc_t2t_lib.h:71
@ NFC_T2T_EVENT_DATA_READ
Definition: nfc_t2t_lib.h:89
@ NFC_T2T_EVENT_FIELD_ON
Definition: nfc_t2t_lib.h:78
@ NFC_T2T_EVENT_FIELD_OFF
Definition: nfc_t2t_lib.h:81
@ NFC_T2T_EVENT_STOPPED
Definition: nfc_t2t_lib.h:94
@ NFC_T2T_EVENT_NONE
Definition: nfc_t2t_lib.h:73
int nfc_t2t_parameter_get(nfc_t2t_param_id_t id, void *data, size_t *max_data_length)
Query an NFC parameter value.
int nfc_t2t_setup(nfc_t2t_callback_t callback, void *context)
Register the application callback for event signaling.
nfc_t2t_param_id_t
Definition: nfc_t2t_lib.h:98
@ NFC_T2T_PARAM_NFCID1
Definition: nfc_t2t_lib.h:111
@ NFC_T2T_PARAM_FDT_MIN
Definition: nfc_t2t_lib.h:102
int nfc_t2t_emulation_stop(void)
Deactivate the NFC frontend.
int nfc_t2t_internal_set(const uint8_t *data, size_t data_length)
Register the sequence of internal bytes.
void(* nfc_t2t_callback_t)(void *context, nfc_t2t_event_t event, const uint8_t *data, size_t data_length)
Callback to pass events from NFC T2T Library to application.
Definition: nfc_t2t_lib.h:121
int nfc_t2t_emulation_start(void)
Activate the NFC frontend.
int nfc_t2t_payload_set(const uint8_t *payload, size_t payload_length)
Register the payload to send on reception of a READ request.
int nfc_t2t_parameter_set(nfc_t2t_param_id_t id, void *data, size_t data_length)
Set up an NFC parameter.
int nfc_t2t_done(void)
Release the reference to the application callback.