Romain Tartiere
9984e1bdcb
Start of work on error handling.
2010-07-26 12:41:46 +00:00
Romain Tartiere
af584bd474
Fix packet length checksum computation.
...
The doc says LCS (aka abtTx[4]) must be set so that the lower byte of LCS+LEN
(aka abtTx[3]) is 0x00. This has not to be related to the USB buffer size, so
that we can adjust it without breaking down the libnfc.
2010-07-25 16:31:53 +00:00
Romain Tartiere
7f9f907bc2
Silent down compiler.
2010-07-24 18:54:50 +00:00
Romain Tartiere
e6d079d87a
Fix a regression introduced at r461.
...
This prevents the ATR_REQ from being processed and some tags detection fails in
libfreefare.
2010-07-24 17:20:48 +00:00
Romain Tartiere
4ff66d125f
Fix a regression introduced at r458.
...
Both abtInit and szInitLen are initialised using pbtInitData and szInitDataLen,
so we must use them when calling pn53x_InListPassiveTarget().
2010-07-24 16:30:44 +00:00
Romuald Conty
edb62bd1cb
Create pn53x_InDeselect function.
2010-07-23 13:30:06 +00:00
Romuald Conty
7eeb46ab68
Minor indentation fix.
2010-07-23 12:48:30 +00:00
Romuald Conty
7dd1053d03
Fix incorrect selected targets size in pn53x_InListPassive().
2010-07-23 12:45:21 +00:00
Romuald Conty
3f17e5e032
Minor indentation fix.
2010-07-23 12:41:29 +00:00
Romuald Conty
aca1eb40a8
Comment out extern symbol related to PN53x in nfc.c; The goal is to remove all of them from nfc.c
2010-07-22 16:24:24 +00:00
Romuald Conty
d932cd8450
Move some PN53x related code from nfc.c to pn53x.c
2010-07-22 16:21:59 +00:00
Romuald Conty
424a48714f
Minor documentation improvements.
2010-07-22 16:16:37 +00:00
Romuald Conty
c4bb23631b
Do not export nfc_parse_device_desc() in libnfc API.
2010-07-22 16:13:02 +00:00
Emanuele Bertoldi
4bc522cd1e
First prototype of argument parsing for device description (issue #87 ).
2010-07-22 13:41:20 +00:00
Romuald Conty
2688de6500
API change: nfc_initiator_select_tag() is now nfc_initiator_select_passive_target() AND nfc_initiator_deselect_tag() is now nfc_initiator_deselect_target()
2010-07-21 10:37:37 +00:00
Romuald Conty
f7c31885f5
Move all Mifare related code from libnfc API to examples: NFC is capable of Mifare, but Mifare is not NFC.
2010-06-15 15:33:22 +00:00
Romuald Conty
2e39e56e17
Return value of pn53x_usb_list_devices() must bool, not void*
2010-05-28 09:55:13 +00:00
Romuald Conty
ac663d02a1
Use pn53x_decode_target_data() to decode target data in nfc_initiator_select_tag(). Fix Issue 82.
2010-05-18 10:57:38 +00:00
Romuald Conty
cf0c2dd9f2
Fix ATS lenght in pn53x_decode_target_data().
2010-05-18 10:55:18 +00:00
Romuald Conty
8c1815fbea
Move variable declarations in order to compile using non-C99 compiler. Fix Issue 80.
2010-05-18 08:27:50 +00:00
Romuald Conty
404dfba6e8
usb_release() must be called before usb_reset(). Fix Issue 81 (Thanks to thaolx).
2010-05-18 08:13:26 +00:00
Romain Tartiere
9941191cfc
Fix build when configured with --enable-debug.
2010-04-28 12:55:00 +00:00
Romain Tartiere
16786c61e3
Remove bitutils I reverted instead of removing in r412.
2010-04-26 13:20:57 +00:00
Romain Tartiere
b28abd77b0
Merge the libnfc-less-bitutils-more-ponies branch into trunk.
2010-04-26 13:13:13 +00:00
Romuald Conty
e45a0943e8
Change to way to handle DRIVERS_SOURCES in CMake.
2010-04-26 13:00:41 +00:00
Romuald Conty
854cfe15ec
Fix ARYGON detection. Rename acConnect to acPort. Now use snprintf and strncpy (see Issue 78)
2010-04-22 10:22:41 +00:00
Romuald Conty
3e16031877
Fix ARYGON driver build (missing comma).
2010-04-22 09:01:22 +00:00
Romuald Conty
367e14dcc0
Prevent from potential buffer-overflows.
2010-04-21 10:58:04 +00:00
Romuald Conty
fa1f9a1ff6
Fix device name: snprintf could not be used to append something to source string.
2010-04-21 10:50:29 +00:00
Romuald Conty
d9ec086beb
Replace some sprintf with snprintf to prevent from buffer-overflow.
2010-04-21 10:23:11 +00:00
Romuald Conty
ce6f7f2c84
Fix potential UART speed problem while autoprobing. Extract communication test from pn532_uart_wakeup().
2010-04-21 10:19:26 +00:00
Romuald Conty
942dcfa631
PN532_UART: prevent from blocking when device doesn't reply correctly to wakeup command.
2010-04-20 15:05:57 +00:00
Romuald Conty
e3ff11eb46
Fix warnings "no previous prototype for ..." on bitutils.[hc]
2010-04-20 09:44:27 +00:00
Romuald Conty
2ab522950f
Remove uart_cts() since the function is defined but never used. Fix Issue 71
2010-04-20 08:48:41 +00:00
Romain Tartiere
204130477e
(libnfc-less-bitutils-more-ponies) MFT
2010-04-17 13:45:00 +00:00
Romain Tartiere
be3f152d3c
Fix a few more warnings.
2010-04-17 13:42:08 +00:00
Romain Tartiere
086e24c407
(libnfc-less-bitutils-more-ponies) Fix build on windows:
...
- do not depends on byte swapping functions / macros;
- add basic err.h functionalities.
2010-04-16 22:38:45 +00:00
Romain Tartiere
3e8e1c8844
Fix build on Windows (using cmake and nmake).
2010-04-16 20:39:56 +00:00
Romain Tartiere
3820c34f28
(libnfc-less-bitutils-more-ponies) MFT
2010-04-16 19:27:49 +00:00
Romain Tartiere
0e6719908b
(libnfc-less-bitutils-more-ponies) Update CMakeLists.txt.
2010-04-16 17:42:00 +00:00
Romain Tartiere
5e452dbb13
Fix cmake breakage introduced in r352:
...
error: 'for' loop initial declaration used outside C99 mode
2010-04-16 17:10:08 +00:00
Romain Tartiere
10baef235f
(libnfc-less-bitutils-more-ponies) Get rid of bitutils.[hc] (part 1).
...
- New API function append_iso14443a_crc();
- Add a PRINT_HEX macro for driver debugging (replaces print_hex function from bitutils.c);
- Move bit-mirroring related functions to libnfc/mirror-subr.[hc];
- Move iso14443 related functions to libnfc/iso14443-subr.c;
- Move libnfc/bitutils.c hex-dumping code to examples/nfc-utils.c;
- Replace calls to swap_endian32() and swap_endian64() functions with calls to bswap32() and bswap64 provided by endian.h.
And while I am here:
- Fix the DBG macro so that it does not throw warning at compile time.
2010-04-16 16:38:57 +00:00
Romain Tartiere
0b301d8ff6
Add missing documentation lines.
2010-04-16 13:00:33 +00:00
Romuald Conty
b55400a0d5
configure.ac rework
...
- Put libusb and PC/SC check in m4 macros.
- Suppress --disable-pcsclite and --disable-libusb
- Add --with-drivers option: we now could choose which driver to build. without this option a default set is build (ATM all drivers except PN532_UART)
2010-04-15 14:41:13 +00:00
Romuald Conty
b747573dc7
PN532_UART readers could now poll using PN532 hardware feature. This commit should fix Issue 56 too.
2010-04-14 13:28:24 +00:00
Romuald Conty
064b7c4b41
Revert libnfc/drivers.h (from r371), this file should not have been commited (in r372).
...
Second pointy hat to: me again
2010-04-14 10:44:12 +00:00
Romuald Conty
0a08ef00c2
Fix recently changed wakeup function for pn532_uart driver.
...
Pointy hat to: me ;)
2010-04-14 10:39:18 +00:00
Romuald Conty
a3f68b566d
Raise up timeout value in UART, this is tricky (ugly?) hack to allow low speed UART device to run nfc-emulate.
2010-04-13 14:36:02 +00:00
Romuald Conty
2766cd8822
ARYGON readers could now poll using PN532 hardware feature.
2010-04-13 14:11:10 +00:00
Romuald Conty
24e7b20d04
Add debug output when pnd->pdc->tranceive() failed.
2010-04-13 12:48:52 +00:00