Technical Information Manual Revision n. 2 17 January 2007 CAENRFIDLib ANSI C FUNCTIONS LIBRARY NPO: 00117/03:RFLIB.
Document type: User's Manual (MUT) Title: RFID ANSI C Library Revision date: 17/01/2007 Revision: 2 INDEX 1. INTRODUCTION ................................................................................................................................................4 1.1. CAENRFIDLIB INTRODUCTION ......................................................................................................................4 1.2. CAENRFIDLIB 1.2.1. 1.3. DESCRIPTION ...........................................
Document type: User's Manual (MUT) Title: RFID ANSI C Library Revision date: 17/01/2007 Revision: 2 1.3.30. CAENRFID_GetSourceInChannel .......................................................................................................15 1.3.31. CAENRFID_GetSourceInTrigger ........................................................................................................16 1.3.32. CAENRFID_GetTriggerInChannel .................................................................................
Document type: User's Manual (MUT) Title: RFID ANSI C Library Revision date: 17/01/2007 Revision: 2 1. Introduction The CAEN Long Range UHF Readers are developed in Europe and in compliance with European and US telecommunication regulations, are a step forward in UHF RFID readers. Capable of long distance reading using extremely low RF energy, the CAEN Long Range UHF Readers are optimized to increase receiver sensibility and reduce transmitter noise.
Document type: User's Manual (MUT) Title: RFID ANSI C Library Revision date: 17/01/2007 Revision: 2 CAENRFID_InvalidParam = -5, // Invalid parameter error CAENRFID_TimeOutError = -6, // Time out error CAENRFID_Max4Byte = -7, // Data length greater than 4 CAENRFID_PowerOutRange = -8, // Power out of range CAENRFID_BadAntenna = -9, // Antenna not connected CAENRFID_GenericError = -10, // Generic error CAENRFID_InvalidHandle = -11 // Invelid Handle } CAENRFIDErrorCodes; /* ID length enum */ typedef enum {
Document type: User's Manual (MUT) Title: RFID ANSI C Library Revision date: 17/01/2007 Revision: 2 GPO1 = 0x02, GPO2 = 0x04, GPO3 = 0x08, } CAENRFIDGpo; /* Bit rate modulation control enum */ typedef enum { TX10RX10 = 0, TX10RX40 = 1, TX40RX40 = 2, TX40RX160 =3 } CAENRFIDTxRxConf; #ifndef CAENRFID_ODL /* RF field control enum */ typedef enum { CARRIER_OFF = 0, CARRIER_ON =1 } CAENRFIDControl; /* */ typedef enum { STANDBY = 0, ACTIVE = 1 } CAENRFIDPas; /* Command mode control enum */ typedef enum { SIN
Document type: User's Manual (MUT) 1.3. Title: RFID ANSI C Library Revision date: 17/01/2007 Revision: 2 CAENRFIDLib Functions description 1.3.1. CAENRFID_Init Name: Reader: Description: Parameters: Returns: Syntax: 1.3.2. CAENRFID_ End Name: Reader: Description: Parameters: Returns: Syntax: 1.3.3. CAENRFID_Init A828EU, A828US, A829EU, A829US, A946EU, A949EU, A928EU, A948EU The function generates an opaque handle to identify a module attached to the PC.
Document type: User's Manual (MUT) 1.3.4. Title: RFID ANSI C Library Description: Parameters: Returns: Syntax: CAENRFID_GetFWRelease A828EU, A828US, A829EU, A829US, A946EU, A949EU, A928EU, A948EU Permits to read the firmware release loaded into the device [in] Handle: The handle that identifies the device.
Document type: User's Manual (MUT) 1.3.7. Title: RFID ANSI C Library Description: Parameters: Returns: Syntax: CAENRFID_Read A828EU, A828US, A829EU, A829US, A946EU, A949EU, A928EU, A948EU This function allows to read Length bytes from the memory of a specific tag identified by the ID (regardless of its status) at the address specified by Address. [in] Handle: The handle that identifies the device. [in] ID: The tag ID. [in] Address: The address of the memory to read.
Document type: User's Manual (MUT) Title: RFID ANSI C Library Revision date: 17/01/2007 Revision: 2 An error code about the execution of the function CAENRFIDlib_API CAENRFIDErrorCodes __stdcall CAENRFID_Lock(CAENRFIDHandle Handle, CAENRFIDTag *ID, int Address); Returns: Syntax: 1.3.10. CAENRFID_TestMode Name: Reader: Description: Parameters: Returns: Syntax: CAENRFID_TestMode A828EU, A828US, A829EU, A829US, A946EU, A949EU, A928EU, A948EU The function permits to enable/disable te TestMode.
Document type: User's Manual (MUT) 1.3.13. Title: RFID ANSI C Library Revision date: 17/01/2007 Revision: 2 CAENRFID_AllocateChannel Name: Reader: Description: Parameters: Returns: Syntax: CAENRFID_AllocateChannel A928EU, A948EU The function permits to allocate a notification Channel [in] Handle: The handle that identifies the device. [in] ChannelName: The Name of the Channel.
Document type: User's Manual (MUT) Title: RFID ANSI C Library Parameters: Returns: Syntax: Revision date: 17/01/2007 Revision: 2 notification Channel [in] Handle: The handle that identifies the device. [in] SourceName: The Name of the Logical Source. [in] ChannelName: The Address of the Channel. An error code about the execution of the function CAENRFIDlib_API CAENRFIDErrorCodes __stdcall CAENRFID_RemoveSourceFromChannel(CAENRFIDHandle handle, char *SourceName, char *ChannelName); 1.3.17.
Document type: User's Manual (MUT) Title: RFID ANSI C Library Revision date: 17/01/2007 CAENRFID_AllocateTrigger(CAENRFIDHandle *TriggerName, char *TriggerType); Revision: 2 handle, char 1.3.20. CAENRFID_DeallocateTrigger Name: Reader: Description: Parameters: Returns: Syntax: CAENRFID_DeallocateTrigger A928EU, A948EU The function permits to destroy a trigger [in] Handle: The handle that identifies the device.
Document type: User's Manual (MUT) Title: RFID ANSI C Library Parameters: Returns: Syntax: Revision date: 17/01/2007 Revision: 2 to start a notification. [in] Handle: The handle that identifies the device. [in] ChannelName: The Address of the Channel. [in] TriggerName: The name of the trigger. An error code about the execution of the function CAENRFIDlib_API CAENRFIDErrorCodes __stdcall CAENRFID_AddNotifyTrigger(CAENRFIDHandle handle, char *ChannelName, char *TriggerName); 1.3.24.
Document type: User's Manual (MUT) Title: RFID ANSI C Library Revision date: 17/01/2007 Revision: 2 *Power); 1.3.27. CAENRFID_SetProtocol Name: Reader: Description: Parameters: Returns: Syntax: CAENRFID_SetProtocol. A828EU, A828US, A829EU, A829US, A946EU, A949EU, A928EU, A948EU The function permits to change the tag protocol used by the reader [in] Handle: The handle that identifies the device. [in] Protocol: The tag protocol to be set in the reader.
Document type: User's Manual (MUT) Title: RFID ANSI C Library Parameters: Returns: Syntax: Revision date: 17/01/2007 Revision: 2 a specified notification channel that is, the data read from the source is sent to the channel. [in] Handle: The handle that identifies the device. [in] SourceName: The name of the Logical Source. [in] ChannelName: The name of the Channel. [out] isPresent: A flag indicating if the source is associated to the specified channel.
Document type: User's Manual (MUT) Title: RFID ANSI C Library Description: Parameters: Returns: Syntax: Revision date: 17/01/2007 Revision: 2 The function permits to check if a channel is associated to a specified notification trigger. [in] Handle: The handle that identifies the device. [in] ChannelName: The name of the ChannelName. [in] TriggerName: The name of the Trigger. [out] isPresent: A flag indicating if the channel is associated to the specified trigger.
Document type: User's Manual (MUT) Title: RFID ANSI C Library Revision date: 17/01/2007 Revision: 2 1.3.36. CAENRFID_SetDE_SB Name: Reader: Description: Parameters: Returns: Syntax: CAENRFID_SetDE_SB A828EU, A828US, A829EU, A829US, A946EU, A949EU, A928EU, A948EU The function permits to enable the use of the data exchange status bit in the ISO18000-6b anticollision algorithm. [in] Handle: The handle that identifies the device. [in] Enable: Enable flag.
Document type: User's Manual (MUT) Title: RFID ANSI C Library Description: Parameters: Returns: Syntax: Revision date: 17/01/2007 Revision: 2 The function permits to kill an EPC Class 1 Gen 1 tag [in] Handle: The handle that identifies the device. [in] TagID: The EPC of the tag. [in] Password: The kill password for the tag. An error code about the execution of the function CAENRFIDlib_API CAENRFIDErrorCodes __stdcall CAENRFID_KillTag(CAENRFIDHandle Handle, CAENRFIDTag *TagID, char Password); 1.3.40.
Document type: User's Manual (MUT) Title: RFID ANSI C Library Revision date: 17/01/2007 Revision: 2 1.3.42. CAENRFID_SetDateTime Name: Reader: Description: Parameters: Returns: Syntax: CAENRFID_SetDateTime A828EU, A828US, A829EU, A829US, A946EU, A949EU, A928EU, A948EU The function permits to set the date e the time in the reader. [in] Handle: The handle that identifies the device. [in] datetime: The current date ed time.
Document type: User's Manual (MUT) Title: RFID ANSI C Library Revision date: 17/01/2007 Revision: 2 [in] parameter: The parameter of Logical Source to configure. [in] value: The the value of the parameter. An error code about the execution of the function CAENRFIDlib_API CAENRFIDErrorCodes __stdcall CAENRFID_SetSourceConfiguration(CAENRFIDHandle handle, char *SourceName, CAENRFID_SOURCE_Parameter parameter, int value); Returns: Syntax: 1.3.46.
Document type: User's Manual (MUT) Title: RFID ANSI C Library Revision date: 17/01/2007 Revision: 2 int *ChannelNum, char **Channels); 1.3.49. CAENRFID_SetEventMode Name: Reader: Description: Parameters: Returns: Syntax: CAENRFID_SetEventMode A928EU, A948EU The function permits to set the Event Generation Mode of the reader [in] Handle: The handle that identifies the device.
Document type: User's Manual (MUT) Title: RFID ANSI C Library Description: Parameters: Returns: Syntax: Revision date: 17/01/2007 Revision: 2 This function allows to lockthe memory of a specific tag identified by the ID and by Payload [in] Handle : The handle that identifies the device. [in] ID : The tag ID. [in] Payload : The payload of the tag's memory.
Document type: User's Manual (MUT) Title: RFID ANSI C Library Revision date: 17/01/2007 Revision: 2 1.3.56. CAENRFID_ProgramID_C1G2 Name: Reader: Description: Parameters: Returns: Syntax: CAENRFID_ProgramID_C1G2 A928EU, A948EU The function permits to program an EPC Class 1 Gen 2 tag [in] Handle: The handle that identifies the device. [in] ID: The EPC to program in the tag. [in] nsi: The NSI value for the EPC C1G2.
Document type: User's Manual (MUT) Title: RFID ANSI C Library Revision date: 17/01/2007 Revision: 2 *Data); 1.3.59. CAENRFID_QueryTag_C1G2 Name: Reader: Description: Parameters: Returns: Syntax: CAENRFID_QueryTag_C1G2 A928EU, A948EU The function permits to perform the Query command of C1G2 protocol [in] SourceName : The Name of the Logical Source.
Document type: User's Manual (MUT) Title: RFID ANSI C Library Revision date: 17/01/2007 Revision: 2 1.3.63. CAENRFID_FreeTagsMemory Name: Reader: Description: Parameters: Returns: Syntax: NPO: 00117/03:RFLIB.