pn533.h (9815c7cf22daceabfb919ddcd6f2c80e049c1fbc) pn533.h (dd7bedcd2673e4c8957d15d7e6e649fc6fa40206)
1/*
2 * Driver for NXP PN533 NFC Chip
3 *
4 * Copyright (C) 2011 Instituto Nokia de Tecnologia
5 * Copyright (C) 2012-2013 Tieto Poland
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by

--- 7 unchanged lines hidden (view full) ---

16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, see <http://www.gnu.org/licenses/>.
19 */
20
21#define PN533_DEVICE_STD 0x1
22#define PN533_DEVICE_PASORI 0x2
23#define PN533_DEVICE_ACR122U 0x3
1/*
2 * Driver for NXP PN533 NFC Chip
3 *
4 * Copyright (C) 2011 Instituto Nokia de Tecnologia
5 * Copyright (C) 2012-2013 Tieto Poland
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by

--- 7 unchanged lines hidden (view full) ---

16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, see <http://www.gnu.org/licenses/>.
19 */
20
21#define PN533_DEVICE_STD 0x1
22#define PN533_DEVICE_PASORI 0x2
23#define PN533_DEVICE_ACR122U 0x3
24#define PN533_DEVICE_PN532 0x4
24
25#define PN533_ALL_PROTOCOLS (NFC_PROTO_JEWEL_MASK | NFC_PROTO_MIFARE_MASK |\
26 NFC_PROTO_FELICA_MASK | NFC_PROTO_ISO14443_MASK |\
27 NFC_PROTO_NFC_DEP_MASK |\
28 NFC_PROTO_ISO14443_B_MASK)
29
30#define PN533_NO_TYPE_B_PROTOCOLS (NFC_PROTO_JEWEL_MASK | \
31 NFC_PROTO_MIFARE_MASK | \

--- 36 unchanged lines hidden (view full) ---

68#define PN533_STD_FRAME_IDENTIFIER(f) (f->data[0]) /* TFI */
69#define PN533_STD_FRAME_DIR_OUT 0xD4
70#define PN533_STD_FRAME_DIR_IN 0xD5
71
72/* PN533 Commands */
73#define PN533_FRAME_CMD(f) (f->data[1])
74
75#define PN533_CMD_GET_FIRMWARE_VERSION 0x02
25
26#define PN533_ALL_PROTOCOLS (NFC_PROTO_JEWEL_MASK | NFC_PROTO_MIFARE_MASK |\
27 NFC_PROTO_FELICA_MASK | NFC_PROTO_ISO14443_MASK |\
28 NFC_PROTO_NFC_DEP_MASK |\
29 NFC_PROTO_ISO14443_B_MASK)
30
31#define PN533_NO_TYPE_B_PROTOCOLS (NFC_PROTO_JEWEL_MASK | \
32 NFC_PROTO_MIFARE_MASK | \

--- 36 unchanged lines hidden (view full) ---

69#define PN533_STD_FRAME_IDENTIFIER(f) (f->data[0]) /* TFI */
70#define PN533_STD_FRAME_DIR_OUT 0xD4
71#define PN533_STD_FRAME_DIR_IN 0xD5
72
73/* PN533 Commands */
74#define PN533_FRAME_CMD(f) (f->data[1])
75
76#define PN533_CMD_GET_FIRMWARE_VERSION 0x02
77#define PN533_CMD_SAM_CONFIGURATION 0x14
76#define PN533_CMD_RF_CONFIGURATION 0x32
77#define PN533_CMD_IN_DATA_EXCHANGE 0x40
78#define PN533_CMD_IN_COMM_THRU 0x42
79#define PN533_CMD_IN_LIST_PASSIVE_TARGET 0x4A
80#define PN533_CMD_IN_ATR 0x50
81#define PN533_CMD_IN_RELEASE 0x52
82#define PN533_CMD_IN_JUMP_FOR_DEP 0x56
83

--- 152 unchanged lines hidden ---
78#define PN533_CMD_RF_CONFIGURATION 0x32
79#define PN533_CMD_IN_DATA_EXCHANGE 0x40
80#define PN533_CMD_IN_COMM_THRU 0x42
81#define PN533_CMD_IN_LIST_PASSIVE_TARGET 0x4A
82#define PN533_CMD_IN_ATR 0x50
83#define PN533_CMD_IN_RELEASE 0x52
84#define PN533_CMD_IN_JUMP_FOR_DEP 0x56
85

--- 152 unchanged lines hidden ---