diff options
author | Sunil Jogi <sunil.jogi@nxp.com> | 2012-01-16 09:13:58 -0800 |
---|---|---|
committer | Martijn Coenen <maco@google.com> | 2012-04-02 10:35:35 -0700 |
commit | c3a87316a08d782d8b336d2d9663b47a4ec37d21 (patch) | |
tree | b732cb0a09683225bf058bc4ef430b9c157f3e56 /src/phFriNfc_NdefMap.h | |
parent | 40734e7599249717860f7aeabda494e1bcd86ffe (diff) | |
download | external_libnfc-nxp-c3a87316a08d782d8b336d2d9663b47a4ec37d21.zip external_libnfc-nxp-c3a87316a08d782d8b336d2d9663b47a4ec37d21.tar.gz external_libnfc-nxp-c3a87316a08d782d8b336d2d9663b47a4ec37d21.tar.bz2 |
Added support for tearing recovery for MIFARE Classic Readonly
When readonly is interrupted in between next readonly call make remaining
sectors readonly and return true. If all sectors are readonly then call to
readonly returns error.
Change-Id: Id47a77198b41d69b743f24259849e943954c7a58
Diffstat (limited to 'src/phFriNfc_NdefMap.h')
-rw-r--r-- | src/phFriNfc_NdefMap.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/phFriNfc_NdefMap.h b/src/phFriNfc_NdefMap.h index b559d4d..4c4ab45 100644 --- a/src/phFriNfc_NdefMap.h +++ b/src/phFriNfc_NdefMap.h @@ -446,6 +446,8 @@ typedef struct phFriNfc_MifareStdCont uint8_t SectorIndex; /** to read the access bits of each sector */ uint8_t ReadAcsBitFlag; + /** Flag to check if Acs bit was written in this call */ + uint8_t WriteAcsBitFlag; /** Buffer to store 16 bytes */ uint8_t Buffer[PH_FRINFC_NDEFMAP_MIFARESTD_RDWR_SIZE]; /** to store the AIDs of Mifare 1k or 4k */ |