41 #ifndef NFC_T2T_LIB_H__
42 #define NFC_T2T_LIB_H__
59 #include <sdk_errors.h>
65 #define NFC_T2T_SIZEOF_INTERNAL_BYTES 10
66 #define NFC_T2T_MAX_PAYLOAD_SIZE 988
67 #define NFC_T2T_MAX_PAYLOAD_SIZE_RAW 1008
110 const uint8_t * p_data,
ret_code_t nfc_t2t_emulation_start(void)
Function for activating the NFC frontend.
void(* nfc_t2t_callback_t)(void *p_context, nfc_t2t_event_t event, const uint8_t *p_data, size_t data_length)
Callback to pass events from NFC T2T Library to application.
nfc_t2t_event_t
Events passed to the callback function.
ret_code_t nfc_t2t_parameter_get(nfc_t2t_param_id_t id, void *p_data, size_t *p_max_data_length)
Function for querying an NFC parameter value.
ret_code_t nfc_t2t_setup(nfc_t2t_callback_t callback, void *p_context)
Function for registering the application callback for event signaling.
ret_code_t nfc_t2t_emulation_stop(void)
Function for deactivating the NFC frontend.
ret_code_t nfc_t2t_internal_set(const uint8_t *p_data, size_t data_length)
Function for registering the sequence of internal bytes.
ret_code_t nfc_t2t_payload_set(const uint8_t *p_payload, size_t payload_length)
Function for registering the payload to send on reception of a READ request.
ret_code_t nfc_t2t_payload_raw_set(const uint8_t *p_payload, size_t payload_length)
Function for registering the raw payload to send on reception of a READ request.
ret_code_t nfc_t2t_parameter_set(nfc_t2t_param_id_t id, void *p_data, size_t data_length)
Function for setting an NFC parameter.
ret_code_t nfc_t2t_done(void)
Function for releasing the reference to the application callback.
@ NFC_T2T_EVENT_DATA_READ
NFC polling device has read all tag data.
@ NFC_T2T_EVENT_FIELD_ON
NFC tag has detected external NFC field and was selected by an NFC polling device.
@ NFC_T2T_EVENT_FIELD_OFF
External NFC field has been removed.
@ NFC_T2T_EVENT_STOPPED
Reference to the application NFC callback has been released using nfc_t2t_done.
@ NFC_T2T_EVENT_NONE
Not used.
@ NFC_T2T_PARAM_TESTING
Used for unit tests.