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
#include <cutter.h> #include <pthread.h> #include <signal.h> #include <unistd.h> #include "nfc/nfc.h" void test_dep_passive(void); #define INITIATOR 0 #define TARGET 1 pthread_t threads[2]; nfc_context *context; nfc_connstring connstrings[2]; nfc_device *devices[2]; intptr_t result[2]; static void abort_test_by...
zzyjames55-nfc0805
test/test_dep_passive.c
C
lgpl
12,735
# $Id$ AM_CPPFLAGS = $(CUTTER_CFLAGS) $(LIBNFC_CFLAGS) LIBS = $(CUTTER_LIBS) if WITH_CUTTER TESTS = run-test.sh TESTS_ENVIRONMENT = NO_MAKE=yes CUTTER="$(CUTTER)" cutter_unit_test_libs = \ test_access_storm.la \ test_dep_active.la \ test_device_modes_as_dep.la \ test_dep_passive.la \ test_register_acc...
zzyjames55-nfc0805
test/Makefile.am
Makefile
lgpl
1,405
#include <cutter.h> #include <nfc/nfc.h> #include "chips/pn53x.h" #define MAX_DEVICE_COUNT 1 #define MAX_TARGET_COUNT 1 void test_register_access(void); void test_register_access(void) { nfc_connstring connstrings[MAX_DEVICE_COUNT]; int res = 0; nfc_context *context; nfc_init(&context); size_t device_co...
zzyjames55-nfc0805
test/test_register_access.c
C
lgpl
1,605
#include <cutter.h> #include <pthread.h> #include <signal.h> #include <unistd.h> #include "nfc/nfc.h" #include "../utils/nfc-utils.h" void test_dep_states(void); pthread_t threads[2]; nfc_context *context; nfc_connstring connstrings[2]; nfc_device *first_device, *second_device; intptr_t result[2]; static void abort...
zzyjames55-nfc0805
test/test_device_modes_as_dep.c
C
lgpl
7,522
#include <cutter.h> #include <pthread.h> #include <signal.h> #include <unistd.h> #include "nfc/nfc.h" #include "../utils/nfc-utils.h" void test_dep_active(void); #define INITIATOR 0 #define TARGET 1 pthread_t threads[2]; nfc_context *context; nfc_connstring connstrings[2]; nfc_device *devices[2]; intptr_t result...
zzyjames55-nfc0805
test/test_dep_active.c
C
lgpl
6,508
#!/bin/sh export BASE_DIR="`dirname $0`" if test -z "$NO_MAKE"; then make -C "$BASE_DIR/../" > /dev/null || exit 1 fi if test -z "$CUTTER"; then CUTTER="`make -s -C "$BASE_DIR" echo-cutter`" fi "$CUTTER" --keep-opening-modules -s "$BASE_DIR" "$@" "$BASE_DIR" # ^^^^^^^^^^^^^^^^^^^^^^ # FIXME: Remove ...
zzyjames55-nfc0805
test/run-test.sh
Shell
lgpl
509
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...
zzyjames55-nfc0805
Makefile.am
Makefile
lgpl
1,510
#! /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...
zzyjames55-nfc0805
make_release.sh
Shell
lgpl
1,604
/*- * 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...
zzyjames55-nfc0805
examples/pn53x-sam.c
C
lgpl
7,063
.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...
zzyjames55-nfc0805
examples/pn53x-tamashell.1
Roff Manpage
lgpl
2,021
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...
zzyjames55-nfc0805
examples/CMakeLists.txt
CMake
lgpl
1,393
.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...
zzyjames55-nfc0805
examples/nfc-anticol.1
Roff Manpage
lgpl
1,536
.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...
zzyjames55-nfc0805
examples/nfc-poll.1
Roff Manpage
lgpl
1,927
/*- * 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...
zzyjames55-nfc0805
examples/nfc-mfsetuid.c
C
lgpl
11,280
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...
zzyjames55-nfc0805
examples/Makefile.am
Makefile
lgpl
2,905
.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...
zzyjames55-nfc0805
examples/pn53x-diagnose.1
Roff Manpage
lgpl
762
/*- * 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...
zzyjames55-nfc0805
examples/nfc-dep-initiator.c
C
lgpl
3,925
/*- * 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...
zzyjames55-nfc0805
examples/pn53x-diagnose.c
C
lgpl
4,938
/*- * 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...
zzyjames55-nfc0805
examples/nfc-emulate-uid.c
C
lgpl
7,805
.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...
zzyjames55-nfc0805
examples/nfc-emulate-forum-tag2.1
Roff Manpage
lgpl
1,860
.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 ...
zzyjames55-nfc0805
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...
zzyjames55-nfc0805
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...
zzyjames55-nfc0805
examples/pn53x-tamashell.c
C
lgpl
5,736
.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...
zzyjames55-nfc0805
examples/pn53x-sam.1
Roff Manpage
lgpl
1,079
.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...
zzyjames55-nfc0805
examples/nfc-mfsetuid.1
Roff Manpage
lgpl
1,150
/** * @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...
zzyjames55-nfc0805
examples/doc/quick_start_example2.c
C
lgpl
2,529
/** * @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_...
zzyjames55-nfc0805
examples/doc/quick_start_example1.c
C
lgpl
2,439
/*- * 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...
zzyjames55-nfc0805
examples/nfc-poll.c
C
lgpl
4,439
/*- * 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...
zzyjames55-nfc0805
examples/nfc-emulate-forum-tag2.c
C
lgpl
6,479
.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 ...
zzyjames55-nfc0805
examples/nfc-dep-initiator.1
Roff Manpage
lgpl
1,032
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...
zzyjames55-nfc0805
examples/pn53x-tamashell-scripts/UltraLightReadWrite.cmd
Batchfile
lgpl
2,229
#!/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...
zzyjames55-nfc0805
examples/pn53x-tamashell-scripts/ReadNavigo.sh
Shell
lgpl
1,690
#!/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(/ +/," ") ...
zzyjames55-nfc0805
examples/pn53x-tamashell-scripts/ReadMobib.sh
Shell
lgpl
1,783
EXTRA_DIST = \ ReadMobib.sh \ ReadNavigo.sh \ UltraLightRead.cmd \ UltraLightReadWrite.cmd
zzyjames55-nfc0805
examples/pn53x-tamashell-scripts/Makefile.am
Makefile
lgpl
95
# 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...
zzyjames55-nfc0805
examples/pn53x-tamashell-scripts/ASK_LoGO_LEDs.cmd
Batchfile
lgpl
734
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; ...
zzyjames55-nfc0805
examples/pn53x-tamashell-scripts/UltraLightRead.cmd
Batchfile
lgpl
492
.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...
zzyjames55-nfc0805
examples/nfc-relay.1
Roff Manpage
lgpl
1,263
.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...
zzyjames55-nfc0805
examples/nfc-emulate-tag.1
Roff Manpage
lgpl
2,086
/*- * 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...
zzyjames55-nfc0805
examples/nfc-dep-target.c
C
lgpl
5,031
/*- * 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...
zzyjames55-nfc0805
examples/nfc-emulate-tag.c
C
lgpl
8,277
.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...
zzyjames55-nfc0805
examples/nfc-emulate-uid.1
Roff Manpage
lgpl
2,828
/*- * 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...
zzyjames55-nfc0805
examples/nfc-anticol.c
C
lgpl
10,569
#!/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...
zzyjames55-nfc0805
mingw-cross-configure.sh
Shell
lgpl
2,880
EXTRA_DIST = \ blacklist-libnfc.conf
zzyjames55-nfc0805
contrib/linux/Makefile.am
Makefile
lgpl
38
EXTRA_DIST = \ pn532_via_uart2usb.conf.sample \ arygon.conf.sample \ pn532_uart_on_rpi.conf.sample
zzyjames55-nfc0805
contrib/libnfc/Makefile.am
Makefile
lgpl
116
SUBDIRS = \ devd \ libnfc \ linux \ udev \ win32 EXTRA_DIST = \ windows.h
zzyjames55-nfc0805
contrib/Makefile.am
Makefile
lgpl
81
SUBDIRS = buses . EXTRA_DIST = \ log-internal.c
zzyjames55-nfc0805
contrib/win32/libnfc/Makefile.am
Makefile
lgpl
50
EXTRA_DIST = \ uart.c
zzyjames55-nfc0805
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...
zzyjames55-nfc0805
contrib/win32/libnfc/buses/uart.c
C
lgpl
8,329
/*- * 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...
zzyjames55-nfc0805
contrib/win32/libnfc/log-internal.c
C
lgpl
1,971
/*- * 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...
zzyjames55-nfc0805
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 * See AUTHORS...
zzyjames55-nfc0805
contrib/win32/stdlib.c
C
lgpl
1,666
EXTRA_DIST = \ select.h
zzyjames55-nfc0805
contrib/win32/sys/Makefile.am
Makefile
lgpl
25
/*- * 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...
zzyjames55-nfc0805
contrib/win32/sys/select.h
C
lgpl
1,061
SUBDIRS = libnfc sys . EXTRA_DIST = \ err.h \ nfc.def \ stdlib.c \ unistd.h \ version.rc.in
zzyjames55-nfc0805
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...
zzyjames55-nfc0805
contrib/win32/err.h
C
lgpl
353
EXTRA_DIST = \ pn53x.conf
zzyjames55-nfc0805
contrib/devd/Makefile.am
Makefile
lgpl
27
/*- * 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...
zzyjames55-nfc0805
contrib/windows.h
C
lgpl
2,125
EXTRA_DIST = \ 42-pn53x.rules
zzyjames55-nfc0805
contrib/udev/Makefile.am
Makefile
lgpl
31
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 ...
zzyjames55-nfc0805
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]) ...
zzyjames55-nfc0805
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 ...
zzyjames55-nfc0805
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...
zzyjames55-nfc0805
m4/libnfc_drivers.m4
M4Sugar
lgpl
5,293
ADD_SUBDIRECTORY(nfc)
zzyjames55-nfc0805
include/CMakeLists.txt
CMake
lgpl
23
# Headers FILE(GLOB headers "${CMAKE_CURRENT_SOURCE_DIR}/*.h") INSTALL(FILES ${headers} DESTINATION ${INCLUDE_INSTALL_DIR}/nfc COMPONENT headers)
zzyjames55-nfc0805
include/nfc/CMakeLists.txt
CMake
lgpl
147
nfcinclude_HEADERS = \ nfc.h \ nfc-emulation.h \ nfc-types.h nfcincludedir = $(includedir)/nfc EXTRA_DIST = CMakeLists.txt
zzyjames55-nfc0805
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...
zzyjames55-nfc0805
include/nfc/nfc-types.h
C
lgpl
9,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...
zzyjames55-nfc0805
include/nfc/nfc.h
C
lgpl
8,598
/*- * 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...
zzyjames55-nfc0805
include/nfc/nfc-emulation.h
C
lgpl
2,056
SUBDIRS = nfc EXTRA_DIST = CMakeLists.txt
zzyjames55-nfc0805
include/Makefile.am
Makefile
lgpl
43
/*- * 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...
zzyjames55-nfc0805
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...
zzyjames55-nfc0805
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...
zzyjames55-nfc0805
utils/nfc-read-forum-tag3.c
C
lgpl
10,709
/*- * 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...
zzyjames55-nfc0805
utils/nfc-list.c
C
lgpl
7,625
SET(UTILS-SOURCES nfc-emulate-forum-tag4 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) IF(WIN32) ...
zzyjames55-nfc0805
utils/CMakeLists.txt
CMake
lgpl
1,833
/*- * 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...
zzyjames55-nfc0805
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...
zzyjames55-nfc0805
utils/mifare.h
C
lgpl
4,141
.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 \fR\fB\-o\fR .IR FILE .SH DESCRIPTION .B nfc-read-forum-tag3 This utility extracts (if available) NDEF Messages contained in a ...
zzyjames55-nfc0805
utils/nfc-read-forum-tag3.1
Roff Manpage
lgpl
987
.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\fBr\fR|\fR\fBR\fR|\fBw\fR\fR|\fBW\fR .RI \fR\fBa\fR|\fR\fBA\fR|\fBb\fR\fR|\fBB\fR .IR DUMP .IR [KEYS] .SH DESCRIPTION .B nfc-mfclassic is a MIFARE Classic tool th...
zzyjames55-nfc0805
utils/nfc-mfclassic.1
Roff Manpage
lgpl
2,798
bin_PROGRAMS = \ nfc-emulate-forum-tag4 \ 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_SOURCES = nfc-utils....
zzyjames55-nfc0805
utils/Makefile.am
Makefile
lgpl
1,511
/*- * 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...
zzyjames55-nfc0805
utils/nfc-mfclassic.c
C
lgpl
21,101
/*- * 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...
zzyjames55-nfc0805
utils/mifare.c
C
lgpl
5,375
/*- * 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...
zzyjames55-nfc0805
utils/nfc-mfultralight.c
C
lgpl
8,397
.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...
zzyjames55-nfc0805
utils/nfc-scan-device.1
Roff Manpage
lgpl
1,621
.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...
zzyjames55-nfc0805
utils/nfc-mfultralight.1
Roff Manpage
lgpl
1,355
/*- * 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...
zzyjames55-nfc0805
utils/nfc-relay-picc.c
C
lgpl
16,672
.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...
zzyjames55-nfc0805
utils/nfc-relay-picc.1
Roff Manpage
lgpl
2,103
.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...
zzyjames55-nfc0805
utils/nfc-emulate-forum-tag4.1
Roff Manpage
lgpl
1,973
.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...
zzyjames55-nfc0805
utils/nfc-list.1
Roff Manpage
lgpl
1,524
/*- * 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...
zzyjames55-nfc0805
utils/nfc-emulate-forum-tag4.c
C
lgpl
12,976
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace Zzva.Common { public partial class TProgressBar : Form { public TProgressBar() { InitializeCo...
zzvalib
trunk/Common/Zzva.Common/TProgressBar.cs
C#
bsd
355
using System; using System.Collections.Generic; using System.Text; namespace Zzva.Common { public class CommonDateTime { public static string GetShortDateIso(DateTime Ddate) { try { string ShortDateIso; s...
zzvalib
trunk/Common/Zzva.Common/CommonDateTime.cs
C#
bsd
1,343
using System; using System.Collections.Generic; using System.Text; namespace Zzva.Common { public class TCodeComponent { private string mvarDse; private string mvarDisp; private string mvarOrder; private int mvarDop; private string mvarFullCode; ...
zzvalib
trunk/Common/Zzva.Common/TCodeComponent.cs
C#
bsd
7,704
using System; using System.Collections.Generic; using System.Text; namespace Zzva.Common { //Класс Поле-значение public class TFieldValue { public string Field; //обозначение поля public object Value;//значение поля public TFieldValue(string pField, object pValue) ...
zzvalib
trunk/Common/Zzva.Common/TFieldValue.cs
C#
bsd
467
using System; using System.Collections.Generic; using System.Text; using System.Collections.ObjectModel; namespace Zzva.Common { public class TListFieldValueEventArgs : EventArgs { public Collection<TFieldValue> ListFieldValue; public TListFieldValueEventArgs(Collection<TFi...
zzvalib
trunk/Common/Zzva.Common/TListFieldValueEventArgs.cs
C#
bsd
447
using System; using System.Collections.Generic; using System.Text; namespace Zzva.Common { public class CommonException : System.Exception { public CommonException(String msg): base("1406 " + msg){} } }
zzvalib
trunk/Common/Zzva.Common/CommonException.cs
C#
bsd
244
using System; using System.Collections.Generic; using System.Text; namespace Zzva.Common { public struct TCodeComp { public string FullCode; public string Dse; public float DispNumeric; public string DispString; public string Order; public int DopI...
zzvalib
trunk/Common/Zzva.Common/Rules.cs
C#
bsd
4,078
using System; using System.Collections.Generic; using System.Text; using System.Data; namespace Zzva.Common { /// public abstract class TBeBase: DataTable /// { /// public TBeBase() /// { /// DataColumn fldId; /// fldId = new DataColumn("Id",typeof(int)); ...
zzvalib
trunk/Common/Zzva.Common/BusinessEntities.cs
C#
bsd
7,038
using System; using System.Collections.Generic; using System.Text; using System.Diagnostics; namespace Zzva.Common { public class TLog { private const string LogFileName = "Log.txt"; protected TLog() { } private static void CreateLogFile() { tr...
zzvalib
trunk/Common/Zzva.Common/Log.cs
C#
bsd
2,859
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTi...
zzvalib
trunk/Common/Zzva.Common/Properties/AssemblyInfo.cs
C#
bsd
1,442