tuyethoa08041997
12a00174b5
Add SPI speed option + Various minor changes ( #276 )
...
+ Change default SPI speed to SPI_CLOCK_DIV4
2017-03-13 13:49:07 +01:00
Rotzbua
0ba37f39e9
Introduce stdint.h
...
- replace long to int32_t
- fix documentation mu-sign
- add code style to doc
2016-10-31 12:52:43 +01:00
Rotzbua
452728d2c1
Merge pull request #245 from surr/test
...
Selftest completion
2016-10-31 12:46:44 +01:00
Alexander Inyukhin
03abe01b87
Selftest completion
...
It seems that selftest completion condition
(PCD_ReadRegister(DivIrqReg) & 4) may not work.
On my v1.0 device DivIrqReg is stuck at 0x13 during test,
but output data is generated succesfully.
I think, the better way to check for completion is to
monitor FIFO level register.
2016-09-10 16:13:50 +03:00
Alexander Inyukhin
76adf6e383
Authenticate devices with long uids
...
It seems that the last four uid bytes should be used for
auth instead of first ones.
This patch allows to work with Mifare plus cards in SL1 mode,
that have 7 byte uids (e.g. Troyka transport cards.)
See also "3.2.5 MIFARE Classic Authentication" of AN10927 document.
http://cache.nxp.com/documents/application_note/AN10927.pdf
2016-09-10 15:47:55 +03:00
Denis Volpato Martins
4ee20074b2
added SS define comment
2016-08-24 08:55:49 -03:00
Denis Volpato Martins
b86a09792d
Get SPI SS/CS pin automatically
2016-08-21 19:52:45 -03:00
Rotzbua
7f78c5cffe
Merge branch 'new-travis' into patch-collision
2016-02-15 17:33:17 +01:00
Rotzbua
fda5380a7a
add output SAK to dump functions
2016-02-15 16:25:48 +01:00
Rotzbua
8bcfef72ab
fix #182 PICC_Select - collision
2016-01-29 14:40:46 +01:00
Miki Balboa
efc81dfb43
Merge pull request #152 from sophiekovalevsky/spi
...
Use settings functions on SPI libraries.
Looks great,
Thank you @sophiekovalevsky for you work, and thank you @lmmeng for testing it.
2016-01-04 22:47:54 -08:00
Rotzbua
f7f2d5d02d
add dump firmware version to serial
2016-01-04 05:53:23 +01:00
Rotzbua
51a38a04de
Merge branch 'master' into upd-readme
2016-01-04 04:58:20 +01:00
Rotzbua
345f66ae0f
codestyle and move new code to right pos
...
- add doc and author
2016-01-04 04:31:01 +01:00
Rotzbua
8188a1041f
fix broken compiling
...
seems exidently insert
2016-01-04 04:14:26 +01:00
Miguel Balboa
d035c1fb9e
Fix typos in comments as #100
2016-01-03 16:34:04 -08:00
Gargantuanman
72b1162780
Update MFRC522.cpp
...
Added Authentication with Ntag 213,215,216 returns the pACK
2016-01-01 01:41:10 -06:00
Kiara Navarro
3c3ffa07e7
Use settings functions on SPI libraries.
2015-12-27 22:04:33 -05:00
Rotzbua
bafa2faead
renew example firmware_check.ino
...
- add some comments at performselftest()
2015-12-08 12:31:15 +01:00
Rotzbua
8016aa7c98
typechange: byte -> PICC_Type
2015-12-05 22:32:57 +01:00
Rotzbua
36a43dbb70
fix missed type update
...
byte -> MFRC522::StatusCode
2015-12-05 21:56:13 +01:00
Rotzbua
00394472fe
improve code style
...
include if in switch
2015-12-05 21:17:44 +01:00
Rotzbua
36128c273b
improve code style - realign arguments of functions
2015-12-05 21:03:41 +01:00
Rotzbua
e1b9d443f7
improve code style
...
remove useless break;
2015-12-05 20:52:55 +01:00
Rotzbua
2a1794a0a5
use type instead of byte
2015-12-05 20:14:10 +01:00
liviu
118a03cde0
Better implementation of the PCD_Init() method. Thanks to Rotzbua
...
to point this out.
2015-12-05 10:50:34 +01:00
liviu
dd3bd76f5d
New constructor and PCD_Init() method to allow defining arrays of readers.
2015-12-01 21:25:01 +01:00
Rotzbua
9ef7aff2e9
Merge branch 'add_firmeware_0x90_check'
...
Conflicts:
MFRC522.cpp
2015-09-04 11:36:14 +02:00
AllToTheX
e071335e4b
Add return to MIFARE_UnbrickUidSector()
...
So the code can't reach end of non-void function
2015-08-16 02:10:46 +02:00
Miki Balboa
36c56bb55c
Merge pull request #108 from anistor/t_fixes_for_STM32F103
...
Some fixes for STM32F1 platform
2015-06-13 23:19:14 -04:00
Adrian Nistor
68f0b68a5a
Some fixes for STM32F1 platform
...
* replace char with int8_t because char does not seem to be signed on STM32 and leads to infinite loops.
* move the pin handling out of constructor and into PCD_Init() function to avoid problems with digitalWrite() crashing due to unpredictable global variable initialisation order on STM32 (pin map arrays are not always setup before user's global objects are constructed).
2015-06-13 19:59:04 +03:00
Marcos Vives Del Sol
ced2555bc4
Added selftest support for FM17522
2015-06-12 21:02:36 +02:00
Rotzbua
33fc41a302
add self-test reference for 0x90
2015-04-12 16:33:06 +02:00
Rotzbua
6e8f4e0f29
upd doc
2015-04-12 16:14:37 +02:00
Rotzbua
4cbca4bada
move last remaining strings to flash
...
save: 6 byte ram
cost: 20 byte flash
2015-04-06 18:14:32 +02:00
Rotzbua
12a42c8143
style improved
2015-04-02 14:16:14 +02:00
Rotzbua
e891ec0033
style add missing tabs
2015-04-02 14:16:06 +02:00
Rotzbua
2dc9124ffc
style space to tab
...
no code change, just style
2015-04-02 14:15:54 +02:00
Rotzbua
038badba6c
move self-test reference from ram to flash
2015-03-12 15:26:43 +01:00
Rotzbua
d0558e6079
Merge https://github.com/Eckankar/rfid
2015-03-12 15:23:46 +01:00
Sebastian Paaske Tørholm
26f95497ae
Implement method for performing self-test of firmware
...
Closes #89
2015-03-11 23:25:35 +01:00
Rotzbua
ffe0976282
use F() macro for return strings by functions
...
fkt GetStatusCodeName() and PICC_GetTypeName() return pointer to flash
saves about 450 byte memory
if you need char: copy it from the flash
2015-03-11 17:30:06 +01:00
WGH
bbe86fcb7b
fixed PCD_AntennaOff (wrong register was assigned)
2015-02-09 01:59:33 +03:00
Spyros Panagiotopoulos
d914032c7c
Fixed some typos
...
Instead of 0,”)” added
2015-02-03 20:59:07 +02:00
Lorne Bonnell
5b148a2e72
use F() Macro to move strings to ProgMem
2015-02-02 08:42:32 +10:00
lorneb
8f4d3cd542
Revert "Move strings to PROGMEM string tables"
2015-02-01 13:08:05 +10:00
Sebastian Kurella
605a1d755f
Move strings to PROGMEM string tables
...
This frees up almost 1KB of dynamic memory.
2015-01-30 15:29:39 +00:00
Miki Balboa
cba5551e53
Merge pull request #64 from tjclement/master
...
UID changeable card support
It is useful, thank you.
2015-01-05 12:28:41 -06:00
Tom Clement
b1240e9024
Implemented functionality to write to sector 0 on UID changeable MIFARE cards, using Chinese 'magic sequence' commands.
2015-01-03 02:30:23 +01:00
mdxs
16a035c89c
Add get/set methods for MIFARE Classic value blocks
2014-11-24 11:46:57 +01:00