Philippe Teuwen
ca3c5007f6
pn53x _timed fcts now use burst read/write on fifo register
2011-05-10 23:44:36 +00:00
Philippe Teuwen
21dfe81d0b
Some optimisations in initialisation of registers
2011-05-10 23:44:27 +00:00
Romuald Conty
2a9f876363
Import BUFFER_* macros from libfreefare and use them in writeback cache
2011-05-10 19:13:08 +00:00
Romuald Conty
d37b917352
chips/pn53x: remove double defines for pn53x registers.
2011-05-10 15:13:19 +00:00
Romuald Conty
e4dfa75045
chips/pn53x: *_timed() functions should prefer pn53x_WriteRegister() to bypass any kind of logical handling (mask, writeback, etc)
2011-05-10 13:53:48 +00:00
Philippe Teuwen
0e3357b589
pn53x _timed fcts: safebelts towards new writeback mechanism
2011-05-09 21:08:03 +00:00
Romuald Conty
ef3303839a
chips/pn53x: fix memset size on writeback cache, typo and fix a mask problem on data store
2011-05-09 20:42:11 +00:00
Romuald Conty
b3cade2db2
Fix writeback cache size and some typo.
2011-05-09 19:55:22 +00:00
Romuald Conty
009d851771
Implement WriteBack cache (Fixes Issue 155)
2011-05-09 19:34:00 +00:00
Romuald Conty
95914345e1
chips/pn53x: add pn53x_data_new() function to alloc and init pn53x_data structure.
2011-05-09 18:47:48 +00:00
Romuald Conty
ebb352f1f3
Clean up and add some debug msg on ReadRegister/WriteRegister
2011-05-09 15:14:50 +00:00
Romuald Conty
25e2dbec95
chips/pn53x: set ui8LastCommand in chip layer instead of driver layer.
2011-05-09 14:22:12 +00:00
Romuald Conty
468027ba2b
chips/pn53x: PN532 now goes in LowVBat mode when setting idle mode from target mode.
2011-05-09 10:44:44 +00:00
Romuald Conty
be0f0b0828
New function nfc_idle() to set the NFC device in idle mode.
...
nfc_disconnect() now switch NFC device into idle before disconnecting;
pn53x_data now have a operating_mode enum to know the current running mode (initiator, target or idle);
new pn53x_PowerDown wrapper for PowerDown (PN532) command;
Note: ARYGON idle mode now to be implemented and ACR122 does not support this mode.
2011-05-09 10:09:40 +00:00
Philippe Teuwen
d834860965
Add partial support (list) for ISO14443B-3 ST SRx & ASK CTx cards
2011-05-06 19:11:03 +00:00
Romuald Conty
11a91af749
Add some SFR registers description, typo in PN53X_REG_CIU_TxMode address.
2011-05-06 14:32:32 +00:00
Romuald Conty
cd6946e751
Add ISO/IEC 14443 B' aka Type B' modulation partial support
2011-05-06 14:14:06 +00:00
Philippe Teuwen
77e522aade
chips/pn53x.c: allow null reception buffers for transceive commands
2011-05-05 23:13:49 +00:00
Romuald Conty
cad3dc652d
chips/pn53x: print a debug trace when reading PN53x registers.
2011-05-05 18:19:20 +00:00
Romuald Conty
04820bea47
chips/pn53x: set some parameters in FeliCa when using DEP mode.
2011-05-05 15:19:46 +00:00
Romuald Conty
80b4cd9767
chips/pn53x: set some parameters in ISO/IEC 14443A when using DEP mode (ie. SAK says ISO/IEC 18092 compliant)
2011-05-05 15:00:34 +00:00
Romuald Conty
008f2a8d4c
Minor returns fixes.
2011-05-05 11:46:12 +00:00
Philippe Teuwen
4124dc662d
Cleanup of initializations
2011-05-05 10:12:26 +00:00
Romuald Conty
5f890fedcc
Remove obsolete callbacks
2011-05-05 09:45:39 +00:00
Philippe Teuwen
412c326c3a
better fix for timed fcts
2011-05-04 14:14:18 +00:00
Philippe Teuwen
8169da3701
pn53x: Fix bug in _timed fcts
2011-05-03 13:55:20 +00:00
Audrey Diacre
e82e897bd9
pn53x: oups, fix typo.
2011-05-03 12:24:33 +00:00
Audrey Diacre
85a30c0897
pn53x:reorder functions according to header.
2011-05-03 12:08:54 +00:00
Romuald Conty
96358368f5
cast explicitly sz (uint8_t) in size_t
2011-05-02 16:43:03 +00:00
Romuald Conty
6fc4a5b70a
Use a new current target pointer to choose correctly the sending/receiving method (ie. TgSetData/TgGetData or TgResponseToInitiator/TgGetInitiatorCommand).
2011-04-27 14:42:27 +00:00
Romuald Conty
1198a71d64
chip/pn53x: handle PN532 "power down" and "low VBat" power mode instead of a simple "sleep" mode. (Fixes Issue 167)
2011-04-27 13:16:36 +00:00
Romuald Conty
fe49ccd701
Implement extended frame send/receive for PN532_UART driver.
2011-04-13 16:39:58 +00:00
Philippe Teuwen
55495e1e97
*_timed fcts: proper error codes
2011-04-05 13:44:36 +00:00
Philippe Teuwen
743fa048e1
pn53x: adapt MaxRetries to avoid issue with 2 tags on PN531, using same value as what LoGO does
2011-04-05 13:39:47 +00:00
Philippe Teuwen
7f2b300dde
support crc auto-handling in ...transceive_bytes_timed
2011-04-04 22:23:38 +00:00
Philippe Teuwen
ffe2714b28
pn53x: factorize timer code
2011-04-04 19:04:43 +00:00
Philippe Teuwen
fb398c387f
pn53x: add timed versions of transceive_bytes/bits
2011-04-04 14:16:36 +00:00
Romuald Conty
b21d3c6728
ASK LoGO: enable progressive field feature.
2011-04-04 09:53:33 +00:00
Romuald Conty
71c400ae14
Fix a bug when value is larger than mask.
2011-04-04 09:53:00 +00:00
Philippe Teuwen
5600007dd3
pn53x: factorize & generalize CHIP_DATA() usage
2011-04-04 09:26:10 +00:00
Romuald Conty
5db8be908b
Windows support contribution:
...
- Move CMake modules from cmake_modules/ to cmake/modules/
- CMake now use cmake/config_windows.h.cmake to create config.h on Windows platform
- contrib/windows.h header is automagically included by config.h
- Put missing NFC_EXPORT macro on front of emulation API
- nfc-mfclassic and nfc-mfcultralight examples are now compiled under Windows
Many thanks to Glenn Ergeerts which provide the initial patch.
2011-03-31 13:38:49 +00:00
Romain Tartiere
ad530f6d02
Various cleanups.
...
- New functions nfc_device_new(), nfc_device_free();
- Add experimental abort mechanism for the PN53x USB driver;
- Move chip-specific variables from nfc_device_t to pn53x_data (Fixes Issue 124).
2011-03-09 13:37:16 +00:00
Romuald Conty
70c2836798
Add some useful comments on ASK LoGO hardware, and define missing registers.
2011-03-07 02:47:21 +00:00
Romain Tartiere
29618b7e27
Fix crash when pn53x_TgInitAsTarget() is aborted.
2011-03-05 21:27:10 +00:00
Romain Tartiere
f1f31d1b4c
Unbreak and merge PN53x USB drivers.
...
While here fix some includes that would not work if SRCDIR != BUILDDIR.
2011-03-05 19:54:52 +00:00
Romuald Conty
0efa47880b
Hardware abstraction layer for libnfc:
...
Suppress any PN53x references in nfc.c
Improve nfc_driver_t struct to embedded HAL API
Merge macros from nfc-messages.h into nfc-internal.h
Remove useless files: nfc-messages.h, buses.h and chips.h
Implement HAL for ARYGON driver
Move send/receive callbacks from nfc_driver_t to internal chip io callbacks (since there are dedicated to pn53x framing)
2011-03-05 10:06:52 +00:00
Romain Tartiere
a55a52e0a9
Fix pn53x_InAutoPoll() return value on user cancelation (true instead of false).
2011-03-05 01:46:16 +00:00
Romain Tartiere
97dd0b63d7
Implement abort for pn532_uart driver.
2011-03-04 20:17:28 +00:00
Romain Tartiere
4b6060aeeb
Enable aborting blocking commands (e.g. TgInitAsTarget) and refactor
...
*_check_communication() as pn53x_check_communication().
2011-03-04 19:59:49 +00:00
Romain Tartiere
7ed71a1501
Merge r912 into trunk.
2011-03-04 15:49:16 +00:00