FedmIscTagHandler_ISO14443_4_MIFARE_DESFire_FlexSoftCrypto.cpp
Go to the documentation of this file.
00001 /*-----------------------------------------------------------------------
00002 |                                                                                       |
00003 |      FedmIscTagHandler_ISO14443_4_MIFARE_DESFire_FlexSoftCrypto.cpp   |
00004 |                                                                                       |
00005 -------------------------------------------------------------------------
00006 
00007 Copyright © 2009-2010   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                   :       30.03.2009
00018 
00019 Version                 :       03.02.07 / 10.11.2010 / M. Hultsch
00020 
00021 Operation Systems       :       independent
00022 
00023 Function                        :       implementation class for OBID® classic-pro transponder ISO14443-4 MIFARE DESFire
00024                                                 with [0xC3] commands and fast software cryptographic
00025 
00026 NOTE                            :       this class supports only selected 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_NO_TAG_HANDLER_ISO14443)
00036 
00037 #include "../../FEDM.h"
00038 #include "FedmIscTagHandler_ISO14443_4_MIFARE_DESFire_FlexSoftCrypto.h"
00039 #include "FedmIscTagHandler_ISO14443_4_MIFARE_DESFire.h"
00040 
00041 
00042 #if _MSC_VER >= 1400
00043         #pragma warning(disable : 4996)
00044 #endif
00045 
00046 
00047 
00048 //####################################################################
00049 // class FedmIscTagHandler_ISO14443_4_MIFARE_DESFire_FlexSoftCrypto
00050 // >> supports only ISO Host Commands <<
00051 //####################################################################
00052 
00053 FedmIscTagHandler_ISO14443_4_MIFARE_DESFire_FlexSoftCrypto::FedmIscTagHandler_ISO14443_4_MIFARE_DESFire_FlexSoftCrypto()
00054 {
00055 }
00056 
00057 FedmIscTagHandler_ISO14443_4_MIFARE_DESFire_FlexSoftCrypto::~FedmIscTagHandler_ISO14443_4_MIFARE_DESFire_FlexSoftCrypto()
00058 {
00059 }
00060 
00061 unsigned char FedmIscTagHandler_ISO14443_4_MIFARE_DESFire_FlexSoftCrypto::GetErrorSource()
00062 {
00063         return m_pParent->m_pImpl_C3->m_ucErrorSource;
00064 }
00065 
00066 unsigned int FedmIscTagHandler_ISO14443_4_MIFARE_DESFire_FlexSoftCrypto::GetErrorCode()
00067 {
00068         return m_pParent->m_pImpl_C3->m_uiErrorCode;
00069 }
00070 
00071 
00072 //---------------------------------------------------------------------------------
00073 // ------------------------ SECURITY RELATED COMMANDS -----------------------------
00074 //---------------------------------------------------------------------------------
00075 int FedmIscTagHandler_ISO14443_4_MIFARE_DESFire_FlexSoftCrypto::Authenticate(
00076         unsigned char ucReaderKeyIndex,
00077         unsigned char ucDESFireKeyNo )
00078 {
00079         unsigned char RFU = 0x00;
00080         return m_pParent->m_pImpl_C3->Authenticate(0x00, RFU, RFU, ucReaderKeyIndex, RFU, ucDESFireKeyNo, RFU, RFU, RFU, RFU, NULL);
00081 }
00082 
00083 
00084 int FedmIscTagHandler_ISO14443_4_MIFARE_DESFire_FlexSoftCrypto::ChangeKeySettings(unsigned char ucNewKeySettings )
00085 {
00086         unsigned char RFU = 0x00;
00087         return m_pParent->m_pImpl_C3->ChangeKeySettings(0x00, RFU, RFU, ucNewKeySettings);
00088 }
00089 
00090 
00091 int FedmIscTagHandler_ISO14443_4_MIFARE_DESFire_FlexSoftCrypto::GetKeySettings(
00092         unsigned char *pucResponseData, 
00093         unsigned int uiResponseBufferLength, 
00094         unsigned int &uiResponseLength )
00095 {
00096         unsigned char RFU = 0x00;
00097         return m_pParent->m_pImpl_C3->GetKeySettings(0x00, RFU, RFU, pucResponseData, uiResponseBufferLength, uiResponseLength);
00098 }
00099 
00100 
00101 int FedmIscTagHandler_ISO14443_4_MIFARE_DESFire_FlexSoftCrypto::ChangeKey(
00102         unsigned char ucKeyNoToBeChanged,
00103         unsigned char ucAESNewKeyVersion,
00104         std::string sOldKey,
00105         std::string sNewKey )
00106 {
00107         unsigned char ucRFU = 0x00;
00108         return m_pParent->m_pImpl_C3->ChangeKey(0x00, 
00109                                                                                         ucRFU, 
00110                                                                                         ucRFU, 
00111                                                                                         ucKeyNoToBeChanged, 
00112                                                                                         ucAESNewKeyVersion, 
00113                                                                                         sOldKey, 
00114                                                                                         sNewKey, 
00115                                                                                         ucRFU, 
00116                                                                                         ucRFU, 
00117                                                                                         ucRFU, 
00118                                                                                         ucRFU, 
00119                                                                                         ucRFU, 
00120                                                                                         ucRFU, 
00121                                                                                         ucRFU, 
00122                                                                                         NULL);
00123 }
00124 
00125 
00126 int FedmIscTagHandler_ISO14443_4_MIFARE_DESFire_FlexSoftCrypto::GetKeyVersion(
00127         unsigned char ucDESFireKeyNo, 
00128         unsigned char *pucResponseData, 
00129         unsigned int uiResponseBufferLength, 
00130         unsigned int &uiResponseLength)
00131 {
00132         unsigned char RFU = 0x00;
00133         return m_pParent->m_pImpl_C3->GetKeyVersion(0x00, RFU, RFU, ucDESFireKeyNo, pucResponseData, uiResponseBufferLength, uiResponseLength);
00134 }
00135 
00136 //---------------------------------------------------------------------------------
00137 // ------------------------ PICC LEVEL COMMANDS -----------------------------------
00138 //---------------------------------------------------------------------------------
00139 int FedmIscTagHandler_ISO14443_4_MIFARE_DESFire_FlexSoftCrypto::CreateApplication(
00140         unsigned char ucPiccLevelFlags, 
00141         unsigned int uiApplicationID, 
00142         unsigned char ucKeySetting1, 
00143         unsigned char ucKeySetting2, 
00144         unsigned int uiISOFileID, 
00145         std::string sDFName )
00146 {
00147         unsigned char RFU = 0x00;
00148         return m_pParent->m_pImpl_C3->CreateApplication(0x00, RFU, RFU, ucPiccLevelFlags, uiApplicationID, ucKeySetting1, ucKeySetting2, uiISOFileID, sDFName);
00149 }
00150 
00151 int FedmIscTagHandler_ISO14443_4_MIFARE_DESFire_FlexSoftCrypto::DeleteApplication(
00152         unsigned char ucPiccLevelFlags,
00153         unsigned int uiApplicationID )
00154 {
00155         unsigned char RFU = 0x00;
00156         return m_pParent->m_pImpl_C3->DeleteApplication(0x00, RFU, RFU, ucPiccLevelFlags, uiApplicationID);
00157 }
00158 
00159 int FedmIscTagHandler_ISO14443_4_MIFARE_DESFire_FlexSoftCrypto::GetApplicationIDs(
00160         unsigned char ucPiccLevelFlags, 
00161         unsigned char *pucResponseData, 
00162         unsigned int uiResponseBufferLength, 
00163         unsigned int &uiResponseLength)
00164 {
00165         unsigned char RFU = 0x00;
00166         return m_pParent->m_pImpl_C3->GetApplicationIDs(0x00, RFU, RFU, ucPiccLevelFlags, pucResponseData, uiResponseBufferLength, uiResponseLength);
00167 }
00168 
00169 int FedmIscTagHandler_ISO14443_4_MIFARE_DESFire_FlexSoftCrypto::FreeMemory( 
00170         unsigned char ucPiccLevelFlags,
00171         unsigned char* pucResponseData, 
00172         unsigned int uiResponseBufferLength, 
00173         unsigned int &uiResponseLength )
00174 {
00175         unsigned char RFU = 0x00;
00176         return m_pParent->m_pImpl_C3->FreeMemory(0x00, RFU, RFU, ucPiccLevelFlags, pucResponseData, uiResponseBufferLength, uiResponseLength);
00177 }
00178 
00179 int FedmIscTagHandler_ISO14443_4_MIFARE_DESFire_FlexSoftCrypto::GetDFNames(
00180         unsigned char ucPiccLevelFlags, 
00181         unsigned char *pucResponseData, 
00182         unsigned int uiResponseBufferLength, 
00183         unsigned int &uiResponseLength)
00184 {
00185         unsigned char RFU = 0x00;
00186         return m_pParent->m_pImpl_C3->GetDFNames(0x00, RFU, RFU, ucPiccLevelFlags, pucResponseData, uiResponseBufferLength, uiResponseLength);
00187 }
00188 
00189 int FedmIscTagHandler_ISO14443_4_MIFARE_DESFire_FlexSoftCrypto::SelectApplication(
00190         unsigned char ucPiccLevelFlags, 
00191         unsigned int uiApplicationID)
00192 {
00193         unsigned char RFU = 0x00;
00194         return m_pParent->m_pImpl_C3->SelectApplication(0x00, RFU, RFU, ucPiccLevelFlags, uiApplicationID);
00195 }
00196 
00197 int FedmIscTagHandler_ISO14443_4_MIFARE_DESFire_FlexSoftCrypto::FormatPICC(     unsigned char ucPiccLevelFlags )
00198 {
00199         unsigned char RFU = 0x00;
00200         return m_pParent->m_pImpl_C3->FormatPICC(0x00, RFU, RFU, ucPiccLevelFlags);
00201 }
00202 
00203 int FedmIscTagHandler_ISO14443_4_MIFARE_DESFire_FlexSoftCrypto::GetVersion(
00204         unsigned char ucPiccLevelFlags, 
00205         unsigned char *pucResponseData, 
00206         unsigned int uiResponseBufferLength, 
00207         unsigned int &uiResponseLength )
00208 {
00209         unsigned char RFU = 0x00;
00210         return m_pParent->m_pImpl_C3->GetVersion(0x00, RFU, RFU, ucPiccLevelFlags, pucResponseData, uiResponseBufferLength, uiResponseLength);
00211 }
00212 
00213 int FedmIscTagHandler_ISO14443_4_MIFARE_DESFire_FlexSoftCrypto::GetCardUID(
00214         unsigned char ucPiccLevelFlags, 
00215         unsigned char *pucResponseData, 
00216         unsigned int uiResponseBufferLength, 
00217         unsigned int &uiResponseLength )
00218 {
00219         unsigned char RFU = 0x00;
00220         return m_pParent->m_pImpl_C3->GetCardUID(0x00, RFU, RFU, ucPiccLevelFlags, pucResponseData, uiResponseBufferLength, uiResponseLength);
00221 }
00222 
00223 int FedmIscTagHandler_ISO14443_4_MIFARE_DESFire_FlexSoftCrypto::SetConfiguration(
00224         unsigned char ucPiccLevelFlags, 
00225         unsigned char *pucRequestData, 
00226         unsigned int uiRequestLength )
00227 {
00228         unsigned char RFU = 0x00;
00229         return m_pParent->m_pImpl_C3->SetConfiguration(0x00, RFU, RFU, ucPiccLevelFlags, pucRequestData, uiRequestLength);
00230 }
00231 
00232 //---------------------------------------------------------------------------------
00233 // ------------------------ APPLICATION LEVEL COMMANDS ----------------------------
00234 //---------------------------------------------------------------------------------
00235 int FedmIscTagHandler_ISO14443_4_MIFARE_DESFire_FlexSoftCrypto::ChangeFileSettings(
00236         unsigned char ucApplicationLevelFlags, 
00237         unsigned char ucFileNo, 
00238         unsigned char ucNewFileCommSettings, 
00239         unsigned char ucNewFileReadWriteAccessRights, 
00240         unsigned char ucNewFileChangeAccessRights, 
00241         unsigned char ucNewFileReadAccessRights, 
00242         unsigned char ucNewFileWriteAccessRights)
00243 {
00244         unsigned char RFU = 0x00;
00245         return m_pParent->m_pImpl_C3->ChangeFileSettings(0x00, RFU, RFU, ucApplicationLevelFlags, ucFileNo, ucNewFileCommSettings, ucNewFileReadWriteAccessRights, ucNewFileChangeAccessRights, ucNewFileReadAccessRights, ucNewFileWriteAccessRights);
00246 }
00247 
00248 int FedmIscTagHandler_ISO14443_4_MIFARE_DESFire_FlexSoftCrypto::GetFileIDs(
00249         unsigned char ucApplicationLevelFlags, 
00250         unsigned char *pucResponseData, 
00251         unsigned int uiResponseBufferLength, 
00252         unsigned int &uiResponseLength )
00253 {
00254         unsigned char RFU = 0x00;
00255         return m_pParent->m_pImpl_C3->GetFileIDs(0x00, RFU, RFU, ucApplicationLevelFlags, pucResponseData, uiResponseBufferLength, uiResponseLength);
00256 }
00257 
00258 int FedmIscTagHandler_ISO14443_4_MIFARE_DESFire_FlexSoftCrypto::GetFileSettings(
00259         unsigned char ucApplicationLevelFlags, 
00260         unsigned char ucFileNo, 
00261         unsigned char *pucResponseData, 
00262         unsigned int uiResponseBufferLength, 
00263         unsigned int &uiResponseLength )
00264 {
00265         unsigned char RFU = 0x00;
00266         return m_pParent->m_pImpl_C3->GetFileSettings(0x00, RFU, RFU, ucApplicationLevelFlags, ucFileNo, pucResponseData, uiResponseBufferLength, uiResponseLength);
00267 }
00268 
00269 int FedmIscTagHandler_ISO14443_4_MIFARE_DESFire_FlexSoftCrypto::CreateStdDataFile(
00270         unsigned char ucApplicationLevelFlags, 
00271         unsigned char ucFileNo, 
00272         unsigned int uiISOFileID, 
00273         unsigned char ucFileCommSettings, 
00274         unsigned char ucFileReadWriteAccessRights, 
00275         unsigned char ucFileChangeAccessRights, 
00276         unsigned char ucFileReadAccessRights, 
00277         unsigned char ucFileWriteAccessRights, 
00278         unsigned int uiFileSize )
00279 {
00280         unsigned char RFU = 0x00;
00281         return m_pParent->m_pImpl_C3->CreateStdDataFile(0x00, RFU, RFU, ucApplicationLevelFlags, ucFileNo, uiISOFileID, ucFileCommSettings, ucFileReadWriteAccessRights, ucFileChangeAccessRights, ucFileReadAccessRights, ucFileWriteAccessRights, uiFileSize);
00282 }
00283 
00284 int FedmIscTagHandler_ISO14443_4_MIFARE_DESFire_FlexSoftCrypto::CreateBackupDataFile(
00285         unsigned char ucApplicationLevelFlags, 
00286         unsigned char ucFileNo, 
00287         unsigned int uiISOFileID, 
00288         unsigned char ucFileCommSettings, 
00289         unsigned char ucFileReadWriteAccessRights, 
00290         unsigned char ucFileChangeAccessRights, 
00291         unsigned char ucFileReadAccessRights, 
00292         unsigned char ucFileWriteAccessRights, 
00293         unsigned int uiFileSize )
00294 {
00295         unsigned char RFU = 0x00;
00296         return m_pParent->m_pImpl_C3->CreateBackupDataFile(0x00, RFU, RFU, ucApplicationLevelFlags, ucFileNo, uiISOFileID, ucFileCommSettings, ucFileReadWriteAccessRights, ucFileChangeAccessRights, ucFileReadAccessRights, ucFileWriteAccessRights, uiFileSize);
00297 }
00298 
00299 int FedmIscTagHandler_ISO14443_4_MIFARE_DESFire_FlexSoftCrypto::CreateValueFile(
00300         unsigned char ucApplicationLevelFlags, 
00301         unsigned char ucFileNo, 
00302         unsigned char ucFileCommSettings, 
00303         unsigned char ucFileReadWriteAccessRights, 
00304         unsigned char ucFileChangeAccessRights, 
00305         unsigned char ucFileReadAccessRights, 
00306         unsigned char ucFileWriteAccessRights, 
00307         unsigned int uiLowerLimit, 
00308         unsigned int uiUpperLimit, 
00309         unsigned int uiValue, 
00310         unsigned char ucLimitedCreditEnabled )
00311 {
00312         unsigned char RFU = 0x00;
00313         return m_pParent->m_pImpl_C3->CreateValueFile(0x00, RFU, RFU, ucApplicationLevelFlags, ucFileNo, ucFileCommSettings, ucFileReadWriteAccessRights, ucFileChangeAccessRights, ucFileReadAccessRights, ucFileWriteAccessRights, uiLowerLimit, uiUpperLimit, uiValue, ucLimitedCreditEnabled);
00314 }
00315 
00316 int FedmIscTagHandler_ISO14443_4_MIFARE_DESFire_FlexSoftCrypto::CreateLinearRecordFile(
00317         unsigned char ucApplicationLevelFlags, 
00318         unsigned char ucFileNo, 
00319         unsigned int uiISOFileID, 
00320         unsigned char ucFileCommSettings, 
00321         unsigned char ucFileReadWriteAccessRights, 
00322         unsigned char ucFileChangeAccessRights, 
00323         unsigned char ucFileReadAccessRights, 
00324         unsigned char ucFileWriteAccessRights, 
00325         unsigned int uiRecordSize, 
00326         unsigned int uiMaxNoOfRecords )
00327 {
00328         unsigned char RFU = 0x00;
00329         return m_pParent->m_pImpl_C3->CreateLinearRecordFile(0x00, RFU, RFU, ucApplicationLevelFlags, ucFileNo, uiISOFileID, ucFileCommSettings, ucFileReadWriteAccessRights, ucFileChangeAccessRights, ucFileReadAccessRights, ucFileWriteAccessRights, uiRecordSize, uiMaxNoOfRecords);
00330 }
00331 
00332 int FedmIscTagHandler_ISO14443_4_MIFARE_DESFire_FlexSoftCrypto::CreateCyclicRecordFile(
00333         unsigned char ucApplicationLevelFlags, 
00334         unsigned char ucFileNo, 
00335         unsigned int uiISOFileID, 
00336         unsigned char ucFileCommSettings, 
00337         unsigned char ucFileReadWriteAccessRights, 
00338         unsigned char ucFileChangeAccessRights, 
00339         unsigned char ucFileReadAccessRights, 
00340         unsigned char ucFileWriteAccessRights, 
00341         unsigned int uiRecordSize, 
00342         unsigned int uiMaxNoOfRecords )
00343 {
00344         unsigned char RFU = 0x00;
00345         return m_pParent->m_pImpl_C3->CreateCyclicRecordFile(0x00, RFU, RFU, ucApplicationLevelFlags, ucFileNo, uiISOFileID, ucFileCommSettings, ucFileReadWriteAccessRights, ucFileChangeAccessRights, ucFileReadAccessRights, ucFileWriteAccessRights, uiRecordSize, uiMaxNoOfRecords);
00346 }
00347 
00348 int FedmIscTagHandler_ISO14443_4_MIFARE_DESFire_FlexSoftCrypto::DeleteFile(
00349         unsigned char ucApplicationLevelFlags, 
00350         unsigned char ucFileNo )
00351 {
00352         unsigned char RFU = 0x00;
00353         return m_pParent->m_pImpl_C3->DeleteFile(0x00, RFU, RFU, ucApplicationLevelFlags, ucFileNo);
00354 }
00355 
00356 int FedmIscTagHandler_ISO14443_4_MIFARE_DESFire_FlexSoftCrypto::GetISOFileIDs(
00357         unsigned char ucApplicationLevelFlags, 
00358         unsigned char *pucResponseData, 
00359         unsigned int uiResponseBufferLength, 
00360         unsigned int &uiResponseLength )
00361 {
00362         unsigned char RFU = 0x00;
00363         return m_pParent->m_pImpl_C3->GetISOFileIDs(0x00, RFU, RFU, ucApplicationLevelFlags, pucResponseData, uiResponseBufferLength, uiResponseLength);
00364 }
00365 
00366 //---------------------------------------------------------------------------------
00367 // ------------------------ DATA MANIPULATION COMMANDS ----------------------------
00368 //---------------------------------------------------------------------------------
00369 int FedmIscTagHandler_ISO14443_4_MIFARE_DESFire_FlexSoftCrypto::ReadStandardData(
00370         unsigned char ucDataManipulationFlags, 
00371         unsigned char ucFileNo, 
00372         unsigned char ucFileCommSettings, 
00373         unsigned int uiFileOffset, 
00374         unsigned int uiFileLen, 
00375         unsigned char *pucFileData)
00376 {
00377         unsigned char RFU = 0x00;
00378         return m_pParent->m_pImpl_C3->ReadStandardData(0x00, RFU, RFU, ucDataManipulationFlags, ucFileNo, ucFileCommSettings, uiFileOffset, uiFileLen, pucFileData);
00379 }
00380 
00381 int FedmIscTagHandler_ISO14443_4_MIFARE_DESFire_FlexSoftCrypto::WriteStandardData(
00382         unsigned char ucDataManipulationFlags, 
00383         unsigned char ucFileNo, 
00384         unsigned char ucFileCommSettings, 
00385         unsigned int uiFileOffset, 
00386         unsigned int uiFileLen, 
00387         unsigned char *pucFileData)
00388 {
00389         unsigned char RFU = 0x00;
00390         return m_pParent->m_pImpl_C3->WriteStandardData(0x00, RFU, RFU, ucDataManipulationFlags, ucFileNo, ucFileCommSettings, uiFileOffset, uiFileLen, pucFileData);
00391 }
00392 
00393 int FedmIscTagHandler_ISO14443_4_MIFARE_DESFire_FlexSoftCrypto::GetValue(
00394         unsigned char ucDataManipulationFlags, 
00395         unsigned char ucFileNo, 
00396         unsigned char ucFileCommSettings, 
00397         unsigned int &uiValue)
00398 {
00399         unsigned char RFU = 0x00;
00400         return m_pParent->m_pImpl_C3->GetValue(0x00, RFU, RFU, ucDataManipulationFlags, ucFileNo, ucFileCommSettings, uiValue);
00401 }
00402 
00403 int FedmIscTagHandler_ISO14443_4_MIFARE_DESFire_FlexSoftCrypto::Debit(
00404         unsigned char ucDataManipulationFlags, 
00405         unsigned char ucFileNo, 
00406         unsigned char ucFileCommSettings, 
00407         unsigned int uiDebitValue)
00408 {
00409         unsigned char RFU = 0x00;
00410         return m_pParent->m_pImpl_C3->Debit(0x00, RFU, RFU, ucDataManipulationFlags, ucFileNo, ucFileCommSettings, uiDebitValue);
00411 }
00412 
00413 int FedmIscTagHandler_ISO14443_4_MIFARE_DESFire_FlexSoftCrypto::Credit(
00414         unsigned char ucDataManipulationFlags, 
00415         unsigned char ucFileNo, 
00416         unsigned char ucFileCommSettings, 
00417         unsigned int uiCreditValue)
00418 {
00419         unsigned char RFU = 0x00;
00420         return m_pParent->m_pImpl_C3->Credit(0x00, RFU, RFU, ucDataManipulationFlags, ucFileNo, ucFileCommSettings, uiCreditValue);
00421 }
00422 
00423 int FedmIscTagHandler_ISO14443_4_MIFARE_DESFire_FlexSoftCrypto::LimitedCredit(
00424         unsigned char ucDataManipulationFlags, 
00425         unsigned char ucFileNo, 
00426         unsigned char ucFileCommSettings, 
00427         unsigned int uiCreditValue)
00428 {
00429         unsigned char RFU = 0x00;
00430         return m_pParent->m_pImpl_C3->LimitedCredit(0x00, RFU, RFU, ucDataManipulationFlags, ucFileNo, ucFileCommSettings, uiCreditValue);
00431 }
00432 
00433 int FedmIscTagHandler_ISO14443_4_MIFARE_DESFire_FlexSoftCrypto::WriteRecord(
00434         unsigned char ucDataManipulationFlags, 
00435         unsigned char ucFileNo, 
00436         unsigned char ucFileCommSettings, 
00437         unsigned int uiFileOffset, 
00438         unsigned int uiRecordLen, 
00439         unsigned char *pucRecordData)
00440 {
00441         unsigned char RFU = 0x00;
00442         return m_pParent->m_pImpl_C3->WriteRecord(0x00, RFU, RFU, ucDataManipulationFlags, ucFileNo, ucFileCommSettings, uiFileOffset, uiRecordLen, pucRecordData);
00443 }
00444 
00445 int FedmIscTagHandler_ISO14443_4_MIFARE_DESFire_FlexSoftCrypto::ReadRecords(
00446         unsigned char ucDataManipulationFlags, 
00447         unsigned char ucFileNo, 
00448         unsigned char ucFileCommSettings, 
00449         unsigned int uiRecordOffset, 
00450         unsigned int uiNoOfRecords, 
00451         unsigned int uiRecordSize, 
00452         unsigned char *pucRecordData)
00453 {
00454         unsigned char RFU = 0x00;
00455         return m_pParent->m_pImpl_C3->ReadRecords(0x00, RFU, RFU, ucDataManipulationFlags, ucFileNo, ucFileCommSettings, uiRecordOffset, uiNoOfRecords, uiRecordSize, pucRecordData);
00456 }
00457 
00458 int FedmIscTagHandler_ISO14443_4_MIFARE_DESFire_FlexSoftCrypto::ClearRecordFile(
00459         unsigned char ucDataManipulationFlags,
00460         unsigned char ucFileNo,
00461         unsigned char ucFileCommSettings)
00462 {
00463         unsigned char RFU = 0x00;
00464         return m_pParent->m_pImpl_C3->ClearRecordFile(0x00, RFU, RFU, ucDataManipulationFlags, ucFileNo, ucFileCommSettings);
00465 }
00466 
00467 int FedmIscTagHandler_ISO14443_4_MIFARE_DESFire_FlexSoftCrypto::CommitTransaction( unsigned char ucDataManipulationFlags )
00468 {
00469         unsigned char RFU = 0x00;
00470         return m_pParent->m_pImpl_C3->CommitTransaction(0x00, RFU, RFU, ucDataManipulationFlags);
00471 }
00472 
00473 int FedmIscTagHandler_ISO14443_4_MIFARE_DESFire_FlexSoftCrypto::AbortTransaction( unsigned char ucDataManipulationFlags )
00474 {
00475         unsigned char RFU = 0x00;
00476         return m_pParent->m_pImpl_C3->AbortTransaction(0x00, RFU, RFU, ucDataManipulationFlags);
00477 }
00478 
00479 #endif // #if !defined(_FEDM_NO_TAG_HANDLER_ISO14443)


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