1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
/*
* 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,
#ifdef LIBNFC_READONLY_NDEF
NdefReadOnly,
#endif /* #ifdef LIBNFC_READONLY_NDEF */
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
|