uFCoder 2.58
Loading...
Searching...
No Matches

Functions

UFR_STATUS DL_API WriteEmulationNdefM (UFR_HANDLE hndUFR, uint8_t tnf, IN uint8_t *type_record, uint8_t type_length, IN uint8_t *id, uint8_t id_length, IN uint8_t *payload, uint8_t payload_length)
 
UFR_STATUS DL_API TagEmulationStartM (UFR_HANDLE hndUFR)
 
UFR_STATUS DL_API TagEmulationStopM (UFR_HANDLE hndUFR)
 
UFR_STATUS DL_API WriteEmulationNdefRamM (UFR_HANDLE hndUFR, uint8_t tnf, uint8_t *type_record, uint8_t type_length, uint8_t *id, uint8_t id_length, uint8_t *payload, uint32_t payload_length)
 

Detailed Description

Function Documentation

◆ WriteEmulationNdefM()

UFR_STATUS DL_API WriteEmulationNdefM ( UFR_HANDLE hndUFR,
uint8_t tnf,
IN uint8_t * type_record,
uint8_t type_length,
IN uint8_t * id,
uint8_t id_length,
IN uint8_t * payload,
uint8_t payload_length )

Multi reader support. Function stores a message record for NTAG emulation mode into the reader. Parameters of the function are: TNF, type of record, ID, payload. Maximum total size for emulated NDEF message is 144 bytes.

Parameters
hndUFRhandle of the uFR device
tnfTNF of the record
type_recordpointer to the array containing record type
type_lengthlength of the record type
idpointer to the array containing record ID
id_lengthlength of the record ID
payloadpointer to the array containing record payload
payload_lengthlength of the record payload
Returns
Operation status

◆ TagEmulationStartM()

UFR_STATUS DL_API TagEmulationStartM ( UFR_HANDLE hndUFR)

Multi reader support. Put the reader permanently in a NDEF tag emulation mode. Only way for a reader to exit from this mode is to receive the TAG_EMULATION_STOP command (issued by calling TagEmulationStop() function). In this mode, the reader can only answer to the commands issued by a following library functions: TagEmulationStart(), WriteEmulationNdef(), TagEmulationStop(), GetReaderSerialNumber(), GetReaderSerialDescription(), GetReaderHardwareVersion(), GetReaderFirmwareVersion(), GetBuildNumber() Calls to the other functions in this mode returns following error code: FORBIDDEN_IN_TAG_EMULATION_MODE = 0x90

Parameters
hndUFRhandle of the uFR device
Returns
Operation status

◆ TagEmulationStopM()

UFR_STATUS DL_API TagEmulationStopM ( UFR_HANDLE hndUFR)

Multi reader support. Allows the reader permanent exit from a NDEF tag emulation mode.

Parameters
hndUFRhandle of the uFR device
Returns
Operation status

◆ WriteEmulationNdefRamM()

UFR_STATUS DL_API WriteEmulationNdefRamM ( UFR_HANDLE hndUFR,
uint8_t tnf,
uint8_t * type_record,
uint8_t type_length,
uint8_t * id,
uint8_t id_length,
uint8_t * payload,
uint32_t payload_length )

Multi reader support. From library version 5.0.31, and firmware version 5.0.33 Function stores a message record for NTAG emulation mode into the reader in the RAM. Parameters of the function are: TNF, type of record, ID, payload. Maximum total size for emulated NDEF message is 1008 bytes. Unlike the function WriteEmulationNdef, the data is not written to the EEPROM of the reader, so they cannot be loaded after the reader is reset. This function must be called after reader reset to use the NTAG emulation.

Parameters
hndUFRhandle of the uFR device
tnfTNF of the record
type_recordpointer to the array containing record type
type_lengthlength of the record type
idpointer to the array containing record ID
id_lengthlength of the record ID
payloadpointer to the array containing record payload
payload_lengthlength of the record payload
Returns
Operation status