Ludovic Rousseau
96b1643522
Remove an explicit cast and fix a compiler warning
...
nfc-emulate-tag.c:180: warning: function declaration isn’t a prototype
2012-05-13 12:46:33 +00:00
Ludovic Rousseau
a7325ffded
Fix compiler warnings:
...
nfc-emulate-tag.c:65: warning: no previous prototype for ‘intr_hdlr’
nfc-emulate-tag.c:76: warning: no previous prototype for ‘target_io’
nfc-emulate-tag.c:139: warning: no previous prototype for ‘nfc_target_emulate_tag’
2012-05-13 12:44:13 +00:00
Ludovic Rousseau
b65c133f80
stdin is already defined by stdio.h
...
Fix compiler warnings:
pn53x-tamashell.c: In function ‘main’:
pn53x-tamashell.c:79: warning: nested extern declaration of ‘__stdinp’
pn53x-tamashell.c:79: warning: redundant redeclaration of ‘__stdinp’
/usr/include/stdio.h:164: warning: previous declaration of ‘__stdinp’
was here
2012-05-13 12:42:51 +00:00
Ludovic Rousseau
e60f4ef870
Fix compiler warning
...
pn53x-tamashell.c:106: warning: initialization discards qualifiers from
pointer target type
2012-05-13 12:41:17 +00:00
Ludovic Rousseau
b3e21fecd2
Fix compiler warnings
...
nfc-poll.c:57: warning: no previous prototype for ‘stop_polling’
nfc-poll.c:67: warning: no previous prototype for ‘print_usage’
2012-05-13 12:39:17 +00:00
Ludovic Rousseau
da25554128
Remove an explicit cast and fix a compiler warning
...
nfc-relay.c:107: warning: function declaration isn’t a prototype
2012-05-13 12:38:18 +00:00
Ludovic Rousseau
43569e22e4
Fix compiler warnings
...
nfc-relay.c:65: warning: no previous prototype for ‘intr_hdlr’
nfc-relay.c:73: warning: no previous prototype for ‘print_usage’
2012-05-13 12:36:59 +00:00
Ludovic Rousseau
61ba0478cd
Fix compiler warning
...
pn53x-sam.c:56: warning: no previous prototype for ‘wait_one_minute’
2012-05-13 12:32:30 +00:00
Romuald Conty
3eba0e9b54
Prepare libnfc 1.6.0-rc1
2012-03-01 12:00:23 +00:00
Audrey Diacre
3d393e58a9
add some Doxygen documentation.
2012-01-31 09:49:43 +00:00
Audrey Diacre
26245add73
Merge libnfc-1.5-new-api branch to trunk (r1168:1303).
2012-01-25 09:56:05 +00:00
Audrey Diacre
5a475cf074
add some whitespaces
2012-01-20 09:17:38 +00:00
Audrey Diacre
4c011279ff
add context to nfc_init(), nfc_exit(), nfc_open() and nfc_list_devices() functions.
2012-01-18 16:22:06 +00:00
Audrey Diacre
207199dc34
examples, test and utils use now nfc_exit() function.
2012-01-18 11:36:18 +00:00
Audrey Diacre
1d55b6f8c6
examples, test and utils use now nfc_init() function.
2012-01-18 11:09:01 +00:00
Audrey Diacre
324af418db
rename nfc_connect() function to nfc_open().
2012-01-17 15:21:56 +00:00
Audrey Diacre
9eb37b3eee
rename nfc_disconnect() function to nfc_close().
2012-01-17 14:52:39 +00:00
Romain Tartiere
2d393bff91
Make these function accept no argument (instead of any).
2012-01-15 11:06:24 +00:00
Audrey Diacre
1ec504e163
nfc_list_devices() function returns now the number of devices found.
2012-01-10 10:35:36 +00:00
Audrey Diacre
00818e048c
rx buffer size parameter of nfc_target_init() function is now a const size_t.
2012-01-09 11:26:57 +00:00
Audrey Diacre
c10b473361
rx buffer size parameter of pn53x_transceive() function is now a const size_t.
2012-01-09 10:24:00 +00:00
Romuald Conty
7df3bb5aeb
various minor fixes/enhancements
2012-01-06 13:08:16 +00:00
Romuald Conty
48e92149e4
drop log4c support
2012-01-06 13:05:10 +00:00
Romuald Conty
22bea8d99b
nfc_target_receive_*() need to know rx buffer size
2012-01-05 21:35:02 +00:00
Audrey Diacre
601105ef79
fix bad cast done in last revision.
2012-01-05 17:03:38 +00:00
Audrey Diacre
642f9a38f7
nfc_target_receive_bytes() function does not now use pszRx as parameter because this function returns it.
2012-01-05 16:33:55 +00:00
Audrey Diacre
7e7ee3299e
nfc_target_receive_bits() function does not now use pszRxBits as parameter because this function returns it.
2012-01-05 15:50:07 +00:00
Audrey Diacre
239fd750c4
add timeout on nfc_target_init() and this function returns now received bytes count on success.
2012-01-05 15:10:11 +00:00
Audrey Diacre
c80ebdca25
nfc_abort_command() function returns now 0 on success and libnfc error code on failure and fix some warnings.
2012-01-05 14:49:02 +00:00
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
5a1f0c2115
check result of nfc_initiator_init() function in examples/ and utils/
2012-01-05 10:33:50 +00:00
Romuald Conty
125553c72e
verbose option back for nfc-list, and newly implemented in nfc-poll
2012-01-04 21:29:43 +00:00
Audrey Diacre
b699743973
nfc_initiator_transceive_bits_timed() function does not now use pszRxBits as parameter because this function returns it.
2012-01-04 15:43:08 +00:00
Audrey Diacre
6e7092b160
nfc_initiator_transceive_bits() function does not now use pszRxBits as parameter because this function returns it.
2012-01-04 15:30:42 +00:00
Audrey Diacre
0de1136037
nfc_target_receive_bits() function returns now received bits count on success and libnfc error code on failure.
2012-01-04 13:33:53 +00:00
Audrey Diacre
951dde8143
nfc_target_send_bits() function returns now sent bits count on success and libnfc error code on failure.
2012-01-04 13:27:15 +00:00
Audrey Diacre
61074f3497
nfc_initiator_transceive_bits() function returns now received bits count on success and libnfc error code on failure.
2012-01-04 11:46:07 +00:00
Romuald Conty
d6477df7a6
doc: quick start example minor fix (make distcheck OK)
2011-12-22 17:40:22 +00:00
Audrey Diacre
9c1371dcca
nfc_target_send_bytes() function returns now sent bytes count on success and libnfc error code on failure.
2011-12-22 15:59:08 +00:00
Audrey Diacre
ac6f652368
nfc_target_receive_bytes() function returns now received bytes count on success and libnfc error code on failure.
2011-12-22 15:39:51 +00:00
Audrey Diacre
b864215d63
pn53x_initiator_poll_target() function returns now polled targets count on success.
2011-12-22 11:16:27 +00:00
Audrey Diacre
f93bc59504
nfc_initiator_select_passive_target() function returns now the selected passive targets count on success.
2011-12-21 11:33:21 +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
0f5cc5683d
nfc_initiator_poll_target() function returns now libnfc error code.
2011-12-20 15:46:35 +00:00
Audrey Diacre
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__*
2011-12-20 11:25:33 +00:00
Audrey Diacre
103485518c
nfc_initiator_select_passive_target() function returns now libnfc error code.
2011-12-19 16:27:50 +00:00
Audrey Diacre
ba2a7cfe2e
nfc_target_init() function returns now 0 on succes and libnfc error code on failure.
2011-12-19 15:35:37 +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