41 #ifndef NFC_T4T_LIB_H__
42 #define NFC_T4T_LIB_H__
79 #include "sdk_errors.h"
85 #define NFC_T4T_MAX_PAYLOAD_SIZE 0xFFF0U
185 const uint8_t * p_data,
ret_code_t nfc_t4t_response_pdu_send(const uint8_t *p_pdu, size_t pdu_length)
Send a raw response PDU after getting a Request PDU callback.
ret_code_t nfc_t4t_done(void)
Release reference to application callback.
ret_code_t nfc_t4t_parameter_get(nfc_t4t_param_id_t id, void *p_data, size_t *p_max_data_length)
Query an NFC parameter value.
ret_code_t nfc_t4t_ndef_rwpayload_set(uint8_t *p_emulation_buffer, size_t buffer_length)
Set emulation buffer and content for a NDEF Tag emulation that is Read/Writable.
void(* nfc_t4t_callback_t)(void *p_context, nfc_t4t_event_t event, const uint8_t *p_data, size_t data_length, uint32_t flags)
Callback to pass events from NFCLib to application.
ret_code_t nfc_t4t_setup(nfc_t4t_callback_t callback, void *p_context)
Register the application callback for event signaling.
ret_code_t nfc_t4t_emulation_start(void)
Activate the NFC frontend.
ret_code_t nfc_t4t_parameter_set(nfc_t4t_param_id_t id, void *p_data, size_t data_length)
Set an NFC parameter.
ret_code_t nfc_t4t_ndef_staticpayload_set(const uint8_t *p_emulation_buffer, size_t buffer_length)
Set emulationBuffer and Content for a NDEF Tag emulation that is Read-Only.
ret_code_t nfc_t4t_emulation_stop(void)
Deactivate the NFC frontend.
@ NFC_T4T_EMUMODE_NDEF
Emulated NDEF AID and EF-Files.
@ NFC_T4T_EMUMODE_PICC
Run just ISO-DEP, deliver I-Frames up.
@ NFC_T4T_EVENT_NDEF_UPDATED
External Reader has written to length information of NDEF-Data from Emulation.
@ NFC_T4T_EVENT_FIELD_OFF
External Reader polling ended.
@ NFC_T4T_EVENT_DATA_IND
In Raw mode delivers the APDU fragments.
@ NFC_T4T_EVENT_FIELD_ON
External Reader polling detected.
@ NFC_T4T_EVENT_NONE
This ID is never used. Dummy value for completeness.
@ NFC_T4T_EVENT_NDEF_READ
External Reader has read static NDEF-Data from Emulation.
@ NFC_T4T_EVENT_DATA_TRANSMITTED
In Raw mode it signals that the data from nfc_t4t_response_pdu_send have been sent out.
@ NFC_T4T_DI_FLAG_NONE
Dummy value.
@ NFC_T4T_DI_FLAG_MORE
This signals that more data is expected to be received.
@ NFC_T4T_PARAM_SELRES
Parameter for setting 'Protocol' bits for SEL_RES packet.
@ NFC_T4T_PARAM_TESTING
Internal usage only for Unit-Testing.
@ NFC_T4T_PARAM_FWI
Frame Wait Time parameter.