Commit Graph

  • ba2a7cfe2e nfc_target_init() function returns now 0 on succes and libnfc error code on failure. Audrey Diacre 2011-12-19 15:35:37 +00:00
  • 145cc4b2ad nfc_initiator_transceive_bytesfunction now returns libnfc error code on failure and received bytes count on success. Audrey Diacre 2011-12-19 14:37:22 +00:00
  • 31f67be83e add some forgotten NFC_SUCCESS returns in pn53x_set_property_bool function and fix some return types in test/ Audrey Diacre 2011-12-19 14:05:02 +00:00
  • 6eb2499aa8 test/* uses the new nfc_device_get_name() function. Audrey Diacre 2011-12-19 09:15:42 +00:00
  • bf7c36d9bb less structs and defines publicly exposed - nfc_device is now an opaque type; - PN53x specific errors are not public anymore; - nfc_device_name() renamed to nfc_device_get_name() for the sake of consistency; - examples/*, utils/* uses the new nfc_device_get_name() function instead of access directly to struct's content; - new error defined: NFC_ERFTRANS for notifying about RF transmission error, its used by mifare.c to detect permissions error on mifare; - drivers initiator_transceive_bytes() function now returns libnfc's error code on failure (<0), and received bytes count on success (>=0); - remove some unused errors. Romuald Conty 2011-12-19 00:23:21 +00:00
  • 9bdc20353c nfc_device struct is not exposed as public API anymore (partial commit) - split libnfc's errors and chip's errors - fix nfc_property enum Romuald Conty 2011-12-15 16:02:38 +00:00
  • 98355d36a7 nfc_initiator_init returns now error code and nfc_initiator_list_passive_targets returns now the number of targets found or error code. Audrey Diacre 2011-12-15 11:46:14 +00:00
  • a615d969fd nfc_properties replace now nfc_options and nfc_configure is replaced by nfc_device_set_property_bool which returns error code. Audrey Diacre 2011-12-14 16:01:00 +00:00
  • c181cb35ec set correctly default timeout values Romuald Conty 2011-12-14 15:03:29 +00:00
  • 26b9c28f48 new properties to tune timeouts: - add nfc_properties (will replace nfc_options) - introduce some error codes - rework functions to use the new timeout_command value Romuald Conty 2011-12-14 13:27:11 +00:00
  • 8b76d55fdc test/test_dep_active: fix multiple active DEP baudrates. Audrey Diacre 2011-12-14 10:31:08 +00:00
  • 9906e11572 oups: forgot to uncomment a line. Audrey Diacre 2011-12-09 16:36:29 +00:00
  • b3b14a3fb8 debian: udev rules file renamed Romuald Conty 2011-12-09 16:14:50 +00:00
  • 2ac8df2b28 contrib: move udev and devd files into contrib/ Romuald Conty 2011-12-09 16:13:32 +00:00
  • 1e66caecd6 test/test_dep_active: add new DEP active test Audrey Diacre 2011-12-09 13:55:35 +00:00
  • cc2622c49f test/test_dep*: rename test_dep to test_dep_passive and add new 106kbps pass. Audrey Diacre 2011-12-09 13:41:51 +00:00
  • 90c05c7d13 Add a printf-based logging when log4c is not available (I experiemented some bugs using log4c) Romuald Conty 2011-12-07 14:59:40 +00:00
  • c286eec920 DEP enhancements: - Add timeout on InJumpForDEP (pn53x) and initiator_select_dep (libnfc API) - test_dep now works again (except 424Kbps) - Fix ndi.ndm feeling when select a DEP target Important: test_dep does not work on PN53x_USB devices after running previous tests Romuald Conty 2011-12-06 10:05:35 +00:00
  • 3b657ee547 quick_start_example1 is now compiled when running make check or distcheck (Fixes Issue 178) Audrey Diacre 2011-11-30 11:21:01 +00:00
  • e76e531d2d pn53x_usb: clean timeout handling. Romuald Conty 2011-11-25 16:13:40 +00:00
  • 297a8566a0 Oups, too quick replacement commited in r1183 Audrey Diacre 2011-11-25 15:47:24 +00:00
  • 52bc5853d8 Remove whitespace after star symbol for pointers Audrey Diacre 2011-11-25 15:21:10 +00:00
  • 5a9a778879 Remove whitespace after star symbol for pointers Audrey Diacre 2011-11-25 13:32:29 +00:00
  • 90b5961b40 Rename fixed_timeout to timeout_tv and cleam useless allocation. Audrey Diacre 2011-11-25 13:30:13 +00:00
  • 5c7454a2f7 Timeout is now integer. Audrey Diacre 2011-11-25 11:37:30 +00:00
  • dad3603936 Remove whitespace after star symbol for pointers Audrey Diacre 2011-11-24 16:45:27 +00:00
  • 9e67423cff Fix some warnings in test. Audrey Diacre 2011-11-24 11:12:01 +00:00
  • 784a2f86a2 Change byte_t type to uint8_t (Fixes Issue 147) Audrey Diacre 2011-11-24 10:54:42 +00:00
  • ce846931bc Move nfc-emulate-forum-tag2 from utils to examples. Audrey Diacre 2011-11-24 10:27:02 +00:00
  • 322eec6fb1 Define macro to cast to serial_port_unix. Audrey Diacre 2011-11-24 10:20:36 +00:00
  • c718fafee7 Massive code clean up: (Fixes Issue 161) - Remove typedef from internal structs - Remove _t suffix from types - Fix tests using connstrings Audrey Diacre 2011-11-23 15:55:40 +00:00
  • 136cfdf48d Implement driver for ACR122S device Anugrah Redja Kusuma 2011-11-23 03:05:12 +00:00
  • 54b6827971 add missing manpages. Audrey Diacre 2011-11-22 15:23:18 +00:00
  • 63f168440b Provide a (poor) logging capability when log4c is not available but DEBUG is enabled. Romuald Conty 2011-10-27 15:14:18 +00:00
  • 2e2d091bfd nfc-list: continue to attempt to reach devices after a connection failure. Romuald Conty 2011-10-27 13:46:13 +00:00
  • 6752951084 Refresh quick_start_example1.c according to new API Romuald Conty 2011-10-18 16:07:13 +00:00
  • 789cb13dec Avoid readline auto-detection when cross-compiling. Still feasible to use readline if you specify the path to it. Philippe Teuwen 2011-10-18 13:28:01 +00:00
  • b4ebb4510d Removes libusb types workaround (r200) as it seems to not be needed anymore but may disturb compiler. Romuald Conty 2011-10-18 11:03:54 +00:00
  • b7f928a24c Update ChangeLog libnfc-1.5.1 Romuald Conty 2011-10-17 16:40:24 +00:00
  • b6c23c7c0e FixBundle.cmake.in was missing from released archives. (Thanks to GruGue from the libnfc forum) Romuald Conty 2011-10-17 13:11:37 +00:00
  • 55daa29a7c Allow to connect to a device using a connection string: - Provide a nfc_get_default_device() that allow to grab the connstring stored in LIBNFC_DEFAULT_DEVICE environnement variable or returns the first available device if not set; - nfc_connect(NULL) now takes the default device (see nfc_get_default_device()); - Removes nfc_driver_desc_t from public types - Defines nfc_connstring as char[1024] - examples/*: use nfc_connstring - examples/nfc-poll: now uses only the default device (instead of all devices availables) - Removes parse_args() from nfc-utils.[hc] Romuald Conty 2011-10-17 13:03:56 +00:00
  • 47f4883444 configure now checks for int16_t Romuald Conty 2011-10-17 12:32:16 +00:00
  • dc842a844c examples/nfc-read-forum-tag3: add new example to read a NFC Forum Tag Type 3 Romuald Conty 2011-10-10 00:40:34 +00:00
  • 57db10acf0 m4/libusb: search for "libusb-legacy" module if "libusb" module is not found Romuald Conty 2011-10-09 19:54:25 +00:00
  • 1372c1df19 ECONNABORTED is not defined under windows Romuald Conty 2011-10-05 22:42:55 +00:00
  • b24191a9b9 Fix compilation using cmake Romuald Conty 2011-10-04 21:43:05 +00:00
  • 8fa83ac70f Fix infinite software polling Romuald Conty 2011-10-04 21:42:06 +00:00
  • ace9fb27b1 Fix indent in cmake/modules/FindLIBUSB.cmake Romuald Conty 2011-10-04 21:41:15 +00:00
  • dccfd65c80 Add software polling for non-PN532 equipped device (Fixes Issue 136) Romuald Conty 2011-10-03 11:19:08 +00:00
  • 66e3ea6146 nfc-relay-picc.1 was missing from tarball Romuald Conty 2011-10-03 11:16:42 +00:00
  • b1a30e3e3b drivers/pn53x_usb: fix timeout computing Romuald Conty 2011-10-03 08:59:21 +00:00
  • a2eb6a1f49 Update ChangeLog Romuald Conty 2011-10-02 21:52:05 +00:00
  • b2666dea15 windows port improved: - PCSC headers/libs are not a requierement sif you dont select ACR122 driver - uart_win32 implementation now handles timeouts Romuald Conty 2011-10-01 14:50:53 +00:00
  • d286a3c4b7 make distcheck OK Romuald Conty 2011-10-01 13:29:18 +00:00
  • ea0ffa615a Remove (g)indent references. Unfortunately, there is no automatic way that is good to indent the code. Developers need to take care about indent themself ;) (Fixes Issue 84) Romuald Conty 2011-10-01 12:33:11 +00:00
  • 03a6f5e29c Update examples and utils manpages.(Fixes Issue 159) Romuald Conty 2011-10-01 12:26:11 +00:00
  • 5ecf382dfc windows: Oups... timeout is a pointer... Romuald Conty 2011-10-01 09:59:27 +00:00
  • afd015f1b7 Attempt to provide a Windows implementation of timeouts handling in UART Romuald Conty 2011-09-30 14:02:51 +00:00
  • 8c7b61eaba move some examples to utils/ since they are not examples anymore :) (Fixes Issue 164) Romuald Conty 2011-09-30 11:33:31 +00:00
  • 311d12feef Make a copy of the provided timeout before calling select(2). Romain Tartiere 2011-09-29 15:01:48 +00:00
  • 8f7834c625 drivers/arygon,pn532_uart,pn53x_usb: all PN53x commands are now cancelable Romuald Conty 2011-09-29 14:53:52 +00:00
  • 49ab6a7f31 raise up loggin level when PCSC context is not found (e.g. under POSIX system, pcscd is not running) Romuald Conty 2011-09-29 11:59:34 +00:00
  • 590e3910de Document new timeout parameter Romuald Conty 2011-09-29 09:49:08 +00:00
  • a12574e095 Add a special mention to be sure pcscd is running when using ACR122 driver... Romuald Conty 2011-09-29 09:10:14 +00:00
  • 87c13825af drivers/pn53x_usb: rework timeout usage Romuald Conty 2011-09-22 16:21:22 +00:00
  • 481fb4943f - Add timeout capablities to nfc_initiator_transceive_bytes(), nfc_target_send_bytes() and nfc_target_receive_bytes(); - Bump version to 1.5.1. Romain Tartiere 2011-09-22 13:03:47 +00:00
  • e94513fdb7 libpcsclite is not really required. Romain Tartiere 2011-09-22 10:01:37 +00:00
  • f6b582cf2b windows: Remove DGB/WARN/ERROR obsolete macros usage. Romuald Conty 2011-09-21 06:54:53 +00:00
  • e4524bc810 chips/pn53x: add RFConfiguration wrappers Romuald Conty 2011-09-20 22:43:45 +00:00
  • b33fb81234 logging: fix LOG_CATEGORY and show the last command status. Romuald Conty 2011-09-20 18:22:47 +00:00
  • cf99796a77 Removes semaphore.h depends. Romuald Conty 2011-09-20 16:23:48 +00:00
  • ca8bd1df91 logging: remove semaphore usage since libnfc is not threaded and log4c does handle threaded cases itself. (Should ease Windows compiling) Romuald Conty 2011-09-20 14:07:40 +00:00
  • c4b45cd390 debian: add nfc-mfsetuid and nfc-emulate-nfcforum-tag2 to libnfc-example package. Romuald Conty 2011-09-13 13:12:54 +00:00
  • 0f3b733239 directory include/nfc does not have iso7816.h file. Romuald Conty 2011-09-12 19:50:21 +00:00
  • f6fc637d77 Soooo fragile :-)))) Romain Tartiere 2011-09-12 17:05:00 +00:00
  • e8eec583ed Enhance logging system: * Removes internal DBG/WARN/ERR macros (but keep them in examples); * Removes almost all DEBUG define references; * Uses the flexible log4c library to log all messages. Romuald Conty 2011-09-12 14:50:01 +00:00
  • 580768a489 pn53x-diagnose: uses config.h if present Romuald Conty 2011-09-12 14:46:58 +00:00
  • aff1a51eb7 Threaded tests need cutter >= 1.1.8 Romuald Conty 2011-09-12 14:33:26 +00:00
  • c30453d176 Add a threaded DEP test to check DEP communication between two local devices Romuald Conty 2011-09-12 14:30:59 +00:00
  • d18cae4f06 Enable all drivers under Debian Romuald Conty 2011-09-12 14:28:50 +00:00
  • 24881bd32d Fix accidental overwrite of Mifare special trailer block in unlocked read Adam Laurie 2011-09-07 09:41:04 +00:00
  • 028f310576 Unlocked read and format/wipe of special Mifare cards Adam Laurie 2011-09-06 21:17:38 +00:00
  • 1a07613ce2 -h usage explicitly state Chinese clone cards required for block 0 write Adam Laurie 2011-09-06 11:00:01 +00:00
  • 8d6f0d7321 Add man page for nfc-mfsetuid Adam Laurie 2011-09-06 09:47:50 +00:00
  • e401f4ec4e Write special Mifare 1K cards, including Block 0 / UID Adam Laurie 2011-09-05 14:40:56 +00:00
  • fa7084fa77 removes the libusb-win32 workaround: libusb-win32 project released a new stable version which fixes the infinite timeout issue. (Thanks to Ergeerts Glenn) Romuald Conty 2011-08-08 10:02:47 +00:00
  • 752c247761 Add cast to fix build on 32bit systems. Romain Tartiere 2011-07-05 08:00:11 +00:00
  • 676477e20c rework the way to determine which command is needed to send/receive a frame as target. Romuald Conty 2011-06-30 17:05:59 +00:00
  • 3a1cb72681 examples/nfc-emulate-forum-tag2: add new example to emulate a NFC Forum Tag Type 2 Romuald Conty 2011-06-30 14:59:47 +00:00
  • 10d9e30615 examples/nfc-emulate-forum-tag4: add document references. Romuald Conty 2011-06-30 14:24:47 +00:00
  • 84918fd075 Fix invalid memory access when a new driver is probing for hardware and the number of requested devices was already reached. Romain Tartiere 2011-06-30 13:35:40 +00:00
  • fd19773c21 drivers/pn53x_usb: Make valgrind more happy :) Romuald Conty 2011-06-28 14:05:40 +00:00
  • eec2794d2d drivers/pn532_uart,arygon: Make valgrind happy with UART-based drivers Romuald Conty 2011-06-28 13:16:44 +00:00
  • e6051ceca4 chip/pn53x: clean up SAMConfiguration usage. Romuald Conty 2011-06-27 17:12:25 +00:00
  • eb70f3842e Error handling improvement: - Attempt to sort errors depending their source - Rename DE* errors to differenciate Device-Error and Driver-Error - Add ENOTIMPL error to raise a error when a feature is not (yet) implemented in libnfc Romuald Conty 2011-06-27 16:31:10 +00:00
  • 9c314d5652 Shrink InJumpForDEP frame size according to user manual. Romuald Conty 2011-06-27 12:33:55 +00:00
  • 904f41e0f7 drivers/pn53x*: use shared pn53x_ack_frame[] and pn53x_nack_frame[] instead of local declaration. Romuald Conty 2011-06-27 10:33:55 +00:00
  • 699e9008d1 Move ISO14443-3 UID cascading in a dedicated function. Romuald Conty 2011-06-27 10:19:00 +00:00
  • 0b42cbfb8f examples/nfc-emulate-forum-tag4: this example now fails with ENOTSUPP when used with a non-PN532 chip. Romuald Conty 2011-06-27 09:14:19 +00:00
  • 7b6baafd1d example/nfc-relay-picc: Move windows related code into contrib/win32 Romuald Conty 2011-06-27 08:56:38 +00:00