Rename nfc-mftool to nfc-mfclassic.
Rename nfc-mfultool to nfc-mfultralight. Remove compilation warnings due to missing includes. "make distclean" now clean Makefile.in.
This commit is contained in:
parent
cd43b758d4
commit
c6a7e2bf47
12 changed files with 31 additions and 19 deletions
|
@ -15,3 +15,4 @@ html-am : Doxyfile
|
||||||
|
|
||||||
.PHONY: html
|
.PHONY: html
|
||||||
endif
|
endif
|
||||||
|
DISTCLEANFILES = Makefile.in
|
||||||
|
|
|
@ -27,3 +27,4 @@ if LIBUSB_ENABLED
|
||||||
libnfc_la_LIBADD += @LIBUSB_LIBS@
|
libnfc_la_LIBADD += @LIBUSB_LIBS@
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
DISTCLEANFILES = Makefile.in
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
SET(EXAMPLES-SOURCES nfc-list nfc-mftool nfc-mfultool nfcip-initiator nfcip-target nfc-anticol nfc-emulate nfc-relay)
|
SET(EXAMPLES-SOURCES nfc-list nfc-mfclassic nfc-mfultralight nfcip-initiator nfcip-target nfc-anticol nfc-emulate nfc-relay)
|
||||||
|
|
||||||
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../)
|
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../)
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
bin_PROGRAMS = nfc-anticol nfc-list nfc-mftool nfc-mfultool nfc-relay nfc-emulate nfcip-target nfcip-initiator
|
bin_PROGRAMS = nfc-anticol nfc-list nfc-mfclassic nfc-mfultralight nfc-relay nfc-emulate nfcip-target nfcip-initiator
|
||||||
|
|
||||||
# set the include path found by configure
|
# set the include path found by configure
|
||||||
INCLUDES= $(all_includes)
|
INCLUDES= $(all_includes)
|
||||||
|
@ -14,11 +14,11 @@ nfc_anticol_LDADD = $(top_builddir)/src/libnfc.la
|
||||||
nfc_list_SOURCES = nfc-list.c
|
nfc_list_SOURCES = nfc-list.c
|
||||||
nfc_list_LDADD = $(top_builddir)/src/libnfc.la
|
nfc_list_LDADD = $(top_builddir)/src/libnfc.la
|
||||||
|
|
||||||
nfc_mfultool_SOURCES = nfc-mfultool.c mifareultag.h
|
nfc_mfultralight_SOURCES = nfc-mfultralight.c mifareultag.h
|
||||||
nfc_mfultool_LDADD = $(top_builddir)/src/libnfc.la
|
nfc_mfultralight_LDADD = $(top_builddir)/src/libnfc.la
|
||||||
|
|
||||||
nfc_mftool_SOURCES = nfc-mftool.c mifaretag.h
|
nfc_mfclassic_SOURCES = nfc-mfclassic.c mifaretag.h
|
||||||
nfc_mftool_LDADD = $(top_builddir)/src/libnfc.la
|
nfc_mfclassic_LDADD = $(top_builddir)/src/libnfc.la
|
||||||
|
|
||||||
nfc_relay_SOURCES = nfc-relay.c
|
nfc_relay_SOURCES = nfc-relay.c
|
||||||
nfc_relay_LDADD = $(top_builddir)/src/libnfc.la
|
nfc_relay_LDADD = $(top_builddir)/src/libnfc.la
|
||||||
|
@ -32,7 +32,8 @@ nfcip_target_LDADD = $(top_builddir)/src/libnfc.la
|
||||||
nfcip_initiator_SOURCES = nfcip-initiator.c
|
nfcip_initiator_SOURCES = nfcip-initiator.c
|
||||||
nfcip_initiator_LDADD = $(top_builddir)/src/libnfc.la
|
nfcip_initiator_LDADD = $(top_builddir)/src/libnfc.la
|
||||||
|
|
||||||
dist_man_MANS = nfc-anticol.1 nfc-emulate.1 nfc-list.1 nfc-mftool.1 nfc-mfultool.1 nfc-relay.1
|
dist_man_MANS = nfc-anticol.1 nfc-emulate.1 nfc-list.1 nfc-mfclassic.1 nfc-mfultralight.1 nfc-relay.1
|
||||||
#dist_man_MANS = $(man_MANS)
|
#dist_man_MANS = $(man_MANS)
|
||||||
#EXTRA_DIST = $(man_MANS)
|
#EXTRA_DIST = $(man_MANS)
|
||||||
|
|
||||||
|
DISTCLEANFILES = Makefile.in
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
#include "libnfc.h"
|
#include "libnfc.h"
|
||||||
|
|
||||||
#include "messages.h"
|
#include "messages.h"
|
||||||
|
#include "bitutils.h"
|
||||||
|
|
||||||
#define SAK_FLAG_ATS_SUPPORTED 0x20
|
#define SAK_FLAG_ATS_SUPPORTED 0x20
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,9 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "libnfc.h"
|
#include "libnfc.h"
|
||||||
|
|
||||||
#include "messages.h"
|
#include "messages.h"
|
||||||
|
#include "bitutils.h"
|
||||||
|
|
||||||
static byte_t abtRecv[MAX_FRAME_LEN];
|
static byte_t abtRecv[MAX_FRAME_LEN];
|
||||||
static size_t szRecvBits;
|
static size_t szRecvBits;
|
||||||
|
|
|
@ -28,7 +28,9 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "libnfc.h"
|
#include "libnfc.h"
|
||||||
|
|
||||||
#include "messages.h"
|
#include "messages.h"
|
||||||
|
#include "bitutils.h"
|
||||||
|
|
||||||
static dev_info* pdi;
|
static dev_info* pdi;
|
||||||
static byte_t abtFelica[5] = { 0x00, 0xff, 0xff, 0x00, 0x00 };
|
static byte_t abtFelica[5] = { 0x00, 0xff, 0xff, 0x00, 0x00 };
|
||||||
|
|
|
@ -1,22 +1,22 @@
|
||||||
.TH NFC-MFTOOL 1 "Oct 06, 2009"
|
.TH NFC-MFCLASSIC 1 "Nov 02, 2009"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
nfc-mftool \- Mifare Classic command line tool based on libnfc
|
nfc-mfclassic \- MIFARE Classic command line tool based on libnfc
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.B nfc-mftool
|
.B nfc-mfclassic
|
||||||
.RI \fR\fBr\fR|\fBw\fR
|
.RI \fR\fBr\fR|\fBw\fR
|
||||||
.RI \fR\fBa\fR|\fBb\fR
|
.RI \fR\fBa\fR|\fBb\fR
|
||||||
.IR DUMP
|
.IR DUMP
|
||||||
.IR [KEYS]
|
.IR [KEYS]
|
||||||
|
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
.B nfc-mftool
|
.B nfc-mfclassic
|
||||||
is a Mifare Classic tool that allow to read or write
|
is a MIFARE Classic tool that allow to read or write
|
||||||
.IR DUMP
|
.IR DUMP
|
||||||
file using Mifare keys provide in
|
file using Mifare keys provide in
|
||||||
.IR KEYS
|
.IR KEYS
|
||||||
file.
|
file.
|
||||||
|
|
||||||
The Mifare Classic tag is one of the most widely used RFID tags.
|
MIFARE Classic tag is one of the most widely used RFID tags.
|
||||||
The firmware in the NFC controller supports authenticating, reading and writing to/from Mifare Classic tags.
|
The firmware in the NFC controller supports authenticating, reading and writing to/from Mifare Classic tags.
|
||||||
This tool demonstrate the speed of this library and its easy-of-use.
|
This tool demonstrate the speed of this library and its easy-of-use.
|
||||||
It possible to read and write the complete content of a Mifare Classic 4KB tag within 1 second.
|
It possible to read and write the complete content of a Mifare Classic 4KB tag within 1 second.
|
|
@ -1,18 +1,18 @@
|
||||||
.TH NFC-MFTOOL 1 "Oct 06, 2009"
|
.TH NFC-MFULTRALIGHT 1 "Nov 02, 2009"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
nfc-mfultool \- Mifare Ultralight command line tool based on libnfc
|
nfc-mfultralight \- MIFARE Ultralight command line tool based on libnfc
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.B nfc-mfultool
|
.B nfc-mfultralight
|
||||||
.RI \fR\fBr\fR|\fBw\fR
|
.RI \fR\fBr\fR|\fBw\fR
|
||||||
.IR DUMP
|
.IR DUMP
|
||||||
|
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
.B nfc-mfultool
|
.B nfc-mfultralight
|
||||||
is a Mifare Ultralight tool that allow to read or write
|
is a MIFARE Ultralight tool that allow to read or write
|
||||||
.IR DUMP
|
.IR DUMP
|
||||||
file.
|
file.
|
||||||
|
|
||||||
The Mifare Ultralight tag is one of the most widely used RFID tags for ticketing application.
|
MIFARE Ultralight tag is one of the most widely used RFID tags for ticketing application.
|
||||||
It uses a binary Mifare Dump file (MFD) to store data for all sectors.
|
It uses a binary Mifare Dump file (MFD) to store data for all sectors.
|
||||||
|
|
||||||
.SH OPTIONS
|
.SH OPTIONS
|
|
@ -31,7 +31,9 @@
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
#include "libnfc.h"
|
#include "libnfc.h"
|
||||||
|
|
||||||
#include "mifareultag.h"
|
#include "mifareultag.h"
|
||||||
|
#include "bitutils.h"
|
||||||
|
|
||||||
static dev_info* pdi;
|
static dev_info* pdi;
|
||||||
static tag_info ti;
|
static tag_info ti;
|
|
@ -27,7 +27,9 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "libnfc.h"
|
#include "libnfc.h"
|
||||||
|
|
||||||
#include "messages.h"
|
#include "messages.h"
|
||||||
|
#include "bitutils.h"
|
||||||
|
|
||||||
static byte_t abtReaderRx[MAX_FRAME_LEN];
|
static byte_t abtReaderRx[MAX_FRAME_LEN];
|
||||||
static byte_t abtReaderRxPar[MAX_FRAME_LEN];
|
static byte_t abtReaderRxPar[MAX_FRAME_LEN];
|
||||||
|
|
Loading…
Add table
Reference in a new issue