Romain Tartiere
e0fab1c9a7
Add stdlib.h header where applicable (where we call malloc() / free()).
...
Reported by: tinderbox
2009-12-23 11:56:56 +00:00
Adam Laurie
a3f573cdff
report device names and a little tidying up
2009-12-09 10:36:27 +00:00
Adam Laurie
c15fc93494
simplify abstraction of pn531/pn533 and remove more duplicate code
2009-12-08 21:06:59 +00:00
Adam Laurie
6f353013fd
minor fixes to pn531/pn533 list routines and some more debugging
2009-12-07 22:18:32 +00:00
Adam Laurie
b223ec5780
add pn531/pn533 _list_devices and _pick routines (plus minor fixes for acr122 and pn532_uart)
2009-12-07 21:13:36 +00:00
Adam Laurie
309cbd6635
consolidate duplicated code in pn531/pn533 drivers
2009-12-06 16:36:55 +00:00
Adam Laurie
50a42a5b97
leave usb devices as we found them (fixes hang on second use) and yet more debuggers
2009-12-06 00:41:48 +00:00
Adam Laurie
b8a9a7d743
more debuggers and fix auto-connecting to libusb devices (still no way to list them though)
2009-12-02 11:45:38 +00:00
Adam Laurie
c449fe8561
add some debuggers to help figure out why nfc-list doesn't see libusb devices
2009-12-01 22:28:41 +00:00
Romain Tartiere
2b8232b9ab
Merge the includes-revamp branch into trunk.
2009-12-01 14:23:00 +00:00
Romuald Conty
8a3b8bb3c9
- Avoid null pointers in the USB structures in some circumstances with Windows and libusb;
...
- In case of error, don't stop but look for other readers (was partly done, now on all errors)
- In case of error on a specifically requested reader, fail & stop, don't look further.
2009-12-01 10:07:30 +00:00
Romain Tartiere
220bef3490
ACR122 devices support enhancements.
...
- Add driver agnostic nfc_pick_device(), nfc_list_devices();
- New API function: nfc_list_devices();
- PCSC Context sharing for acr122 driver;
- List all devices in nfc-list(1);
- Various code fixes and cleanup;
- Remove warnings when compiling;
- Merge r191:199 from trunk \_°< Coin!
2009-11-24 17:49:24 +00:00
Romain Tartiere
1af29561e8
Add device listing capabilities
...
- acr122: add acr122_pick_device(), acr122_list_devices();
- Add device name to device descriptions (nfc_device_desc_t) to select a given PCSC device;
- Use constants for driver names;
- Various code cleanups and enhancements.
2009-11-24 13:03:48 +00:00
Romuald Conty
2feedddbfe
Rename dev_config_option to nfc_device_option_t.
...
Use NULL instead of INVALID_DEVICE_INFO to know if device is valid (all occurences are now replaced).
2009-11-18 11:11:06 +00:00
Romuald Conty
2a0ff6c5d0
Rename chip_type to nfc_chip_t.
...
Rename dev_spec to nfc_device_spec_t.
Update configure.ac and autotools related files.
2009-11-18 10:52:13 +00:00
Romuald Conty
aa8bb42d9f
Remove nfc-defines.h public header.
...
Use NULL instead of INVALID_DEVICE_INFO to know if device is valid.
Make distcheck OK
2009-11-10 09:47:59 +00:00
Romuald Conty
854dc3aceb
Prefix defines.h, messages.h and types.h headers by "nfc-"
...
Rename dev_info struct to nfc_device_t
Some code cleanup
Rename pn531.h/c to pn531_usb.h/c
Rename pn533.h/c to pn533_usb.h/c
2009-11-09 11:23:33 +00:00