Public Member Functions | Private Member Functions | Private Attributes
RfidDriverWrapper Class Reference

#include <rfid_driver_wrapper.h>

Inheritance diagram for RfidDriverWrapper:
Inheritance graph
[legend]

List of all members.

Public Member Functions

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

Private Member Functions

int set_port_hand (long num_device)
 Method to set the handle USB port of the lower protocol layer (FEUSB) to the upper protocol layer (FEISC).
int set_type_reader (int index)
 Method to set the type of RFID reader used.

Private Attributes

int _device_handle
std::string _device_name
std::string _DSFID
long _id_device
std::vector< std::string > _labels
int _lenght
int _num_devices
int _num_max_labels
int _reader_handle
FEDM_ISCReaderModule _rfid_reader
std::string _snr

Detailed Description

Definition at line 38 of file rfid_driver_wrapper.h.


Constructor & Destructor Documentation

Empty constructor.

Definition at line 30 of file rfid_driver_wrapper.cpp.

Destructor.

Definition at line 47 of file rfid_driver_wrapper.cpp.


Member Function Documentation

Method to close the USB RFID reader.

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

Implements RfidDriverInterface.

Definition at line 119 of file rfid_driver_wrapper.cpp.

Method to get the number of labels detected.

Parameters:
@returnThe number of labels detected.

Implements RfidDriverInterface.

Definition at line 177 of file rfid_driver_wrapper.cpp.

std::string * RfidDriverWrapper::get_tags ( ) [virtual]

Method to get the UIDs of the labels detected.

Parameters:
@returnLabels detected in the inventory function.

Implements RfidDriverInterface.

Definition at line 155 of file rfid_driver_wrapper.cpp.

std::string RfidDriverWrapper::get_type_reader ( ) [virtual]

Method to get the type of RFID reader used.

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

Implements RfidDriverInterface.

Definition at line 164 of file rfid_driver_wrapper.cpp.

std::string RfidDriverWrapper::get_uid_label ( ) [virtual]

Method to get the UID label detected.

Parameters:
@returnThe UID detected.

Implements RfidDriverInterface.

Definition at line 148 of file rfid_driver_wrapper.cpp.

int RfidDriverWrapper::inventory ( ) [virtual]

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

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

Implements RfidDriverInterface.

Definition at line 280 of file rfid_driver_wrapper.cpp.

int RfidDriverWrapper::open_device ( long  num_device) [virtual]

Method to open and enable the USB RFID reader.

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

Implements RfidDriverInterface.

Definition at line 53 of file rfid_driver_wrapper.cpp.

void RfidDriverWrapper::read_hf ( unsigned char  data[BLOCK_SIZE_HF],
unsigned char  uc_db_address 
) [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:

Implements RfidDriverInterface.

Definition at line 191 of file rfid_driver_wrapper.cpp.

void RfidDriverWrapper::set_num_labels ( int  num_labels) [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:

Implements RfidDriverInterface.

Definition at line 184 of file rfid_driver_wrapper.cpp.

int RfidDriverWrapper::set_port_hand ( long  num_device) [private]

Method to set the handle USB port of the lower protocol layer (FEUSB) to the upper protocol layer (FEISC).

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

Definition at line 350 of file rfid_driver_wrapper.cpp.

int RfidDriverWrapper::set_type_reader ( int  index) [private]

Method to set the type of RFID reader used.

Parameters:
index,numberof device (index).
Returns:
error: -1 or success: 0.

Definition at line 327 of file rfid_driver_wrapper.cpp.

void RfidDriverWrapper::write_hf ( unsigned char  data[BLOCK_SIZE_HF],
unsigned char  uc_db_address,
std::string  uid 
) [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:

Implements RfidDriverInterface.

Definition at line 233 of file rfid_driver_wrapper.cpp.

int RfidDriverWrapper::write_tag_epc ( unsigned char *  data,
std::string  epc,
unsigned int  mem_bank,
unsigned int  address,
unsigned int  num_blocks 
) [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.

Implements RfidDriverInterface.

Definition at line 264 of file rfid_driver_wrapper.cpp.


Member Data Documentation

Definition at line 150 of file rfid_driver_wrapper.h.

std::string RfidDriverWrapper::_device_name [private]

Definition at line 153 of file rfid_driver_wrapper.h.

std::string RfidDriverWrapper::_DSFID [private]

Definition at line 155 of file rfid_driver_wrapper.h.

Definition at line 151 of file rfid_driver_wrapper.h.

std::vector<std::string> RfidDriverWrapper::_labels [private]

Definition at line 157 of file rfid_driver_wrapper.h.

Definition at line 150 of file rfid_driver_wrapper.h.

Definition at line 150 of file rfid_driver_wrapper.h.

Definition at line 150 of file rfid_driver_wrapper.h.

Definition at line 150 of file rfid_driver_wrapper.h.

Definition at line 159 of file rfid_driver_wrapper.h.

std::string RfidDriverWrapper::_snr [private]

Definition at line 154 of file rfid_driver_wrapper.h.


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


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