nrfxlib API 2.7.99
Loading...
Searching...
No Matches
NFC tag 2 type emulation library

The T2T emulation library interface. More...

Macros

#define NFC_T2T_SIZEOF_INTERNAL_BYTES   10
 
#define NFC_T2T_MAX_PAYLOAD_SIZE   988
 
#define NFC_T2T_MAX_PAYLOAD_SIZE_RAW   1008
 

Typedefs

typedef 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.
 

Enumerations

enum  nfc_t2t_event_t {
  NFC_T2T_EVENT_NONE , NFC_T2T_EVENT_FIELD_ON , NFC_T2T_EVENT_FIELD_OFF , NFC_T2T_EVENT_DATA_READ ,
  NFC_T2T_EVENT_STOPPED
}
 Events passed to the callback function. More...
 
enum  nfc_t2t_param_id_t { NFC_T2T_PARAM_FDT_MIN , NFC_T2T_PARAM_NFCID1 }
 

Functions

int nfc_t2t_setup (nfc_t2t_callback_t callback, void *context)
 Register the application callback for event signaling.
 
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_parameter_get (nfc_t2t_param_id_t id, void *data, size_t *max_data_length)
 Query an NFC parameter value.
 
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_payload_raw_set (const uint8_t *payload, size_t payload_length)
 Register the raw payload to send on reception of a READ request.
 
int nfc_t2t_internal_set (const uint8_t *data, size_t data_length)
 Register the sequence of internal bytes.
 
int nfc_t2t_emulation_start (void)
 Activate the NFC frontend.
 
int nfc_t2t_emulation_stop (void)
 Deactivate the NFC frontend.
 
int nfc_t2t_done (void)
 Release the reference to the application callback.
 

Detailed Description

The T2T emulation library interface.