RFID_STATUS WINAPI RFID_ImpinjQTWrite ( RFID_HANDLE32  readerHandle,
UINT8 *  pTagID,
UINT32  tagIDLength,
LPIMPINJ_QT_WRITE_PARAMS  lpQTWriteParams,
LPACCESS_FILTER  lpAccessFilter,
LPANTENNA_INFO  lpAntennaInfo,
LPVOID  rsvd 
)

This function writes the QT data to Impinj Monza QT tags.

Parameters:
[in] readerHandle 
Handle to the RFID device.
[in] pTagID 
Pointer to the byte array containing Tag ID
[in] tagIDLength 
Length of the byte array containing Tag ID
[in] lpQTWriteParams 
Pointer to LPIMPINJ_QT_WRITE_PARAMS structure containing the QT Data
[in] lpAccessFilter 
Pointer to Access filter structure specifying the tag-filter criteria for the current Access operation
[in] lpAntennaInfo 
Pointer to ANTENNA_INFO structure specifying the Antenna IDs on which the access operation is to be performed
[in] rsvd 
Reserved for future use
Returns:
If the function succeeds the return value is RFID_API_SUCCESS. If the function fails the return value is one of the following:
  • RFID_API_INVALID_HANDLE Handle provided is invalid
  • RFID_API_PARAM_ERROR Parameter is invalid.
  • RFID_ACCESS_IMPINJ_QT_WRITE_FAILED QT Write Operation Failed
Remarks:
See also:
See RFID_ImpinjQTRead
Remarks:
Example:
   // Code Snippets for QT Data Write
   RFID_HANDLE32                        readerHandle;
   RFID_STATUS rfidStatus = RFID_API_SUCCESS;
   CONNECTION_INFO                      connectionInfo;
   connectionInfo.version = RFID_API3_5_1;
   if(RFID_API_SUCCESS == RFID_Connect(&readerHandle, TEXT("157.235.207.191"), 0, 0, &connectionInfo))
   {
                // Perform Inventory to get the tags
                RFID_PerformInventory(readerHandle, NULL, ANTENNA_LIST, NULL, NULL);
                Sleep(300);
                RFID_StopInventory(GOOD_HANDLE);

                IMPINJ_QT_DATA qtData;
                // Short range is FALSE and MemoryMap is TRUE
                // Set 0x00 to set Short_range: FALSE and MemoryMap:FALSE
                // Set 0x4000 to set Short_range: FALSE and MemoryMap:TRUE
                qtData.QTControlData = 0x4000;
                
                IMPINJ_QT_WRITE_PARAMS impinjQtParams;
                impinjQtParams.accessPassword   = 0x00;
                impinjQtParams.QTPersist                = TRUE;
                impinjQtParams.qtdata                   = qtData;

                // Apply QT Write in each of the tags read
                while (RFID_GetReadTag(readerHandle, pTagData) == RFID_API_SUCCESS)
                {
                        TagIDLength = pTagData->tagIDLength;
                        memcpy(TagID, pTagData->pTagID, TagIDLength);
                        rfidStatus = RFID_ImpinjQTWrite(readerHandle, TagID, TagIDLength, &impinjQtParams,NULL,NULL,NULL);

                }
        }    


Generated on Fri Mar 4 02:25:31 2016 for RFIDAPI3 1.1 C API Documentation by  doxygen 1.5.6