Public Member Functions
RfidDriverInterface Class Reference

#include <rfid_driver_interface.h>

Inheritance diagram for RfidDriverInterface:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual int close_device ()=0
 Method to close the USB RFID reader.
virtual int get_num_labels ()=0
 Method to get the number of labels detected.
virtual std::string * get_tags ()=0
 Method to get the UIDs of the labels detected.
virtual std::string get_type_reader ()=0
 Method to get the type of RFID reader used.
virtual std::string get_uid_label ()=0
 Method to get the UID label detected.
virtual int inventory ()=0
 Method to read the UID labels within the range of the wire.
virtual int open_device (long num_device)=0
 Method to open and enable the USB RFID reader.
virtual void read_hf (unsigned char data[BLOCK_SIZE_HF], unsigned char uc_db_address)=0
 Method to read a matrix data block of the label (HF RFID readers)
 RfidDriverInterface ()
 Empty constructor.
virtual void set_num_labels (int num_labels)=0
 Method to set the maximum number of labels to detect in each inventory.
virtual void write_hf (unsigned char data[BLOCK_SIZE_HF], unsigned char uc_db_address, std::string uid)=0
 Method to write the address (HF RFID reader)
virtual int write_tag_epc (unsigned char *data, std::string epc, unsigned int mem_bank, unsigned int address, unsigned int num_blocks)=0
 Method to write EPC labels writing multiple blocks.
virtual ~RfidDriverInterface ()
 Destructor.

Detailed Description

Definition at line 30 of file rfid_driver_interface.h.


Constructor & Destructor Documentation

Empty constructor.

Definition at line 35 of file rfid_driver_interface.h.

virtual RfidDriverInterface::~RfidDriverInterface ( ) [inline, virtual]

Destructor.

Definition at line 42 of file rfid_driver_interface.h.


Member Function Documentation

virtual int RfidDriverInterface::close_device ( ) [pure virtual]

Method to close the USB RFID reader.

Parameters:
@returnerror: -1 or success: 0.

Implemented in RfidDriverWrapper.

virtual int RfidDriverInterface::get_num_labels ( ) [pure virtual]

Method to get the number of labels detected.

Parameters:
@returnThe number of labels detected.

Implemented in RfidDriverWrapper.

virtual std::string* RfidDriverInterface::get_tags ( ) [pure virtual]

Method to get the UIDs of the labels detected.

Parameters:
@returnLabels detected in the inventory function.

Implemented in RfidDriverWrapper.

virtual std::string RfidDriverInterface::get_type_reader ( ) [pure virtual]

Method to get the type of RFID reader used.

Returns:
a string with the name or empty if error.

Implemented in RfidDriverWrapper.

virtual std::string RfidDriverInterface::get_uid_label ( ) [pure virtual]

Method to get the UID label detected.

Parameters:
@returnThe UID detected.

Implemented in RfidDriverWrapper.

virtual int RfidDriverInterface::inventory ( ) [pure virtual]

Method to read the UID labels within the range of the wire.

Parameters:
@returnThe table data size of the tags detected.

Implemented in RfidDriverWrapper.

virtual int RfidDriverInterface::open_device ( long  num_device) [pure virtual]

Method to open and enable the USB RFID reader.

Parameters:
num_device,numberof device.
Returns:
error: -1 or success: 0.

Implemented in RfidDriverWrapper.

virtual void RfidDriverInterface::read_hf ( unsigned char  data[BLOCK_SIZE_HF],
unsigned char  uc_db_address 
) [pure virtual]

Method to read a matrix data block of the label (HF RFID readers)

Parameters:
data,whereread data is stored.
uc_db_address,datablock address to read.
Returns:

Implemented in RfidDriverWrapper.

virtual void RfidDriverInterface::set_num_labels ( int  num_labels) [pure virtual]

Method to set the maximum number of labels to detect in each inventory.

Parameters:
num_labels,themaximum number of labels to detect in each execution:
Returns:

Implemented in RfidDriverWrapper.

virtual void RfidDriverInterface::write_hf ( unsigned char  data[BLOCK_SIZE_HF],
unsigned char  uc_db_address,
std::string  uid 
) [pure virtual]

Method to write the address (HF RFID reader)

Parameters:
data,whereread data is stored.
uid,labelid to read.
uc_db_address,datablock address to read.
Returns:

Implemented in RfidDriverWrapper.

virtual int RfidDriverInterface::write_tag_epc ( unsigned char *  data,
std::string  epc,
unsigned int  mem_bank,
unsigned int  address,
unsigned int  num_blocks 
) [pure virtual]

Method to write EPC labels writing multiple blocks.

Parameters:
data,whereread data is stored.
epc,labelid to read.
mem_bank,memorybank to read: 0x01 EPC , 0x03 USER.
address,datablock address to read.
num_blocks,numberof blocks to read.
Returns:
error: -1 or success: 0.

Implemented in RfidDriverWrapper.


The documentation for this class was generated from the following file:


rfid_drivers
Author(s): Raul Perula-Martinez
autogenerated on Thu Apr 2 2015 03:06:16