Corrected indentation in usb_cmd.h

Also changed the command ID of CMD_WRITER_LEGIC_RF to ease visual spotting of empty ID blocks.
(ID was 0x0399 but it was above CMD_SNOOP_ICLASS with ID 0x0392)


git-svn-id: http://proxmark3.googlecode.com/svn/trunk@608 ef4ab9da-24cd-11de-8aaa-f3a34680c41f
-Fixed a bug in iso14_apdu
 -According to ISO14443-4, the block number (bit 0) in the PCB needs to be flipped every once in a while. Not doing so leads to the card not responding to commands anymore. The flipping is done according to the standard now.
-Declare iso14_apdu in iso14443a.h to enable usage from other .c files
-iso14_apdu now returns 0 if ReaderReceive returned 0 (to distinguish between the case that ReaderReceive returns -1 and the case that it returns 0)
-Added a new function to change the timeout (to enable changing it from other .c files without the need for a global variable)


git-svn-id: http://proxmark3.googlecode.com/svn/trunk@609 ef4ab9da-24cd-11de-8aaa-f3a34680c41f
Basic support for EAC documents (e.g. German Identification Card)

-new files armsrc/epa.[ch] for ePA (electronic "Personalausweis") related functions
    -Offers elementary functions (EPA_PACE_MSE_Set_AT etc.)
    -Also offers one new USB command: EPA_PACE_Collect_Nonce
-created new command subtree in client: client/hfepa.[ch] ("hf epa")
    -offers "hf epa cnonces" (collect encrypted PACE nonces)
-more to come



git-svn-id: http://proxmark3.googlecode.com/svn/trunk@613 ef4ab9da-24cd-11de-8aaa-f3a34680c41f
Allow user to specify a delay

The user may specify a delay between PACE nonce requests. Using no delay between subsequent issues of the USB command may lead to errors in the USB communication.
Until test results show that the delay can be fixed or left out completely the user has to test what value is safe to use.

This fixes errors "Read only 40 instead of requested 64 bytes!" (if the correct delay is used, e.g. 3 seconds for 16 byte nonces).


git-svn-id: http://proxmark3.googlecode.com/svn/trunk@616 ef4ab9da-24cd-11de-8aaa-f3a34680c41f
Power down the field before sending the USB ACK

This fixes the bug that the USB communication breaks when collecting PACE nonces with no delay. The delay functionality has not been removed (it doesn't hurt to keep it), but using a delay of 0 is now possible without a high risk of getting too many errors.


git-svn-id: http://proxmark3.googlecode.com/svn/trunk@617 ef4ab9da-24cd-11de-8aaa-f3a34680c41f
MAJOR update, added hitag2 reader, emulation and eavesdropping, lots of new code, including FPGA tweaks

git-svn-id: http://proxmark3.googlecode.com/svn/trunk@618 ef4ab9da-24cd-11de-8aaa-f3a34680c41f
MAJOR update, added hitag2 reader, emulation and eavesdropping, lots of new code, including FPGA tweaks, part 2

git-svn-id: http://proxmark3.googlecode.com/svn/trunk@619 ef4ab9da-24cd-11de-8aaa-f3a34680c41f
added 'hitag2.ht2' binary example image for emulation

git-svn-id: http://proxmark3.googlecode.com/svn/trunk@620 ef4ab9da-24cd-11de-8aaa-f3a34680c41f
Added Hitag2 reading tag memory in password mode

git-svn-id: http://proxmark3.googlecode.com/svn/trunk@621 ef4ab9da-24cd-11de-8aaa-f3a34680c41f
cleaned up memmory

git-svn-id: http://proxmark3.googlecode.com/svn/trunk@622 ef4ab9da-24cd-11de-8aaa-f3a34680c41f
Added output to file for 'lf hitag list' command

git-svn-id: http://proxmark3.googlecode.com/svn/trunk@623 ef4ab9da-24cd-11de-8aaa-f3a34680c41f
added hitag2 reading in crypto mode functionality

git-svn-id: http://proxmark3.googlecode.com/svn/trunk@624 ef4ab9da-24cd-11de-8aaa-f3a34680c41f
added: readed blocks (password mode) into tag.sectors[]. 'lf hitag sim' simulates the readed blocks.

git-svn-id: http://proxmark3.googlecode.com/svn/trunk@625 ef4ab9da-24cd-11de-8aaa-f3a34680c41f
there was bug in `hf mf mifare`. and speed up this command.

git-svn-id: http://proxmark3.googlecode.com/svn/trunk@626 ef4ab9da-24cd-11de-8aaa-f3a34680c41f
10 ms was too fast(. 50 is ok

git-svn-id: http://proxmark3.googlecode.com/svn/trunk@627 ef4ab9da-24cd-11de-8aaa-f3a34680c41f