Commit graph

  • 39216f9d7c Do not rely on int to locate USB bus and devices: FreeBSD's libusb use path of devices in /dev for bus (/dev/usb) and devices (e.g. /dev/ugen0.3) so directly Compare strings. Romain Tartiere 2012-01-18 13:13:36 +00:00
  • 207199dc34 examples, test and utils use now nfc_exit() function. Audrey Diacre 2012-01-18 11:36:18 +00:00
  • 1d55b6f8c6 examples, test and utils use now nfc_init() function. Audrey Diacre 2012-01-18 11:09:01 +00:00
  • d1b0e93e8e add initialization and deinitialization. Audrey Diacre 2012-01-18 09:53:45 +00:00
  • 38bdfe3281 pn53x_usb: minor code clean up. Romuald Conty 2012-01-18 09:39:33 +00:00
  • 324af418db rename nfc_connect() function to nfc_open(). Audrey Diacre 2012-01-17 15:21:56 +00:00
  • 9eb37b3eee rename nfc_disconnect() function to nfc_close(). Audrey Diacre 2012-01-17 14:52:39 +00:00
  • 9d3ca39a44 remove _t suffix from nfc_driver_t type. Audrey Diacre 2012-01-17 14:17:01 +00:00
  • ba58138aa9 PRIu32 is defined in inttypes.h. Romain Tartiere 2012-01-17 13:51:58 +00:00
  • 2d393bff91 Make these function accept no argument (instead of any). Romain Tartiere 2012-01-15 11:06:24 +00:00
  • 84a864f8d3 test/test_device_modes_as_dep: increase duration of sleep() between nfc_idle() and nfc_target_init() to wait for the end of nfc_initiator_poll_dep_target(). Audrey Diacre 2012-01-13 14:41:27 +00:00
  • bd0de9bd61 test: rename test_dep to test_device_modes_as_dep and improve it. Audrey Diacre 2012-01-13 09:58:47 +00:00
  • 0e2c60d0fa fix some last_error with result of previous function. Audrey Diacre 2012-01-12 13:52:48 +00:00
  • cc8d4f68ab tests: add test_dep which tests states of 2 devices. Audrey Diacre 2012-01-12 08:49:19 +00:00
  • f9a464e256 nfc_perror() function displays now LIBNFC_ERROR. Audrey Diacre 2012-01-11 08:47:14 +00:00
  • e86d08218b add nfc_initiator_poll_dep_target() Romuald Conty 2012-01-10 14:17:18 +00:00
  • efa86f0e35 fix various minor mistakes, ajust timeouts Romuald Conty 2012-01-10 14:10:44 +00:00
  • 1ec504e163 nfc_list_devices() function returns now the number of devices found. Audrey Diacre 2012-01-10 10:35:36 +00:00
  • 00818e048c rx buffer size parameter of nfc_target_init() function is now a const size_t. Audrey Diacre 2012-01-09 11:26:57 +00:00
  • 5e796e0a26 rx buffer size parameter of pn53x_TgInitAsTarget() function is now a const size_t. Audrey Diacre 2012-01-09 10:47:35 +00:00
  • c10b473361 rx buffer size parameter of pn53x_transceive() function is now a const size_t. Audrey Diacre 2012-01-09 10:24:00 +00:00
  • 7df3bb5aeb various minor fixes/enhancements Romuald Conty 2012-01-06 13:08:16 +00:00
  • e15f2eedbb rename lastCommand by last_command. Audrey Diacre 2012-01-06 13:07:37 +00:00
  • 48e92149e4 drop log4c support Romuald Conty 2012-01-06 13:05:10 +00:00
  • b41edfb0b4 rename ui8LastCommand by lastCommand. Audrey Diacre 2012-01-06 09:20:55 +00:00
  • 3b8598dde8 libnfc/test: fix some forgotten modifications due to the last revision. Audrey Diacre 2012-01-06 08:36:24 +00:00
  • 22bea8d99b nfc_target_receive_*() need to know rx buffer size Romuald Conty 2012-01-05 21:35:02 +00:00
  • 601105ef79 fix bad cast done in last revision. Audrey Diacre 2012-01-05 17:03:38 +00:00
  • 642f9a38f7 nfc_target_receive_bytes() function does not now use pszRx as parameter because this function returns it. Audrey Diacre 2012-01-05 16:33:55 +00:00
  • 7e7ee3299e nfc_target_receive_bits() function does not now use pszRxBits as parameter because this function returns it. Audrey Diacre 2012-01-05 15:50:07 +00:00
  • 239fd750c4 add timeout on nfc_target_init() and this function returns now received bytes count on success. Audrey Diacre 2012-01-05 15:10:11 +00:00
  • c80ebdca25 nfc_abort_command() function returns now 0 on success and libnfc error code on failure and fix some warnings. Audrey Diacre 2012-01-05 14:49:02 +00:00
  • 8b07a5f4c7 libnfc/drivers: pn53x_usb_init() function returns now 0 on success and libnfc error code on failure. Audrey Diacre 2012-01-05 14:05:43 +00:00
  • 5d4f22c548 libnfc/drivers: pn532_uart_ack() and arygon_reset_tama() functions return now libnfc error code on failure. Audrey Diacre 2012-01-05 13:56:12 +00:00
  • c30e9eed36 send/receive callbacks from internal chip io return now libnfc error code on failure. Audrey Diacre 2012-01-05 13:24:41 +00:00
  • 81d76c8c70 check result of nfc_disconnect() function in examples/nfc-dep-initiator.c Audrey Diacre 2012-01-05 10:56:36 +00:00
  • 5a1f0c2115 check result of nfc_initiator_init() function in examples/ and utils/ Audrey Diacre 2012-01-05 10:33:50 +00:00
  • 331234713d nfc_idle() function returns now 0 on success and libnfc error code on failure. Audrey Diacre 2012-01-05 08:57:16 +00:00
  • 6ad07c3efb pn53x_writeback_register() function returns now 0 on success and libnfc error code on failure. Audrey Diacre 2012-01-05 08:42:22 +00:00
  • 93b34fa70b enhance new error handling - add accessor to last error occured - add new public error NFC_ETGRELEASED (Target Released) Romuald Conty 2012-01-05 01:39:10 +00:00
  • 125553c72e verbose option back for nfc-list, and newly implemented in nfc-poll Romuald Conty 2012-01-04 21:29:43 +00:00
  • af22d34d57 fix some return codes and error checkings Romuald Conty 2012-01-04 20:50:05 +00:00
  • 254053b940 fix few minor bugs: - timeout values handling in pn53x_transceive() - check error code after filling it in pn53x_transceive() - fix pn53x_check_communication() return code - lower timeout default values - fix arygon_abort() return code Romuald Conty 2012-01-04 20:02:51 +00:00
  • 52c72383f1 pn53x_build_frame() function returns now 0 on success and libnfc error code on failure. Audrey Diacre 2012-01-04 16:44:40 +00:00
  • e87241184a pn53x_check_ack_frame() and pn53x_check_error_frame() functions return now 0 on success and libnfc error code on failure. Audrey Diacre 2012-01-04 16:32:16 +00:00
  • 4b373263e4 pn53x_idle() returns now 0 on success and libnfc error code on failure. Audrey Diacre 2012-01-04 16:26:57 +00:00
  • 7e1c776bc1 pn53x_check_communication() returns now 0 on success and libnfc error code on failure. Audrey Diacre 2012-01-04 16:19:24 +00:00
  • 240cdcddab pn53x_decode_target_data() returns now 0 on success and libnfc error code on failure. Audrey Diacre 2012-01-04 16:11:30 +00:00
  • d4c5476652 pn53x_get_firmware_version() returns now 0 on success and libnfc error code on failure.. Audrey Diacre 2012-01-04 16:07:57 +00:00
  • c1faa48f54 fix nfc_target_init(). Audrey Diacre 2012-01-04 15:59:34 +00:00
  • a41b2b0da8 nfc_initiator_transceive_bytes_timed() function does not now use pszRx as parameter because this function returns it. Audrey Diacre 2012-01-04 15:53:41 +00:00
  • b699743973 nfc_initiator_transceive_bits_timed() function does not now use pszRxBits as parameter because this function returns it. Audrey Diacre 2012-01-04 15:43:08 +00:00
  • 6e7092b160 nfc_initiator_transceive_bits() function does not now use pszRxBits as parameter because this function returns it. Audrey Diacre 2012-01-04 15:30:42 +00:00
  • 61c3e5b814 pn53x_wrap_frame() and pn53x_unwrap_frame() functions return now frame length in bits on success and libnfc error code on failure. Audrey Diacre 2012-01-04 14:59:16 +00:00
  • 0de1136037 nfc_target_receive_bits() function returns now received bits count on success and libnfc error code on failure. Audrey Diacre 2012-01-04 13:33:53 +00:00
  • 951dde8143 nfc_target_send_bits() function returns now sent bits count on success and libnfc error code on failure. Audrey Diacre 2012-01-04 13:27:15 +00:00
  • 1c49329ffa nfc_initiator_transceive_bits_timed() function returns now received bits count on success and libnfc error code on failure. Audrey Diacre 2012-01-04 13:18:11 +00:00
  • d02da0db64 nfc_initiator_transceive_bytes_timed() function returns now received bytes count on success and libnfc error code on failure. Audrey Diacre 2012-01-04 11:54:55 +00:00
  • 61074f3497 nfc_initiator_transceive_bits() function returns now received bits count on success and libnfc error code on failure. Audrey Diacre 2012-01-04 11:46:07 +00:00
  • d6477df7a6 doc: quick start example minor fix (make distcheck OK) Romuald Conty 2011-12-22 17:40:22 +00:00
  • 9c1371dcca nfc_target_send_bytes() function returns now sent bytes count on success and libnfc error code on failure. Audrey Diacre 2011-12-22 15:59:08 +00:00
  • ac6f652368 nfc_target_receive_bytes() function returns now received bytes count on success and libnfc error code on failure. Audrey Diacre 2011-12-22 15:39:51 +00:00
  • a40e63ab9d test/tes_dep_*: now check there is one or more selected dep target. Audrey Diacre 2011-12-22 14:16:12 +00:00
  • 658fceb7fc nfc_initiator_select_dep_target() function returns now selected D.E.P targets count on success. Audrey Diacre 2011-12-22 13:28:41 +00:00
  • b864215d63 pn53x_initiator_poll_target() function returns now polled targets count on success. Audrey Diacre 2011-12-22 11:16:27 +00:00
  • 340e80d7a8 pn53x_initiator_select_passive_target_ext() function now does not return error when there is no target. Audrey Diacre 2011-12-21 11:52:02 +00:00
  • f93bc59504 nfc_initiator_select_passive_target() function returns now the selected passive targets count on success. Audrey Diacre 2011-12-21 11:33:21 +00:00
  • ff066e394d nfc_initiator_deselect__target() function returns now libnf error code. Audrey Diacre 2011-12-21 09:53:16 +00:00
  • c41d7de8ca nfc_initiator_select_dep_target() function returns nox libnf error code and fix some uses of nfc_initiator_transceive_bytes() function. Audrey Diacre 2011-12-21 09:15:44 +00:00
  • 0f5cc5683d nfc_initiator_poll_target() function returns now libnfc error code. Audrey Diacre 2011-12-20 15:46:35 +00:00
  • 42276ccd14 the following functions now return libnfc error code: _ pn53x_set_tx_bits _ pn53x_read_register _ pn53x_InAutoPoll _ pn53x_TgInitAsTarget _pn53x_init Audrey Diacre 2011-12-20 14:41:17 +00:00
  • c5f05f0592 pn53x_set_parameters() function returns now libnfc error code. Audrey Diacre 2011-12-20 13:37:54 +00:00
  • 9c5ec3c4e1 the following functions now return libnfc error code: _pn53x_write_register() _pn53x_WriteRegister() _pn53x_transceive() _pn53x_SAMConfiguration() _pn53x_PowerDown() _pn53x_InListPassiveTarget() _pn53x_InDeselect() _pn53x_InRelease() _pn53x_RFConfiguration__* Audrey Diacre 2011-12-20 11:25:33 +00:00
  • 103485518c nfc_initiator_select_passive_target() function returns now libnfc error code. Audrey Diacre 2011-12-19 16:27:50 +00:00
  • 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