summaryrefslogtreecommitdiffstats
path: root/src/phLibNfc_ndef_raw.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/phLibNfc_ndef_raw.h')
-rw-r--r--src/phLibNfc_ndef_raw.h72
1 files changed, 72 insertions, 0 deletions
diff --git a/src/phLibNfc_ndef_raw.h b/src/phLibNfc_ndef_raw.h
new file mode 100644
index 0000000..ac31f72
--- /dev/null
+++ b/src/phLibNfc_ndef_raw.h
@@ -0,0 +1,72 @@
+/*
+ * Copyright (C) 2010 NXP Semiconductors
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/*!
+ * \file phLibNfc_ndef_raw.h
+ *
+ * Project: NFC-FRI 1.1
+ *
+ * $Workfile:: phLibNfc_1.1.h $
+ * $Modtime:: $
+ * $Author: ing07299 $
+ * $Revision: 1.15 $
+ *
+ */
+#ifndef PHLIBNFC_NDEF_RAW_H
+#define PHLIBNFC_NDEF_RAW_H
+
+/*Check for type of NDEF Calls*/
+typedef enum phLibNfc_Last_Call{
+ ChkNdef = 0x00,
+ NdefRd,
+ NdefWr,
+ NdefFmt,
+ RawTrans
+} phLibNfc_Last_Call_t;
+
+#define TAG_MIFARE 0x01
+#define TAG_FELICA 0x02
+#define TAG_JEWEL 0x04
+#define TAG_ISO14443_4A 0x08
+#define TAG_ISO14443_4B 0x10
+#define TAG_NFC_IP1 0x20
+
+#define NDEF_READ_TIMER_TIMEOUT 60U
+#define CHK_NDEF_TIMER_TIMEOUT 60U
+#define NDEF_SENDRCV_BUF_LEN 252U
+#define NDEF_TEMP_RECV_LEN 256U
+#define NDEF_MIFARE_UL_LEN 46U
+#define NDEF_FELICA_LEN 0U/*len to be set when supported*/
+#define NDEF_JEWEL_TOPAZ_LEN 0U
+#define NDEF_ISO14443_4A_LEN 4096U
+#define NDEF_ISO14443_4B_LEN 0U
+#define NDEF_MIFARE_4K_LEN 3356U
+#define NDEF_MIFARE_1K_LEN 716U
+#define MIFARE_STD_DEFAULT_KEY {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}
+#define ISO_SAK_VALUE 0x20U
+
+
+#define UNKNOWN_BLOCK_ADDRESS 0xFF /**<Unknown BLOCK address>*/
+#define SESSION_OPEN 0x01
+
+
+extern void phLibNfc_Ndef_Init(void);
+extern void phLibNfc_Ndef_DeInit(void);
+extern phLibNfc_Ndef_Info_t NdefInfo;
+extern phFriNfc_NdefRecord_t *pNdefRecord;
+
+#endif
+