summaryrefslogtreecommitdiffstats
path: root/src/phFriNfc_NdefMap.c
Commit message (Collapse)AuthorAgeFilesLines
* Patch to support MIFARE with SAK 0x01Sunil Jogi2012-04-021-1/+2
| | | | Change-Id: Ifb1389d428855c2eea99390790af13f28571097a
* Fix one coding error of using a temporary variable in the global structure ↵Jack Ren2012-03-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NdefMap In the following code: the local variable PacketDataLength is a local variable in stack, but used in the ndefMap which is a global structure. When the function phFriNfc_NdefMap_EraseNdef( ) returns, the PacketDataLength will be freed, too. If it is used later via the pointer in NdefMap, will cause some of potential issues. Fix it by re-define it as static. NFCSTATUS phFriNfc_NdefMap_EraseNdef(phFriNfc_NdefMap_t *NdefMap) { NFCSTATUS status = NFCSTATUS_PENDING; static uint8_t PktData[3] = PH_FRINFC_NDEFMAP_EMPTY_NDEF_MSG; uint8_t MemOffset = PH_FRINFC_NDEFMAP_SEEK_BEGIN; uint32_t PacketDataLength = sizeof(PktData); ... /* Mifare card selected. Call Mifare Write */ status = phFriNfc_NdefMap_WrNdef( NdefMap, PktData, &PacketDataLength, MemOffset); break; ... } Change-Id: Iee278fe39749619aa44c620138eae85a46f6e4a5 Signed-off-by: Dejan REBRACA <dejanx.rebraca@intel.com> Signed-off-by: Ken Wahid <kenx.wahid@intel.com> Signed-off-by: Jack Ren <jack.ren@intel.com> Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
* Support formatting / makeReadOnly() of NDEF on ICODE.Martijn Coenen2011-02-251-11/+9
| | | | Change-Id: I2a7a185ead5de8f2b165c81dcc8ab8fb46c1ddc0
* Added support for NDEF on ICODE.Martijn Coenen2011-02-251-0/+76
| | | | | | This patch allows reading and writing of NDEF messages on ICODE tags. Change-Id: I43b4845c898c2bf268f609a5a81e991460059ff6
* Implement makeReadOnly() for dynamic T1T/T2T.Martijn Coenen2011-01-181-0/+5
| | | | | | | | The NFC Forum Type 1 Tag and Type 2 Tag specification allows for tags with a dynamic memory layout. Support for making tags with the dynamic layout readonly has been added in this patch. Change-Id: I5bc8912d80f448fdea95e1ee21631c0f186ad79a
* Actually set the lock bits for static T1T and T2T.Martijn Coenen2011-01-041-4/+4
| | | | Change-Id: I594e588fb7f0f8151e54ac872640bb8d3e19bfce
* Add support for makeLowLevelReadonly() in libnfc.Martijn Coenen2010-12-161-0/+41
| | | | | | | | Implemented for T1T and T2T. There's also added code for formatting Desfire EV1, but it will not be used by the current implementation (DesFIRE doesn't have NdefFormatable tech). Change-Id: Iec1b85b560fbf800291fd307b56ab84328737635
* This patch allows type 4 tag v2 ndef to be detected properly.Jan Brands2010-12-051-130/+142
| | | | | | Same as Change-Id: I414e7864bdc654c3b9e1b459832bb8e95ea9c51a Change-Id: I0a0119349419bb4f1031ab683e40dd3be7b26f5f
* Initial libnfc checkinNick Pelly2010-09-231-0/+1363
Source: Trusted_NFC_Device_Host_AA03.01e02_google.zip code drop (23-Sep-2010) Change-Id: Ie47f18423f949a8d3e0815d13f55c814312add24 Signed-off-by: Nick Pelly <npelly@google.com>