Philippe Teuwen
fda8d60ce0
Adapt *transmit_bytes_timed API to be closer to *transmit_bytes
2012-11-12 16:54:03 +01:00
Romuald Conty
9f90a04a84
nfc_initiator_transceive_bytes() returns NFC_EMFCAUTHFAIL when AUTH command failed on a Mifare Classic
2012-11-01 01:27:06 +01:00
Romuald Conty
397222c33f
Removes --enable-serial-autoprobe option at compile and replace this feature by LIBNFC_INTRUSIVE_SCAN environment variable at run time.
2012-10-21 14:11:38 +00:00
Romuald Conty
b5aa91fd62
Use a more appropriated term regarding device detection: from probe to scan
...
- Rename nfc-probe to nfc-scan-device
- Rename internal drivers function prototypes: _probe to _scan
- Revamp _scan function prototype: it now returns device found count
2012-10-21 14:11:17 +00:00
Romuald Conty
9afa3c6598
Use copyright format recommended by GNU project.
...
http://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html
2012-10-21 14:09:16 +00:00
Romuald Conty
310d7eba07
New str_nfc_target() function in API.
...
This allow to convert a nfc_target struct into allocated string.
2012-09-17 13:47:54 +00:00
Romuald Conty
de827ab583
nfc_device_get_information_about() now allocates returned string.
...
Note: must be freed by free().
2012-09-17 13:47:30 +00:00
Romuald Conty
2aba0f962a
documentation: add missing group description
2012-09-17 13:47:18 +00:00
Romuald Conty
3cd6015c81
minor header cleanup
2012-09-17 13:47:11 +00:00
Romuald Conty
ab312299d6
pn53x_reset_settings() now resets CRC, parity, easyframing and crypto1.
...
These settings are quite specifics and should be reset in other functions that call pn53x_reset_settings() too: i.e. nfc_initiator_init_secure_element()
2012-06-12 16:46:20 +00:00
Philippe Teuwen
4b5b45f14a
Add "usb" keyword support to connstring to specify all usb drivers at once
2012-06-06 01:10:05 +00:00
Romuald Conty
b4ef1a3a5d
New nfc_initiator_init_secure_element() function to set SAM as wired card (only relevant with a PN532 SAM-equipped)
2012-06-04 00:16:28 +00:00
Romuald Conty
f47af31fb7
Indent correctly previous commit (make style)
2012-06-03 21:05:26 +00:00
Romuald Conty
2b81baa14f
Add documentation related to previous commit (NFC_ETGRELEASED on MFC AUTH failure)
2012-06-03 21:02:38 +00:00
Romuald Conty
d7e7979580
Listing passive targets now quit earlier if szTargets count is reached and in that case, leave with the latest tag selected.
...
That's quite useful when you need to directly use 1 target because in contrast of nfc_initiator_select_passive_target, you don't need to prepare initiator data by hands
2012-05-30 23:02:41 +00:00
Philippe Teuwen
01303fab0d
astyle --formatted --mode=c --indent=spaces=2 --indent-switches --indent-preprocessor --keep-one-line-blocks --max-instatement-indent=60 --brackets=linux --pad-oper --unpad-paren --pad-header
2012-05-29 15:54:36 +00:00
Philippe Teuwen
a2cd236441
astyle --formatted --mode=c --indent=spaces=2 --indent-switches --indent-preprocessor --keep-one-line-blocks --max-instatement-indent=60
2012-05-29 15:52:51 +00:00
Romuald Conty
26865bbc19
Remove extra whitespaces/tabs before EOL.
...
find . -name '*.[ch]' | xargs perl -pi -e 's/\t+$//; s/ +$//'
Thanks to Ludovic.
2012-05-29 00:33:22 +00:00
Romuald Conty
8f08431ddf
New function nfc_initiator_target_is_present() to test is a previously selected target is in the field.
2012-05-27 22:34:21 +00:00
Romuald Conty
2c9275adde
nfc_initiator_transceive_bytes() now take a constant size for Rx buffer to have a cleaner API: no more in/out parameters
2012-05-27 21:06:22 +00:00
Romuald Conty
e4802de965
Add new public functions to grab information in string format:
...
- New nfc_device_get_information_about()
- Moved nfc-utils function str_nfc_baud_rate()
- New str_nfc_modulation_type()
- Add new device_get_information_about callback to nfc_driver struct
- Export new symbols
- Changed internal pn53x firmware text handling: we now store firmware text for further operations
- print_nfc_target() now uses str_nfc_* functions
- nfc-probe util now have a verbose which display information on detected devices (Fix verbose set but not used warning ;-) )
2012-05-17 00:48:47 +00:00
Romuald Conty
bfcdb1bd4c
Fix more warnings while using -Wswitch-enum and -Wshadow on internal libnfc files
2012-05-16 18:08:42 +00:00
Ludovic Rousseau
59d47bc7da
Add MIN/MAX declarations in nfc-internal.h and nfc-utils.h
...
Remove the now useless #include <sys/param.h>
2012-05-13 19:15:44 +00:00
Romuald Conty
82b2cfa883
Smart merge of acr122_usb branch: add acr122_usb driver without removing acr122_pcsc support.
2012-05-01 23:09:57 +00:00
Romuald Conty
e7f85811a1
fix *get_supported_modulation and *get_supported_baud_rate protos in nfc_driver and public ones.
2012-03-01 13:52:51 +00:00
Romain Tartiere
05789e5a68
Fix a couple warnings.
2012-03-01 13:33:13 +00:00
Audrey Diacre
4cc3c72b31
add nfc_device_get_supported_modulation() and nfc_device_get_supported_baud_rate() documentation.
2012-02-20 08:36:15 +00:00
Audrey Diacre
5a5bdf1d66
add nfc_device_get_supported_modulation() and nfc_device_get_supported_baud_rate() functions.
2012-02-17 12:09:56 +00:00
Audrey Diacre
e9bd9e4b67
documentation: exclude some files.
2012-01-31 15:35:13 +00:00
Audrey Diacre
983d4932f3
documentation: add utils and examples and hide internal files.
2012-01-31 14:28:45 +00:00
Audrey Diacre
3d393e58a9
add some Doxygen documentation.
2012-01-31 09:49:43 +00:00
Audrey Diacre
17c4a09c8f
add modules in documentation.
2012-01-30 11:00:02 +00:00
Audrey Diacre
0f20377541
add some API documentations.
2012-01-30 09:43:58 +00:00
Romuald Conty
e49eb6c660
libnfc-1.5-acr122-usb> import partial work on "ACR122 without PCSC" driver
2012-01-26 15:23:11 +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
4c011279ff
add context to nfc_init(), nfc_exit(), nfc_open() and nfc_list_devices() functions.
2012-01-18 16:22:06 +00:00
Romuald Conty
b366b8c027
add nfc_device_get_connstring() function and nfc-probe example to show devices connection strings
2012-01-18 13:17:01 +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
d1b0e93e8e
add initialization and deinitialization.
2012-01-18 09:53:45 +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
Audrey Diacre
9d3ca39a44
remove _t suffix from nfc_driver_t type.
2012-01-17 14:17:01 +00:00
Audrey Diacre
f9a464e256
nfc_perror() function displays now LIBNFC_ERROR.
2012-01-11 08:47:14 +00:00
Romuald Conty
e86d08218b
add nfc_initiator_poll_dep_target()
2012-01-10 14:17:18 +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
Romuald Conty
22bea8d99b
nfc_target_receive_*() need to know rx buffer size
2012-01-05 21:35:02 +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