FedmIscTagHandler_ISO15693_IDS_SL13A.h
Go to the documentation of this file.
00001 /*-------------------------------------------------------
00002 |                                                       |
00003 |          FedmIscTagHandler_ISO15693_IDS_SL13A.h           |
00004 |                                                       |
00005 ---------------------------------------------------------
00006 
00007 Copyright © 2011                FEIG ELECTRONIC GmbH, All Rights Reserved.
00008                                                 Lange Strasse 4
00009                                                 D-35781 Weilburg
00010                                                 Federal Republic of Germany
00011                                                 phone    : +49 6471 31090
00012                                                 fax      : +49 6471 310999
00013                                                 e-mail   : obid-support@feig.de
00014                                                 Internet : http://www.feig.de
00015                                         
00016 Author                  :       Markus Hultsch
00017 Begin                   :       03.03.01 / 28.03.2011
00018 
00019 Version                 :       03.03.01 / 01.04.2011 / M. Hultsch
00020 
00021 Operation Systems       :       independent
00022 
00023 Function                        :       class for OBID i-scan® HF transponder ISO15693 of manufacturer IDS Microchip 
00024                                                 specialized tag handler on top with custom specific commands
00025 
00026 NOTE                            :       this class supports only non-addressed or addressed mode in Host-Mode
00027 
00028 
00029 Trademarks:
00030 -----------
00031 OBID®, OBID i-scan® and OBID myAXXESS® are registered Trademarks of FEIG ELECTRONIC GmbH
00032 Other Trademarks: see FEDM.h
00033 */
00034 
00035 #if !defined(_FEDM_ISC_TAG_HANDLER_ISO15693_IDS_SL13A_H_INCLUDED_)
00036 #define _FEDM_ISC_TAG_HANDLER_ISO15693_IDS_SL13A_H_INCLUDED_
00037 
00038 #if !defined(_FEDM_NO_TAG_HANDLER_ISO15693)
00039 
00040 #include "../../FEDM.h"
00041 #include "FedmIscTagHandler_ISO15693.h"
00042 
00043 class FEDM_ISOTabItem;
00044 
00045 
00046 
00047 //#####################################################################################
00048 // constants
00049 //#####################################################################################
00050 
00051 
00052 
00053 
00054 
00055 //####################################################################
00056 // class FedmIscTagHandler_ISO15693_IDS_SL13A
00057 // >> supports only ISO Host Commands <<
00058 //####################################################################
00059 
00068 class _FEDM_ISC_CORE_EXT_CLASS FedmIscTagHandler_ISO15693_IDS_SL13A : public FedmIscTagHandler_ISO15693
00069 {
00070 public:
00071 
00072         // friend classes have access rights to protected members
00073         friend class FEDM_ISCReaderModule;
00074         friend class FEDM_ISCReader;
00075         friend class FEDM_ISOTabItem;
00076 
00086         int SetPassword(        unsigned char ucPasswordLevel,
00087                                                 string sPassword);
00088 
00099         int SetLogMode(         unsigned int uiLogMode );
00100         
00111         int SetLogMode(         bool bExternalSensor,
00112                                                 unsigned char ucLogFormat,
00113                                                 bool bBatteryCheck,
00114                                                 bool bStorageRule,
00115                                                 unsigned int uiLogInterval,
00116                                                 unsigned int uiExtremeUpperLimit );
00117 
00127         int SetLogLimits(       unsigned int uiExtremeLowerLimit,
00128                                                 unsigned int uiLowerLimit,
00129                                                 unsigned int uiUpperLimit );
00130 
00140         int GetMeasurementSetup(        unsigned int& uiStartTime,
00141                                                                 unsigned int& uiLogLimits,
00142                                                                 unsigned int& uiLogMode,
00143                                                                 unsigned int& uiDelayTime );
00144 
00154         int SetExternalCalibrationData( unsigned int uiCalibrationData );
00155 
00165         int SetInternalCalibrationData( unsigned int uiCalibrationData );
00166 
00176         int SetPassive();
00177 
00188         int StartLog(   unsigned int uiStartTime );
00189         
00200         int StartLog(   unsigned char ucYear,
00201                                         unsigned char ucMonth,
00202                                         unsigned char ucDay,
00203                                         unsigned char ucHour,
00204                                         unsigned char ucMinute,
00205                                         unsigned char ucSecond );
00206 
00217         int GetLogState(        bool& bActiveFlag,
00218                                                 unsigned int&  uiErrorsAndEvents,
00219                                                 unsigned char& ucNoOfMemReplacements,
00220                                                 unsigned int&  uiNoOfMeasurements,
00221                                                 unsigned char& ucMeasurementAddressPointer,
00222                                                 unsigned char& ucExtremeLowerLimitCounter,
00223                                                 unsigned char& ucLowerLimitCounter,
00224                                                 unsigned char& ucHigherLimitCounter,
00225                                                 unsigned char& ucExtremeHigherLimitCounter );
00226         
00237         int GetLogState(        unsigned int& uiMeasurementStatus,
00238                                                 unsigned int& uiLimitCounters );
00239 
00249         int GetCalibrationData( unsigned int& uiInternalCalibrationData,
00250                                                         unsigned int& uiExternalCalibrationData );
00251 
00261         int GetBatteryLevel(    unsigned char& ucBatteryLevel );
00262 
00272         int VerifyPassword(     unsigned char ucPasswordLevel );
00273 
00283         int Initialize( unsigned char ucNoOfUserBlocks,
00284                                         unsigned int uiDelayTime,
00285                                         bool bSingleUse );
00286 
00287         //[0xB1][0xAD] : starts the AD conversion and returns the measured temperature
00296         int GetTemperature(     unsigned int& uiTemperature );
00297 
00301         unsigned char GetTagError();
00302 
00306         virtual void Init();
00307 
00308 #if _MSC_VER > 1200
00309 
00310 
00311 
00312         static const unsigned char PW_LEVEL_SYSTEM                      = 0x01;
00313 
00317         static const unsigned char PW_LEVEL_USER                        = 0x02;
00318 
00322         static const unsigned char PW_LEVEL_MEASUREMENT         = 0x03;
00323 
00327         static const unsigned char PW_LEVEL_STORAGE_EEPROM      = 0x80;
00328 
00332         static const unsigned char LOG_MODE_DENSE                                               = 0x00;
00333 
00337         static const unsigned char LOG_MODE_ALL_VALUES_OUT_OF_LIMITS    = 0x01;
00338 
00342         static const unsigned char LOG_MODE_LIMITS_CROSSING                             = 0x03;
00343 #else // for Visual Studio 6
00344         // constants for [0xA0] Set Password
00345         static const unsigned char PW_LEVEL_SYSTEM;
00346         static const unsigned char PW_LEVEL_USER;
00347         static const unsigned char PW_LEVEL_MEASUREMENT;
00348         static const unsigned char PW_LEVEL_STORAGE_EEPROM;
00349         // constants for [0xA1] Set Log Mode
00350         static const unsigned char LOG_MODE_DENSE;
00351         static const unsigned char LOG_MODE_ALL_VALUES_OUT_OF_LIMITS;
00352         static const unsigned char LOG_MODE_LIMITS_CROSSING;
00353 #endif
00354 
00355 protected:
00356         // constructor
00357         FedmIscTagHandler_ISO15693_IDS_SL13A(FEDM_ISCReader* pReader, FEDM_ISOTabItem* pTabItem);
00358         // 2. constructor
00359         FedmIscTagHandler_ISO15693_IDS_SL13A(FEDM_ISCReader* pReader, unsigned int uiTagHandlerType, FEDM_ISOTabItem* pTabItem);
00360         // destructor
00361         virtual ~FedmIscTagHandler_ISO15693_IDS_SL13A();
00362 
00363         unsigned char   m_ucTagError;
00364 
00365 };
00366 
00367 #endif // #if !defined(_FEDM_NO_TAG_HANDLER_ISO15693)
00368 
00369 #endif // !defined(_FEDM_ISC_TAG_HANDLER_ISO15693_IDS_SL13A_H_INCLUDED_)


maggie_rfid_drivers
Author(s): Raul Perula-Martinez
autogenerated on Mon Sep 14 2015 03:05:30