Audrey Diacre
81d76c8c70
check result of nfc_disconnect() function in examples/nfc-dep-initiator.c
2012-01-05 10:56:36 +00:00
Audrey Diacre
c41d7de8ca
nfc_initiator_select_dep_target() function returns nox libnf error code and fix some uses of nfc_initiator_transceive_bytes() function.
2011-12-21 09:15:44 +00:00
Audrey Diacre
145cc4b2ad
nfc_initiator_transceive_bytesfunction now returns libnfc error code on failure and received bytes count on success.
2011-12-19 14:37:22 +00:00
Romuald Conty
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.
2011-12-19 00:23:21 +00:00
Audrey Diacre
98355d36a7
nfc_initiator_init returns now error code and nfc_initiator_list_passive_targets returns now the number of targets found or error code.
2011-12-15 11:46:14 +00:00
Romuald Conty
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
2011-12-06 10:05:35 +00:00
Audrey Diacre
5c7454a2f7
Timeout is now integer.
2011-11-25 11:37:30 +00:00
Audrey Diacre
784a2f86a2
Change byte_t type to uint8_t (Fixes Issue 147)
2011-11-24 10:54:42 +00:00
Audrey Diacre
c718fafee7
Massive code clean up: (Fixes Issue 161)
...
- Remove typedef from internal structs
- Remove _t suffix from types
- Fix tests using connstrings
2011-11-23 15:55:40 +00:00
Romuald Conty
8c7b61eaba
move some examples to utils/ since they are not examples anymore :) (Fixes Issue 164)
2011-09-30 11:33:31 +00:00
Romain Tartiere
481fb4943f
- Add timeout capablities to nfc_initiator_transceive_bytes(), nfc_target_send_bytes() and nfc_target_receive_bytes();
...
- Bump version to 1.5.1.
2011-09-22 13:03:47 +00:00
Romuald Conty
72422e819b
examples/nfc-dep-*: disconnect from NFC device on error.
2011-05-05 09:17:38 +00:00
Romuald Conty
6974fb4562
examples/nfc-dep-*: add signal handler to use the abort mecanism.
2011-04-27 15:10:14 +00:00
Romuald Conty
4b6ba0aa3c
Always set the size of Rx buffer (prevent from overflow)
2011-03-02 15:02:30 +00:00
Romuald Conty
5e9e177319
Change examples license for the sake of consistency: LGPL covers library, re-usable examples code is now under BSD license.
2010-11-17 14:27:11 +00:00
Philippe Teuwen
2b24a0a7f5
Examples: more ISO14443A info decoding & verbose mode for nfc-list
2010-10-19 12:50:52 +00:00
Romuald Conty
507a23b708
Improve nfc_target_init()
2010-10-14 13:31:36 +00:00
Romuald Conty
60c9da598a
Support different baud rates for nfc_initiator_select_dep_target()
2010-10-14 13:03:23 +00:00
Romuald Conty
af88da1a9c
Replace nfc_target_info_t with nfc_target_t in API function, we now have a coherent struct to handle nfc_target_t, use it!
2010-10-14 11:44:43 +00:00
Romuald Conty
adba90684d
introduce nfc_dep_mode_t type instead of bool in nfc_initiator_select_dep_target()
2010-10-13 19:59:39 +00:00
Romuald Conty
d289eabc36
Attempt to provide clean types for API
2010-10-13 17:43:23 +00:00
Romuald Conty
9020014160
Rename nfc_modulation_t as pn53x_modulation_t
2010-10-13 15:39:52 +00:00
Romuald Conty
602787bd03
We can now use an nfc_dep_info_t to specify DEP info as initiator.
2010-10-11 14:49:08 +00:00
Romuald Conty
b8395d9506
Rename nfcip-* examples to nfc-dep-*
2010-10-08 20:36:13 +00:00