2 * Copyright (C) 2010 NXP Semiconductors
\r
4 * Licensed under the Apache License, Version 2.0 (the "License");
\r
5 * you may not use this file except in compliance with the License.
\r
6 * You may obtain a copy of the License at
\r
8 * http://www.apache.org/licenses/LICENSE-2.0
\r
10 * Unless required by applicable law or agreed to in writing, software
\r
11 * distributed under the License is distributed on an "AS IS" BASIS,
\r
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
13 * See the License for the specific language governing permissions and
\r
14 * limitations under the License.
\r
18 * \file phLibNfc_ndef_raw.h
\r
20 * Project: NFC-FRI 1.1
\r
22 * $Workfile:: phLibNfc_1.1.h $
\r
24 * $Author: ing07299 $
\r
28 #ifndef PHLIBNFC_NDEF_RAW_H
\r
29 #define PHLIBNFC_NDEF_RAW_H
\r
31 /*Check for type of NDEF Calls*/
\r
32 typedef enum phLibNfc_Last_Call{
\r
37 #ifdef LIBNFC_READONLY_NDEF
\r
39 #endif /* #ifdef LIBNFC_READONLY_NDEF */
\r
41 } phLibNfc_Last_Call_t;
\r
43 #define TAG_MIFARE 0x01
\r
44 #define TAG_FELICA 0x02
\r
45 #define TAG_JEWEL 0x04
\r
46 #define TAG_ISO14443_4A 0x08
\r
47 #define TAG_ISO14443_4B 0x10
\r
48 #define TAG_NFC_IP1 0x20
\r
50 #define NDEF_READ_TIMER_TIMEOUT 60U
\r
51 #define CHK_NDEF_TIMER_TIMEOUT 60U
\r
52 #define NDEF_SENDRCV_BUF_LEN 252U
\r
53 #define NDEF_TEMP_RECV_LEN 256U
\r
54 #define NDEF_MIFARE_UL_LEN 46U
\r
55 #define NDEF_FELICA_LEN 0U/*len to be set when supported*/
\r
56 #define NDEF_JEWEL_TOPAZ_LEN 0U
\r
57 #define NDEF_ISO14443_4A_LEN 4096U
\r
58 #define NDEF_ISO14443_4B_LEN 0U
\r
59 #define NDEF_MIFARE_4K_LEN 3356U
\r
60 #define NDEF_MIFARE_1K_LEN 716U
\r
61 #define MIFARE_STD_DEFAULT_KEY {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}
\r
62 #define ISO_SAK_VALUE 0x20U
\r
65 #define UNKNOWN_BLOCK_ADDRESS 0xFF /**<Unknown BLOCK address>*/
\r
66 #define SESSION_OPEN 0x01
\r
69 extern void phLibNfc_Ndef_Init(void);
\r
70 extern void phLibNfc_Ndef_DeInit(void);
\r
71 extern phLibNfc_Ndef_Info_t NdefInfo;
\r
72 extern phFriNfc_NdefRecord_t *pNdefRecord;
\r