new xadow NFC module
Dependents: xadow_smartstrap_for_pebble
Revision 1:27242e2abd99, committed 2015-11-06
- Comitter:
- KillingJacky
- Date:
- Fri Nov 06 02:52:37 2015 +0000
- Parent:
- 0:9d116099a88d
- Commit message:
- **removed emulation for tag because the resources limit
Changed in this revision
XadowNFC.cpp | Show annotated file Show diff for this revision Revisions of this file |
XadowNFC.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/XadowNFC.cpp Wed Nov 04 09:59:37 2015 +0000 +++ b/XadowNFC.cpp Fri Nov 06 02:52:37 2015 +0000 @@ -125,18 +125,5 @@ i2c.write(NFC_DEVICE_ADDR, cmd+1, 1); } -void nfc_emulate_init(unsigned char *id) -{ - unsigned char i; - - cmd[0] = NFC_EMULATE_INIT_ID; - cmd[1] = 3; - i2c.write(NFC_DEVICE_ADDR, cmd, 1); - i2c.write(NFC_DEVICE_ADDR, cmd+1, 1); - for(i=0;i<3;i++) - { - //dlc_i2c_send_byte(*(id + i)); - i2c.write(NFC_DEVICE_ADDR, (char *)(id + i), 1); - } -} +
--- a/XadowNFC.h Wed Nov 04 09:59:37 2015 +0000 +++ b/XadowNFC.h Fri Nov 06 02:52:37 2015 +0000 @@ -34,8 +34,6 @@ \def NFC_ADAPTER_ERASE_ID The id of NFC adapter to erase NDEF message - \def NFC_EMULATE_INIT_ID - The id of NFC emulate as a tag */ /* @@ -54,7 +52,6 @@ #define NFC_ADAPTER_READ_ID 3 // #define NFC_ADAPTER_WRITE_ID 4 // #define NFC_ADAPTER_ERASE_ID 5 // -#define NFC_EMULATE_INIT_ID 6 // /** * \brief Get the status of the NFC device. @@ -106,14 +103,6 @@ */ void nfc_adapter_erase(void); -/** - * \brief Emulate NFC as a target - * - * \param [in] *id the target uid, the first data is fixed, so the format is 0x??, 0x??, 0x??(3 bytes) - * \return Return Null. - * - */ -void nfc_emulate_init(unsigned char *id); #endif