code
stringlengths
1
2.01M
repo_name
stringlengths
3
62
path
stringlengths
1
267
language
stringclasses
231 values
license
stringclasses
13 values
size
int64
1
2.01M
/*- * Free/Libre Near Field Communication (NFC) library * * Libnfc historical contributors: * Copyright (C) 2009 Roel Verdult * Copyright (C) 2009-2013 Romuald Conty * Copyright (C) 2010-2012 Romain Tartière * Copyright (C) 2010-2013 Philippe Teuwen * Copyright (C) 2012-2013 Ludovic Rousseau * See AUTHORS...
1060840728-lvgang
libnfc/buses/spi.h
C
lgpl
2,160
/*- * Free/Libre Near Field Communication (NFC) library * * Libnfc historical contributors: * Copyright (C) 2009 Roel Verdult * Copyright (C) 2009-2013 Romuald Conty * Copyright (C) 2010-2012 Romain Tartière * Copyright (C) 2010-2013 Philippe Teuwen * Copyright (C) 2012-2013 Ludovic Rousseau * See AUTHORS...
1060840728-lvgang
libnfc/buses/usbbus.h
C
lgpl
1,600
/*- * Free/Libre Near Field Communication (NFC) library * * Libnfc historical contributors: * Copyright (C) 2009 Roel Verdult * Copyright (C) 2009-2013 Romuald Conty * Copyright (C) 2010-2012 Romain Tarti?re * Copyright (C) 2010-2013 Philippe Teuwen * Copyright (C) 2012-2013 Ludovic Rousseau * See AUTHORS...
1060840728-lvgang
libnfc/buses/i2c.h
C
lgpl
1,813
/* empty source code file */ #include <stdio.h>
1060840728-lvgang
libnfc/buses/empty.c
C
lgpl
48
/*- * Free/Libre Near Field Communication (NFC) library * * Libnfc historical contributors: * Copyright (C) 2009 Roel Verdult * Copyright (C) 2009-2013 Romuald Conty * Copyright (C) 2010-2012 Romain Tarti?re * Copyright (C) 2010-2013 Philippe Teuwen * Copyright (C) 2012-2013 Ludovic Rousseau * See AUTHORS...
1060840728-lvgang
libnfc/buses/i2c.c
C
lgpl
5,624
/*- * Free/Libre Near Field Communication (NFC) library * * Libnfc historical contributors: * Copyright (C) 2009 Roel Verdult * Copyright (C) 2009-2013 Romuald Conty * Copyright (C) 2010-2012 Romain Tartière * Copyright (C) 2010-2013 Philippe Teuwen * Copyright (C) 2012-2013 Ludovic Rousseau * See AUTHORS...
1060840728-lvgang
libnfc/buses/uart.c
C
lgpl
11,334
# set the include path found by configure AM_CPPFLAGS = $(all_includes) $(LIBNFC_CFLAGS) noinst_LTLIBRARIES = libnfcbuses.la libnfcbuses_la_SOURCES = empty.c libnfcbuses_la_CFLAGS = -I$(top_srcdir)/libnfc libnfcbuses_la_LIBADD = EXTRA_DIST = if SPI_ENABLED libnfcbuses_la_SOURCES += spi.c spi.h libnfcbuses_la_CFLAGS...
1060840728-lvgang
libnfc/buses/Makefile.am
Makefile
lgpl
858
/*- * Free/Libre Near Field Communication (NFC) library * * Libnfc historical contributors: * Copyright (C) 2009 Roel Verdult * Copyright (C) 2009-2013 Romuald Conty * Copyright (C) 2010-2012 Romain Tartière * Copyright (C) 2010-2013 Philippe Teuwen * Copyright (C) 2012-2013 Ludovic Rousseau * See AUTHORS...
1060840728-lvgang
libnfc/buses/uart.h
C
lgpl
2,002
/*- * Free/Libre Near Field Communication (NFC) library * * Libnfc historical contributors: * Copyright (C) 2009 Roel Verdult * Copyright (C) 2009-2013 Romuald Conty * Copyright (C) 2010-2012 Romain Tartière * Copyright (C) 2010-2013 Philippe Teuwen * Copyright (C) 2012-2013 Ludovic Rousseau * See AUTHORS...
1060840728-lvgang
libnfc/buses/spi.c
C
lgpl
7,388
/*- * Free/Libre Near Field Communication (NFC) library * * Libnfc historical contributors: * Copyright (C) 2009 Roel Verdult * Copyright (C) 2009-2013 Romuald Conty * Copyright (C) 2010-2012 Romain Tartière * Copyright (C) 2010-2013 Philippe Teuwen * Copyright (C) 2012-2013 Ludovic Rousseau * See AUTHORS...
1060840728-lvgang
libnfc/buses/usbbus.c
C
lgpl
2,669
/*- * Free/Libre Near Field Communication (NFC) library * * Libnfc historical contributors: * Copyright (C) 2009 Roel Verdult * Copyright (C) 2009-2013 Romuald Conty * Copyright (C) 2010-2012 Romain Tartière * Copyright (C) 2010-2013 Philippe Teuwen * Copyright (C) 2012-2013 Ludovic Rousseau * See AUTHORS...
1060840728-lvgang
libnfc/drivers.h
C
lgpl
1,305
PROJECT(libnfc C) CMAKE_MINIMUM_REQUIRED(VERSION 2.6) SET(VERSION_MAJOR "1") SET(VERSION_MINOR "7") SET(VERSION_PATCH "1") SET(VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}") SET(PACKAGE_NAME "libnfc") SET(PACKAGE_VERSION ${VERSION}) SET(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}") # config.h I...
1060840728-lvgang
CMakeLists.txt
CMake
lgpl
6,734
dnl Check for LIBUSB dnl On success, HAVE_LIBUSB is set to 1 and PKG_CONFIG_REQUIRES is filled when dnl libusb is found using pkg-config AC_DEFUN([LIBNFC_CHECK_LIBUSB], [ if test x"$libusb_required" = "xyes"; then HAVE_LIBUSB=0 AC_ARG_WITH([libusb-win32], [AS_HELP_STRING([--with-libusb-win32], [use ...
1060840728-lvgang
m4/libnfc_check_libusb.m4
M4Sugar
lgpl
2,471
dnl Check for PCSC presence (if required) dnl On success, HAVE_PCSC is set to 1 and PKG_CONFIG_REQUIRES is filled when dnl libpcsclite is found using pkg-config AC_DEFUN([LIBNFC_CHECK_PCSC], [ if test "x$pcsc_required" = "xyes"; then PKG_CHECK_MODULES([libpcsclite], [libpcsclite], [HAVE_PCSC=1], [HAVE_PCSC=0]) ...
1060840728-lvgang
m4/libnfc_check_pcsc.m4
M4Sugar
lgpl
1,226
dnl Based on wojtekka's m4 from http://wloc.wsinf.edu.pl/~kklos/ekg-20080219/m4/readline.m4 AC_DEFUN([AC_CHECK_READLINE],[ AC_SUBST(READLINE_LIBS) AC_SUBST(READLINE_INCLUDES) AC_ARG_WITH(readline, [[ --with-readline[=dir] Compile with readline/locate base dir]], if test "x$withval" = "xno" ; then ...
1060840728-lvgang
m4/readline.m4
M4Sugar
lgpl
1,650
dnl Handle drivers arguments list AC_DEFUN([LIBNFC_ARG_WITH_DRIVERS], [ AC_MSG_CHECKING(which drivers to build) AC_ARG_WITH(drivers, AS_HELP_STRING([--with-drivers=DRIVERS], [Use a custom driver set, where DRIVERS is a coma-separated list of drivers to build support for. Available drivers are: 'acr122_pcsc', 'ac...
1060840728-lvgang
m4/libnfc_drivers.m4
M4Sugar
lgpl
5,293
/*- * Free/Libre Near Field Communication (NFC) library * * Libnfc historical contributors: * Copyright (C) 2009 Roel Verdult * Copyright (C) 2009-2013 Romuald Conty * Copyright (C) 2010-2012 Romain Tartière * Copyright (C) 2010-2013 Philippe Teuwen * Copyright (C) 2012-2013 Ludovic Rousseau * See AUTHORS...
1060840728-lvgang
utils/nfc-jewel.c
C
lgpl
8,766
/*- * Free/Libre Near Field Communication (NFC) library * * Libnfc historical contributors: * Copyright (C) 2009 Roel Verdult * Copyright (C) 2009-2013 Romuald Conty * Copyright (C) 2010-2012 Romain Tartière * Copyright (C) 2010-2013 Philippe Teuwen * Copyright (C) 2012-2013 Ludovic Rousseau * See AUTHORS...
1060840728-lvgang
utils/nfc-emulate-forum-tag4.c
C
lgpl
13,040
/*- * Free/Libre Near Field Communication (NFC) library * * Libnfc historical contributors: * Copyright (C) 2009 Roel Verdult * Copyright (C) 2009-2013 Romuald Conty * Copyright (C) 2010-2012 Romain Tartière * Copyright (C) 2010-2013 Philippe Teuwen * Copyright (C) 2012-2013 Ludovic Rousseau * See AUTHORS...
1060840728-lvgang
utils/mifare.c
C
lgpl
5,362
.TH nfc-scan-device 1 "October 21, 2012" "libnfc" "NFC Utilities" .SH NAME nfc-scan-device \- Scan NFC devices .SH SYNOPSIS .B nfc-scan-device [ .I options ] .SH DESCRIPTION .B nfc-scan-device is a utility for listing any available device compliant with libnfc. It can optionnally display device's capabilities. .SH OPT...
1060840728-lvgang
utils/nfc-scan-device.1
Roff Manpage
lgpl
1,621
/*- * Free/Libre Near Field Communication (NFC) library * * Libnfc historical contributors: * Copyright (C) 2009 Roel Verdult * Copyright (C) 2009-2013 Romuald Conty * Copyright (C) 2010-2012 Romain Tartière * Copyright (C) 2010-2013 Philippe Teuwen * Copyright (C) 2012-2013 Ludovic Rousseau * See AUTHORS...
1060840728-lvgang
utils/jewel.c
C
lgpl
3,646
.TH nfc-jewel 1 "Feb 02, 2014" "libnfc" "NFC Utilities" .SH NAME nfc-jewel \- Jewel command line tool .SH SYNOPSIS .B nfc-jewel .RI \fR\fBr\fR|\fBw\fR .IR DUMP .SH DESCRIPTION .B nfc-jewel is a Jewel tool that allows one to read or write a tag data to/from a .IR DUMP file. Jewel tag by Broadcom, previously Innovision...
1060840728-lvgang
utils/nfc-jewel.1
Roff Manpage
lgpl
1,237
/*- * Free/Libre Near Field Communication (NFC) library * * Libnfc historical contributors: * Copyright (C) 2009 Roel Verdult * Copyright (C) 2009-2013 Romuald Conty * Copyright (C) 2010-2012 Romain Tartière * Copyright (C) 2010-2013 Philippe Teuwen * Copyright (C) 2012-2013 Ludovic Rousseau * See AUTHORS...
1060840728-lvgang
utils/nfc-relay-picc.c
C
lgpl
16,651
.TH nfc-read-forum-tag3 1 "November 22, 2011" "libnfc" "NFC Utilities" .SH NAME nfc-read-forum-tag3 \- Extract NDEF Message from a NFC Forum Tag Type 3 .SH SYNOPSIS .B nfc-read-forum-tag3 .RI [ .RI \fR\fB\-q\fR .RI ] .RI \fR\fB\-o\fR .IR FILE .SH DESCRIPTION .B nfc-read-forum-tag3 This utility extracts (if available) ...
1060840728-lvgang
utils/nfc-read-forum-tag3.1
Roff Manpage
lgpl
1,140
/*- * Free/Libre Near Field Communication (NFC) library * * Libnfc historical contributors: * Copyright (C) 2009 Roel Verdult * Copyright (C) 2009-2013 Romuald Conty * Copyright (C) 2010-2012 Romain Tartière * Copyright (C) 2010-2013 Philippe Teuwen * Copyright (C) 2012-2013 Ludovic Rousseau * See AUTHORS...
1060840728-lvgang
utils/nfc-read-forum-tag3.c
C
lgpl
12,569
SET(UTILS-SOURCES nfc-emulate-forum-tag4 nfc-jewel nfc-list nfc-mfclassic nfc-mfultralight nfc-read-forum-tag3 nfc-relay-picc nfc-scan-device ) ADD_LIBRARY(nfcutils STATIC nfc-utils.c ) TARGET_LINK_LIBRARIES(nfcutils nfc) # Examples FOREACH(source ${UTILS-SOURCES}) SET (TARGETS ${source}.c) I...
1060840728-lvgang
utils/CMakeLists.txt
CMake
lgpl
1,952
/*- * Free/Libre Near Field Communication (NFC) library * * Libnfc historical contributors: * Copyright (C) 2009 Roel Verdult * Copyright (C) 2009-2013 Romuald Conty * Copyright (C) 2010-2012 Romain Tartière * Copyright (C) 2010-2013 Philippe Teuwen * Copyright (C) 2012-2013 Ludovic Rousseau * See AUTHORS...
1060840728-lvgang
utils/mifare.h
C
lgpl
4,141
.Dd March 12, 2011 .Dt NFC-EMULATE-FORUM-TAG4 1 URM .Sh NAME .Nm nfc-emulate-forum-tag4 .Nd NFC Forum tag type 4 emulation command line demonstration tool .Sh SYNOPSIS .Nm .Op -1 .Op infile Op outfile .Sh DESCRIPTION .Nm is a demonstration tool that emulates a NFC Forum tag type 4 v2.0 (or v1.0) with NDEF content. .Pp...
1060840728-lvgang
utils/nfc-emulate-forum-tag4.1
Roff Manpage
lgpl
1,973
/*- * Free/Libre Near Field Communication (NFC) library * * Libnfc historical contributors: * Copyright (C) 2009 Roel Verdult * Copyright (C) 2009-2013 Romuald Conty * Copyright (C) 2010-2012 Romain Tartière * Copyright (C) 2010-2013 Philippe Teuwen * Copyright (C) 2012-2013 Ludovic Rousseau * See AUTHORS...
1060840728-lvgang
utils/nfc-utils.h
C
lgpl
3,396
/*- * Free/Libre Near Field Communication (NFC) library * * Libnfc historical contributors: * Copyright (C) 2009 Roel Verdult * Copyright (C) 2009-2013 Romuald Conty * Copyright (C) 2010-2012 Romain Tartière * Copyright (C) 2010-2013 Philippe Teuwen * Copyright (C) 2012-2013 Ludovic Rousseau * See AUTHORS...
1060840728-lvgang
utils/nfc-mfultralight.c
C
lgpl
8,762
.TH nfc-mfultralight 1 "Nov 02, 2009" "libnfc" "NFC Utilities" .SH NAME nfc-mfultralight \- MIFARE Ultralight command line tool .SH SYNOPSIS .B nfc-mfultralight .RI \fR\fBr\fR|\fBw\fR .IR DUMP .SH DESCRIPTION .B nfc-mfultralight is a MIFARE Ultralight tool that allows one to read or write a tag data to/from a .IR DUMP...
1060840728-lvgang
utils/nfc-mfultralight.1
Roff Manpage
lgpl
1,516
/*- * Free/Libre Near Field Communication (NFC) library * * Libnfc historical contributors: * Copyright (C) 2009 Roel Verdult * Copyright (C) 2009-2013 Romuald Conty * Copyright (C) 2010-2012 Romain Tartière * Copyright (C) 2010-2013 Philippe Teuwen * Copyright (C) 2012-2013 Ludovic Rousseau * See AUTHORS...
1060840728-lvgang
utils/nfc-list.c
C
lgpl
8,895
/*- * Free/Libre Near Field Communication (NFC) library * * Libnfc historical contributors: * Copyright (C) 2009 Roel Verdult * Copyright (C) 2009-2013 Romuald Conty * Copyright (C) 2010-2012 Romain Tartière * Copyright (C) 2010-2013 Philippe Teuwen * Copyright (C) 2012-2013 Ludovic Rousseau * See AUTHORS...
1060840728-lvgang
utils/jewel.h
C
lgpl
5,351
bin_PROGRAMS = \ nfc-emulate-forum-tag4 \ nfc-jewel \ nfc-list \ nfc-mfclassic \ nfc-mfultralight \ nfc-read-forum-tag3 \ nfc-relay-picc \ nfc-scan-device # set the include path found by configure AM_CPPFLAGS = $(all_includes) $(LIBNFC_CFLAGS) noinst_LTLIBRARIES = libnfcutils.la libnfcutils_la_SOURCE...
1060840728-lvgang
utils/Makefile.am
Makefile
lgpl
1,653
.TH nfc-relay-picc 1 "October 12, 2010" "libnfc" "NFC Utilities" .SH NAME nfc-relay-picc \- Relay demonstration tool for ISO14443-4 .SH SYNOPSIS .B nfc-relay-picc .SH DESCRIPTION .B nfc-relay-picc This tool requires two NFC devices. One device (configured as target) will emulate an ISO/IEC 14443-4 type A tag, while th...
1060840728-lvgang
utils/nfc-relay-picc.1
Roff Manpage
lgpl
2,103
.TH nfc-mfclassic 1 "Nov 02, 2009" "libnfc" "NFC Utilities" .SH NAME nfc-mfclassic \- MIFARE Classic command line tool .SH SYNOPSIS .B nfc-mfclassic .RI \fR\fBf\fR|\fR\fBr\fR|\fR\fBR\fR|\fBw\fR\fR|\fBW\fR .RI \fR\fBa\fR|\fR\fBA\fR|\fBb\fR\fR|\fBB\fR .IR DUMP .RI [ .IR KEYS .RI [\fR\fBf\fR] .RI ] .SH DESCRIPTION .B nfc...
1060840728-lvgang
utils/nfc-mfclassic.1
Roff Manpage
lgpl
3,057
/*- * Free/Libre Near Field Communication (NFC) library * * Libnfc historical contributors: * Copyright (C) 2009 Roel Verdult * Copyright (C) 2009-2013 Romuald Conty * Copyright (C) 2010-2012 Romain Tartière * Copyright (C) 2010-2013 Philippe Teuwen * Copyright (C) 2012-2013 Ludovic Rousseau * See AUTHORS...
1060840728-lvgang
utils/nfc-mfclassic.c
C
lgpl
22,899
.TH nfc-list 1 "June 26, 2009" "libnfc" "NFC Utilities" .SH NAME nfc-list \- list NFC targets .SH SYNOPSIS .B nfc-list [ .I options ] .SH DESCRIPTION .B nfc-list is a utility for listing any available tags like ISO14443-A, FeliCa, Jewel or ISO14443-B (according to the device capabilities). It may detect several tags at...
1060840728-lvgang
utils/nfc-list.1
Roff Manpage
lgpl
1,856
/*- * Free/Libre Near Field Communication (NFC) library * * Libnfc historical contributors: * Copyright (C) 2009 Roel Verdult * Copyright (C) 2009-2013 Romuald Conty * Copyright (C) 2010-2012 Romain Tartière * Copyright (C) 2010-2013 Philippe Teuwen * Copyright (C) 2012-2013 Ludovic Rousseau * See AUTHORS...
1060840728-lvgang
utils/nfc-utils.c
C
lgpl
3,909
/*- * Free/Libre Near Field Communication (NFC) library * * Libnfc historical contributors: * Copyright (C) 2009 Roel Verdult * Copyright (C) 2009-2013 Romuald Conty * Copyright (C) 2010-2012 Romain Tartière * Copyright (C) 2010-2013 Philippe Teuwen * Copyright (C) 2012-2013 Ludovic Rousseau * See AUTHORS...
1060840728-lvgang
utils/nfc-scan-device.c
C
lgpl
4,173
/*- * Free/Libre Near Field Communication (NFC) library * * Libnfc historical contributors: * Copyright (C) 2009 Roel Verdult * Copyright (C) 2009-2013 Romuald Conty * Copyright (C) 2010-2012 Romain Tartière * Copyright (C) 2010-2013 Philippe Teuwen * Copyright (C) 2012-2013 Ludovic Rousseau * See AUTHORS...
1060840728-lvgang
contrib/windows.h
C
lgpl
2,125
EXTRA_DIST = \ pn532_via_uart2usb.conf.sample \ arygon.conf.sample \ pn532_uart_on_rpi.conf.sample
1060840728-lvgang
contrib/libnfc/Makefile.am
Makefile
lgpl
116
EXTRA_DIST = \ pn53x.conf
1060840728-lvgang
contrib/devd/Makefile.am
Makefile
lgpl
27
SUBDIRS = \ devd \ libnfc \ linux \ udev \ win32 EXTRA_DIST = \ windows.h
1060840728-lvgang
contrib/Makefile.am
Makefile
lgpl
81
EXTRA_DIST = \ 42-pn53x.rules
1060840728-lvgang
contrib/udev/Makefile.am
Makefile
lgpl
31
EXTRA_DIST = \ blacklist-libnfc.conf
1060840728-lvgang
contrib/linux/Makefile.am
Makefile
lgpl
38
/*- * Free/Libre Near Field Communication (NFC) library * * Libnfc historical contributors: * Copyright (C) 2009 Roel Verdult * Copyright (C) 2009-2013 Romuald Conty * Copyright (C) 2010-2012 Romain Tartière * Copyright (C) 2010-2013 Philippe Teuwen * Copyright (C) 2012-2013 Ludovic Rousseau * See AUTHORS...
1060840728-lvgang
contrib/win32/stdlib.c
C
lgpl
1,666
/*- * Free/Libre Near Field Communication (NFC) library * * Libnfc historical contributors: * Copyright (C) 2009 Roel Verdult * Copyright (C) 2009-2013 Romuald Conty * Copyright (C) 2010-2012 Romain Tartière * Copyright (C) 2010-2013 Philippe Teuwen * Copyright (C) 2012-2013 Ludovic Rousseau * See AUTHORS...
1060840728-lvgang
contrib/win32/libnfc/log-internal.c
C
lgpl
1,971
SUBDIRS = buses . EXTRA_DIST = \ log-internal.c
1060840728-lvgang
contrib/win32/libnfc/Makefile.am
Makefile
lgpl
50
/*- * Free/Libre Near Field Communication (NFC) library * * Libnfc historical contributors: * Copyright (C) 2009 Roel Verdult * Copyright (C) 2009-2013 Romuald Conty * Copyright (C) 2010-2012 Romain Tartière * Copyright (C) 2010-2013 Philippe Teuwen * Copyright (C) 2012-2013 Ludovic Rousseau * See AUTHORS...
1060840728-lvgang
contrib/win32/libnfc/buses/uart.c
C
lgpl
8,338
EXTRA_DIST = \ uart.c
1060840728-lvgang
contrib/win32/libnfc/buses/Makefile.am
Makefile
lgpl
23
/*- * Free/Libre Near Field Communication (NFC) library * * Libnfc historical contributors: * Copyright (C) 2009 Roel Verdult * Copyright (C) 2009-2013 Romuald Conty * Copyright (C) 2010-2012 Romain Tartière * Copyright (C) 2010-2013 Philippe Teuwen * Copyright (C) 2012-2013 Ludovic Rousseau * See AUTHORS...
1060840728-lvgang
contrib/win32/unistd.h
C
lgpl
1,531
/*- * Free/Libre Near Field Communication (NFC) library * * Libnfc historical contributors: * Copyright (C) 2009 Roel Verdult * Copyright (C) 2009-2013 Romuald Conty * Copyright (C) 2010-2012 Romain Tartière * Copyright (C) 2010-2013 Philippe Teuwen * Copyright (C) 2012-2013 Ludovic Rousseau * * This pro...
1060840728-lvgang
contrib/win32/sys/select.h
C
lgpl
1,061
EXTRA_DIST = \ select.h
1060840728-lvgang
contrib/win32/sys/Makefile.am
Makefile
lgpl
25
SUBDIRS = libnfc sys . EXTRA_DIST = \ err.h \ nfc.def \ stdlib.c \ unistd.h \ version.rc.in
1060840728-lvgang
contrib/win32/Makefile.am
Makefile
lgpl
100
#ifndef _ERR_H_ #define _ERR_H_ #include <stdlib.h> #define warnx(...) do { \ fprintf (stderr, __VA_ARGS__); \ fprintf (stderr, "\n"); \ } while (0) #define errx(code, ...) do { \ fprintf (stderr, __VA_ARGS__); \ fprintf (stderr, "\n"); \ exit (code); \ } while (0) #define er...
1060840728-lvgang
contrib/win32/err.h
C
lgpl
353
#!/bin/sh WITH_USB=1 LIBUSB_WIN32_BIN_VERSION="1.2.6.0" LIBUSB_WIN32_BIN_ARCHIVE="libusb-win32-bin-$LIBUSB_WIN32_BIN_VERSION.zip" LIBUSB_WIN32_BIN_URL="http://freefr.dl.sourceforge.net/project/libusb-win32/libusb-win32-releases/$LIBUSB_WIN32_BIN_VERSION/$LIBUSB_WIN32_BIN_ARCHIVE" LIBUSB_WIN32_BIN_DIR="libusb-win32-bi...
1060840728-lvgang
mingw-cross-configure.sh
Shell
lgpl
2,880
ACLOCAL_AMFLAGS = -I m4 AM_CFLAGS = $(LIBNFC_CFLAGS) SUBDIRS = libnfc utils examples include contrib cmake test pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = libnfc.pc EXTRA_DIST = \ CMakeLists.txt \ Doxyfile \ README-Windows.txt \ libnfc.conf.sample CLEANFILES = Doxygen.log coverage.info libnfc.pc clea...
1060840728-lvgang
Makefile.am
Makefile
lgpl
1,510
/*- * Free/Libre Near Field Communication (NFC) library * * Libnfc historical contributors: * Copyright (C) 2009 Roel Verdult * Copyright (C) 2009-2013 Romuald Conty * Copyright (C) 2010-2012 Romain Tartière * Copyright (C) 2010-2013 Philippe Teuwen * Copyright (C) 2012-2013 Ludovic Rousseau * See AUTHORS...
1060840728-lvgang
examples/nfc-mfsetuid.c
C
lgpl
11,280
/*- * Free/Libre Near Field Communication (NFC) library * * Libnfc historical contributors: * Copyright (C) 2009 Roel Verdult * Copyright (C) 2009-2013 Romuald Conty * Copyright (C) 2010-2012 Romain Tartière * Copyright (C) 2010-2013 Philippe Teuwen * Copyright (C) 2012-2013 Ludovic Rousseau * See AUTHORS...
1060840728-lvgang
examples/nfc-emulate-tag.c
C
lgpl
8,563
/*- * Free/Libre Near Field Communication (NFC) library * * Libnfc historical contributors: * Copyright (C) 2009 Roel Verdult * Copyright (C) 2009-2013 Romuald Conty * Copyright (C) 2010-2012 Romain Tartière * Copyright (C) 2010-2013 Philippe Teuwen * Copyright (C) 2012-2013 Ludovic Rousseau * See AUTHORS...
1060840728-lvgang
examples/nfc-dep-initiator.c
C
lgpl
3,925
.TH nfc-emulate-uid 1 "June 26, 2009" "libnfc" "libnfc's examples" .SH NAME nfc-emulate-uid \- NFC target emulation command line tool based on libnfc .SH SYNOPSIS .B nfc-emulate-uid .RI [ OPTIONS ] .RI [ UID ] .SH DESCRIPTION .B nfc-emulate-uid is a tag emulation tool that allows one to choose any tag UID. Tag emulatio...
1060840728-lvgang
examples/nfc-emulate-uid.1
Roff Manpage
lgpl
2,828
.Dd September 19, 2012 .Dt NFC-EMULATE-FORUM-TAG2 1 URM .Sh NAME .Nm nfc-emulate-forum-tag2 .Nd NFC Forum tag type 2 emulation command line demonstration tool .Sh SYNOPSIS .Nm .Sh DESCRIPTION .Nm is a demonstration tool that emulates a NFC-Forum Tag Type 2 with NDEF content. .Pp Some devices compliant with NFC-Forum T...
1060840728-lvgang
examples/nfc-emulate-forum-tag2.1
Roff Manpage
lgpl
1,860
/*- * Free/Libre Near Field Communication (NFC) library * * Libnfc historical contributors: * Copyright (C) 2009 Roel Verdult * Copyright (C) 2009-2013 Romuald Conty * Copyright (C) 2010-2012 Romain Tartière * Copyright (C) 2010-2013 Philippe Teuwen * Copyright (C) 2012-2013 Ludovic Rousseau * See AUTHORS...
1060840728-lvgang
examples/pn53x-sam.c
C
lgpl
7,059
SET(EXAMPLES-SOURCES nfc-anticol nfc-dep-initiator nfc-dep-target nfc-emulate-forum-tag2 nfc-emulate-tag nfc-emulate-uid nfc-mfsetuid nfc-poll nfc-relay ) INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../libnfc) # Examples FOREACH(source ${EXAMPLES-SOURCES}) SET (TARGETS ${source}.c) IF(WIN32...
1060840728-lvgang
examples/CMakeLists.txt
CMake
lgpl
1,393
.TH nfc-poll 1 "June 26, 2009" "libnfc" "libnfc's examples" .SH NAME nfc-poll \- poll first available NFC target .SH SYNOPSIS .B nfc-poll .SH DESCRIPTION .B nfc-poll is a utility for polling any available target (tags but also NFCIP targets) using ISO14443-A, FeliCa, Jewel and ISO14443-B modulations. This tool uses ha...
1060840728-lvgang
examples/nfc-poll.1
Roff Manpage
lgpl
1,927
.TH nfc-dep-initiator 1 "October 8, 2010" "libnfc" "libnfc's examples" .SH NAME nfc-dep-initiator \- Demonstration tool to send/received data as D.E.P. initiator .SH SYNOPSIS .B nfc-dep-initiator .SH DESCRIPTION .B nfc-dep-initiator is a demonstration tool for putting NFC device in D.E.P. initiator mode. This example ...
1060840728-lvgang
examples/nfc-dep-initiator.1
Roff Manpage
lgpl
1,032
.TH nfc-emulate-tag 1 "October 8, 2010" "libnfc" "libnfc's examples" .SH NAME nfc-emulate-tag \- Simple tag emulation command line demonstration tool .SH SYNOPSIS .B nfc-emulate-tag .SH DESCRIPTION .B nfc-emulate-tag is a simple tag emulation tool that demonstrates how emulation can be done using libnfc. Currently, th...
1060840728-lvgang
examples/nfc-emulate-tag.1
Roff Manpage
lgpl
2,086
.TH nfc-dep-target 1 "October 8, 2010" "libnfc" "libnfc's examples" .SH NAME nfc-dep-target \- Demonstration tool to send/received data as D.E.P. target .SH SYNOPSIS .B nfc-dep-target .SH DESCRIPTION .B nfc-dep-target is a demonstration tool for putting NFC device in D.E.P. target mode. This example will listen for a ...
1060840728-lvgang
examples/nfc-dep-target.1
Roff Manpage
lgpl
1,012
/*- * Free/Libre Near Field Communication (NFC) library * * Libnfc historical contributors: * Copyright (C) 2009 Roel Verdult * Copyright (C) 2009-2013 Romuald Conty * Copyright (C) 2010-2012 Romain Tartière * Copyright (C) 2010-2013 Philippe Teuwen * Copyright (C) 2012-2013 Ludovic Rousseau * See AUTHORS...
1060840728-lvgang
examples/pn53x-diagnose.c
C
lgpl
4,938
.TH pn53x-sam 1 "June 15, 2010" "libnfc" "libnfc's examples" .SH NAME pn53x-sam \- PN53x SAM communication demonstration tool .SH SYNOPSIS .B pn53x-sam .SH DESCRIPTION .B pn53x-sam is a utility attempt to test a simple connection with a SAM (Secure Access Module) in several modes. To run this utility you must have a S...
1060840728-lvgang
examples/pn53x-sam.1
Roff Manpage
lgpl
1,079
/*- * Free/Libre Near Field Communication (NFC) library * * Libnfc historical contributors: * Copyright (C) 2009 Roel Verdult * Copyright (C) 2009-2013 Romuald Conty * Copyright (C) 2010-2012 Romain Tartière * Copyright (C) 2010-2013 Philippe Teuwen * Copyright (C) 2012-2013 Ludovic Rousseau * See AUTHORS...
1060840728-lvgang
examples/nfc-dep-target.c
C
lgpl
5,031
.TH nfc-relay 1 "June 26, 2009" "libnfc" "libnfc'examples" .SH NAME nfc-relay \- Relay attack command line tool based on libnfc .SH SYNOPSIS .B nfc-relay .SH DESCRIPTION .B nfc-relay is a utility that demonstrates a relay attack. This tool requires two NFC devices. One device (configured as target) will emulate an ISO...
1060840728-lvgang
examples/nfc-relay.1
Roff Manpage
lgpl
1,263
/*- * Free/Libre Near Field Communication (NFC) library * * Libnfc historical contributors: * Copyright (C) 2009 Roel Verdult * Copyright (C) 2009-2013 Romuald Conty * Copyright (C) 2010-2012 Romain Tartière * Copyright (C) 2010-2013 Philippe Teuwen * Copyright (C) 2012-2013 Ludovic Rousseau * See AUTHORS...
1060840728-lvgang
examples/nfc-emulate-uid.c
C
lgpl
7,807
/** * @file quick_start_example1.c * @brief Quick start example that presents how to use libnfc */ // To compile this simple example: // $ gcc -o quick_start_example1 quick_start_example1.c -lnfc #include <stdlib.h> #include <nfc/nfc.h> static void print_hex(const uint8_t *pbtData, const size_t szBytes) { size_...
1060840728-lvgang
examples/doc/quick_start_example1.c
C
lgpl
2,441
/** * @file quick_start_example2.c * @brief Quick start example that presents how to use libnfc */ // This is same example as quick_start_example1.c but using // some helper functions existing in libnfc. // Those functions are not available yet in a library // so binary object must be linked statically: // $ gcc -o...
1060840728-lvgang
examples/doc/quick_start_example2.c
C
lgpl
2,529
SUBDIRS = pn53x-tamashell-scripts bin_PROGRAMS = \ nfc-anticol \ nfc-dep-initiator \ nfc-dep-target \ nfc-emulate-forum-tag2 \ nfc-emulate-tag \ nfc-emulate-uid \ nfc-mfsetuid \ nfc-poll \ nfc-relay \ pn53x-diagnose \ pn53x-sam if POSIX_ONLY_EXAMPLES_ENABLED bin_PROGRAMS += \ pn53x-tamashell e...
1060840728-lvgang
examples/Makefile.am
Makefile
lgpl
2,905
/*- * Free/Libre Near Field Communication (NFC) library * * Libnfc historical contributors: * Copyright (C) 2009 Roel Verdult * Copyright (C) 2009-2013 Romuald Conty * Copyright (C) 2010-2012 Romain Tartière * Copyright (C) 2010-2013 Philippe Teuwen * Copyright (C) 2012-2013 Ludovic Rousseau * See AUTHORS...
1060840728-lvgang
examples/nfc-anticol.c
C
lgpl
10,569
.TH nfc-anticol 1 "June 26, 2009" "libnfc" "libnfc's examples" .SH NAME nfc-anticol \- Demonstration of NFC anti-collision command line tool based on libnfc .SH SYNOPSIS .B nfc-anticol .SH DESCRIPTION .B nfc-anticol is an anti-collision demonstration tool for ISO/IEC 14443-A tags, performed by custom constructed frames...
1060840728-lvgang
examples/nfc-anticol.1
Roff Manpage
lgpl
1,536
/*- * Free/Libre Near Field Communication (NFC) library * * Libnfc historical contributors: * Copyright (C) 2009 Roel Verdult * Copyright (C) 2009-2013 Romuald Conty * Copyright (C) 2010-2012 Romain Tartière * Copyright (C) 2010-2013 Philippe Teuwen * Copyright (C) 2012-2013 Ludovic Rousseau * See AUTHORS...
1060840728-lvgang
examples/nfc-relay.c
C
lgpl
8,675
/*- * Free/Libre Near Field Communication (NFC) library * * Libnfc historical contributors: * Copyright (C) 2009 Roel Verdult * Copyright (C) 2009-2013 Romuald Conty * Copyright (C) 2010-2012 Romain Tartière * Copyright (C) 2010-2013 Philippe Teuwen * Copyright (C) 2012-2013 Ludovic Rousseau * See AUTHORS...
1060840728-lvgang
examples/nfc-poll.c
C
lgpl
4,619
/*- * Free/Libre Near Field Communication (NFC) library * * Libnfc historical contributors: * Copyright (C) 2009 Roel Verdult * Copyright (C) 2009-2013 Romuald Conty * Copyright (C) 2010-2012 Romain Tartière * Copyright (C) 2010-2013 Philippe Teuwen * Copyright (C) 2012-2013 Ludovic Rousseau * See AUTHORS...
1060840728-lvgang
examples/pn53x-tamashell.c
C
lgpl
5,736
/*- * Free/Libre Near Field Communication (NFC) library * * Libnfc historical contributors: * Copyright (C) 2009 Roel Verdult * Copyright (C) 2009-2013 Romuald Conty * Copyright (C) 2010-2012 Romain Tartière * Copyright (C) 2010-2013 Philippe Teuwen * Copyright (C) 2012-2013 Ludovic Rousseau * See AUTHORS...
1060840728-lvgang
examples/nfc-emulate-forum-tag2.c
C
lgpl
6,479
.TH nfc-mfsetuid 1 "Sep 05, 2011" "libnfc" "NFC Utilities" .SH NAME nfc-mfsetuid \- MIFARE 1K special card UID setting and recovery tool .SH SYNOPSIS .B nfc-mfsetuid [ .I UID ] .SH DESCRIPTION .B nfc-mfsetuid is a MIFARE tool that allows setting of UID on special versions (Chinese clones) of Mifare 1K cards. It will a...
1060840728-lvgang
examples/nfc-mfsetuid.1
Roff Manpage
lgpl
1,150
#!/bin/sh cat << EOF | \ pn53x-tamashell |\ awk '\ /^> #.*:/{ sub(/^> #/,"") n=$0 for (i=0;i<8-length();i++) { n= n " " } getline getline getline sub(/Rx: 00/,"") gsub(/ +/," ") ...
1060840728-lvgang
examples/pn53x-tamashell-scripts/ReadMobib.sh
Shell
lgpl
1,783
02; Get firmware version // Create NFC-Forum tag type2 with URL // WARNING It burns the OTP bits of sector 3!! // PLEASE PUT ULTRALIGHT TAG NOW 4A 01 00; 1 target requested // Clear memory from address 0x04 40 01 A2 04 00 00 00 00; Write 4 bytes from addr...
1060840728-lvgang
examples/pn53x-tamashell-scripts/UltraLightReadWrite.cmd
Batchfile
lgpl
2,229
02; // Get firmware version // Reads content of a Mifare UltraLight // PLEASE PUT ULTRALIGHT TAG NOW 4A 01 00; // 1 target requested // Read memory content from address 4 40 01 30 00; Read 16 bytes from address 0x00 40 01 30 04; ...
1060840728-lvgang
examples/pn53x-tamashell-scripts/UltraLightRead.cmd
Batchfile
lgpl
492
#!/bin/sh ID=$(cat << EOF | \ pn53x-tamashell |\ grep -A1 "^Tx: 42 01 0b 3f 80" |\ sed -e '1d' -e "s/^Rx: 00 .. .. \(.. .. .. ..\).*/\1/" -e 's/ //g' # Timeouts 3205000002 # ListTarget ModeB 4a010300 # TypeB' APGEN 42010b3f80 EOF ) if [ -z "$ID" ]; then echo "Error: I was not abble to read Nav...
1060840728-lvgang
examples/pn53x-tamashell-scripts/ReadNavigo.sh
Shell
lgpl
1,690
# To be used only on ASK LoGO readers!!! # As we don't know how GPIO can be wired, it may hurt your hardware!!! # P32=0 LED1 # P34=0 progressive field off # SFR_P3: 0x..101011 08 ff b0 2b p 100 # P32=0 LED1 # P31=0 LED2 # SFR_P3: 0x..101001 08 ff b0 29 p 100 # P32=0 LED1 # P31=0 LED2 # P30=0 P33=0 LED3 # S...
1060840728-lvgang
examples/pn53x-tamashell-scripts/ASK_LoGO_LEDs.cmd
Batchfile
lgpl
734
EXTRA_DIST = \ ReadMobib.sh \ ReadNavigo.sh \ UltraLightRead.cmd \ UltraLightReadWrite.cmd
1060840728-lvgang
examples/pn53x-tamashell-scripts/Makefile.am
Makefile
lgpl
95
.TH pn53x-diagnose 1 "June 15, 2010" "libnfc" "libnfc's examples" .SH NAME pn53x-diagnose \- PN53x diagnose tool .SH SYNOPSIS .B pn53x-diagnose .SH DESCRIPTION .B pn53x-diagnose is a utility to diagnose PN531, PN532 and PN533 chips. It runs communication, RAM and ROM tests. .SH BUGS Please report any bugs on the .B li...
1060840728-lvgang
examples/pn53x-diagnose.1
Roff Manpage
lgpl
762
.TH pn53x-tamashell 1 "September 15, 2010" .SH NAME pn53x-tamashell \- PN53x TAMA communication demonstration shell .SH SYNOPSIS .B pn53x-tamashell .IR [script] .SH DESCRIPTION .B pn53x-tamashell is a simple interactive tool to send so called TAMA commands and receive the answers. TAMA refers to the command set support...
1060840728-lvgang
examples/pn53x-tamashell.1
Roff Manpage
lgpl
2,021
/*- * Free/Libre Near Field Communication (NFC) library * * Libnfc historical contributors: * Copyright (C) 2009 Roel Verdult * Copyright (C) 2009-2013 Romuald Conty * Copyright (C) 2010-2012 Romain Tartière * Copyright (C) 2010-2013 Philippe Teuwen * Copyright (C) 2012-2013 Ludovic Rousseau * See AUTHORS...
1060840728-lvgang
include/nfc/nfc.h
C
lgpl
8,769
/*- * Free/Libre Near Field Communication (NFC) library * * Libnfc historical contributors: * Copyright (C) 2009 Roel Verdult * Copyright (C) 2009-2013 Romuald Conty * Copyright (C) 2010-2012 Romain Tartière * Copyright (C) 2010-2013 Philippe Teuwen * Copyright (C) 2012-2013 Ludovic Rousseau * See AUTHORS...
1060840728-lvgang
include/nfc/nfc-emulation.h
C
lgpl
2,056
# Headers FILE(GLOB headers "${CMAKE_CURRENT_SOURCE_DIR}/*.h") INSTALL(FILES ${headers} DESTINATION ${INCLUDE_INSTALL_DIR}/nfc COMPONENT headers)
1060840728-lvgang
include/nfc/CMakeLists.txt
CMake
lgpl
147
nfcinclude_HEADERS = \ nfc.h \ nfc-emulation.h \ nfc-types.h nfcincludedir = $(includedir)/nfc EXTRA_DIST = CMakeLists.txt
1060840728-lvgang
include/nfc/Makefile.am
Makefile
lgpl
146
/*- * Free/Libre Near Field Communication (NFC) library * * Libnfc historical contributors: * Copyright (C) 2009 Roel Verdult * Copyright (C) 2009-2013 Romuald Conty * Copyright (C) 2010-2012 Romain Tartière * Copyright (C) 2010-2013 Philippe Teuwen * Copyright (C) 2012-2013 Ludovic Rousseau * See AUTHORS...
1060840728-lvgang
include/nfc/nfc-types.h
C
lgpl
9,675
ADD_SUBDIRECTORY(nfc)
1060840728-lvgang
include/CMakeLists.txt
CMake
lgpl
23
SUBDIRS = nfc EXTRA_DIST = CMakeLists.txt
1060840728-lvgang
include/Makefile.am
Makefile
lgpl
43
#! /bin/sh # Stop script on first error. set -e # Retrieve libnfc version from configure.ac LIBNFC_VERSION=$(grep AC_INIT configure.ac | sed 's/^.*\[libnfc\],\[\(.*\)\],\[.*/\1/g') echo "=== Building release archive for libnfc $LIBNFC_VERSION ===" # Easiest part: GNU/linux, BSD and other POSIX systems. LIBNFC_AUTOTO...
1060840728-lvgang
make_release.sh
Shell
lgpl
1,604