00001 /*------------------------------------------------------- 00002 | | 00003 | FedmIscTagHandler_ISO14443.cpp | 00004 | | 00005 --------------------------------------------------------- 00006 00007 Copyright © 2009-2012 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 : 01.04.2009 00018 00019 Version : 04.03.01 / 09.11.2012 / M. Hultsch 00020 - new method: GetManufacturerName() 00021 00022 03.01.00 / 10.02.2010 / M. Hultsch 00023 00024 Operation Systems : independent 00025 00026 Function : class for OBID® classic-pro transponder ISO14443 00027 00028 NOTE : this class supports only selected or addressed mode in Host-Mode 00029 00030 00031 Trademarks: 00032 ----------- 00033 OBID®, OBID i-scan® and OBID myAXXESS® are registered Trademarks of FEIG ELECTRONIC GmbH 00034 Other Trademarks: see FEDM.h 00035 */ 00036 00037 #if !defined(_FEDM_NO_TAG_HANDLER_ISO14443) 00038 00039 #include "FedmIscTagHandler_ISO14443.h" 00040 #include "../FEDM_ISCReader.h" 00041 #include "../FEDM_ISOTabItem.h" 00042 #include "../FEDM_ISCReaderID.h" 00043 #include "../FEDM_ISC.h" 00044 00045 00046 #if _MSC_VER >= 1400 00047 #pragma warning(disable : 4996) 00048 #endif 00049 00050 00051 00052 //#################################################################### 00053 // class FedmIscTagHandler_ISO14443 00054 // >> supports only ISO Host Commands << 00055 //#################################################################### 00056 00057 FedmIscTagHandler_ISO14443::FedmIscTagHandler_ISO14443( 00058 FEDM_ISCReader* pReader, 00059 FEDM_ISOTabItem* pTabItem ) 00060 : FedmIscTagHandler(pReader, FedmIscTagHandler::TYPE_ISO14443, pTabItem) 00061 { 00062 if(m_pTabItem != NULL) 00063 { 00064 if(m_pTabItem->m_ucTrType == FEDM_ISC_TR_TYPE_ISO14443A) 00065 m_sTagName = "ISO 14443 Type A"; 00066 else if(m_pTabItem->m_ucTrType == FEDM_ISC_TR_TYPE_ISO14443B) 00067 m_sTagName = "ISO 14443 Type B"; 00068 } 00069 } 00070 00071 // protected constructor for internal use 00072 FedmIscTagHandler_ISO14443::FedmIscTagHandler_ISO14443( 00073 FEDM_ISCReader* pReader, 00074 unsigned int uiTagHandlerType, 00075 FEDM_ISOTabItem* pTabItem ) 00076 : FedmIscTagHandler(pReader, uiTagHandlerType, pTabItem) 00077 { 00078 if(m_pTabItem != NULL) 00079 { 00080 if(m_pTabItem->m_ucTrType == FEDM_ISC_TR_TYPE_ISO14443A) 00081 m_sTagName = "ISO 14443 Type A"; 00082 else if(m_pTabItem->m_ucTrType == FEDM_ISC_TR_TYPE_ISO14443B) 00083 m_sTagName = "ISO 14443 Type B"; 00084 } 00085 } 00086 00087 FedmIscTagHandler_ISO14443::~FedmIscTagHandler_ISO14443() 00088 { 00089 } 00090 00091 // set all data members to 0 00092 /*void FedmIscTagHandler_ISO14443::Init() 00093 { 00094 }*/ 00095 00096 00097 00098 /*************************************************************************** 00099 Begin : 09.11.2012 / M. Hultsch 00100 00101 Version : 04.03.01 / 09.11.2012 / M. Hultsch 00102 00103 Function : return the Chip Manufacturer Name, based on UID 00104 NOTE: only applicable for Part A chip types 00105 00106 Parameters : - 00107 00108 Return value : Chip Manufacturer Name 00109 ***************************************************************************/ 00110 const char* FedmIscTagHandler_ISO14443::GetManufacturerName() 00111 { 00112 return m_pTabItem->GetISO14443AManufacturer(); 00113 } 00114 00115 #endif // #if !defined(_FEDM_NO_TAG_HANDLER_ISO14443)