#include <rfid_driver_interface.h>
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. |
Definition at line 30 of file rfid_driver_interface.h.
RfidDriverInterface::RfidDriverInterface | ( | ) | [inline] |
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.
virtual int RfidDriverInterface::close_device | ( | ) | [pure virtual] |
Method to close the USB RFID reader.
@return | error: -1 or success: 0. |
Implemented in RfidDriverWrapper.
virtual int RfidDriverInterface::get_num_labels | ( | ) | [pure virtual] |
Method to get the number of labels detected.
@return | The number of labels detected. |
Implemented in RfidDriverWrapper.
virtual std::string* RfidDriverInterface::get_tags | ( | ) | [pure virtual] |
Method to get the UIDs of the labels detected.
@return | Labels 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.
Implemented in RfidDriverWrapper.
virtual std::string RfidDriverInterface::get_uid_label | ( | ) | [pure virtual] |
Method to get the UID label detected.
@return | The UID detected. |
Implemented in RfidDriverWrapper.
virtual int RfidDriverInterface::inventory | ( | ) | [pure virtual] |
Method to read the UID labels within the range of the wire.
@return | The 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.
num_device,number | of device. |
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)
data,where | read data is stored. |
uc_db_address,data | block address to read. |
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.
num_labels,the | maximum number of labels to detect in each execution: |
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)
data,where | read data is stored. |
uid,label | id to read. |
uc_db_address,data | block address to read. |
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.
data,where | read data is stored. |
epc,label | id to read. |
mem_bank,memory | bank to read: 0x01 EPC , 0x03 USER. |
address,data | block address to read. |
num_blocks,number | of blocks to read. |
Implemented in RfidDriverWrapper.