]>
cvs.zerfleddert.de Git - proxmark3-svn/blob - armsrc/legicrf.h
1 //-----------------------------------------------------------------------------
2 // (c) 2009 Henryk Plötz <henryk@ploetzli.ch>
4 // This code is licensed to you under the terms of the GNU GPL, version 2 or,
5 // at your option, any later version. See the LICENSE.txt file for the text of
7 //-----------------------------------------------------------------------------
8 // LEGIC RF emulation public interface
9 //-----------------------------------------------------------------------------
14 #include "proxmark3.h" //
18 #include "legic_prng.h" // legic PRNG impl
19 #include "crc.h" // legic crc-4
20 #include "ticks.h" // timers
22 #define LEGIC_READ 0x01
23 #define LEGIC_WRITE 0x00
25 extern void LegicRfSimulate(int phase
, int frame
, int reqresp
);
26 extern int LegicRfReader(int offset
, int bytes
, int iv
);
27 extern void LegicRfWriter(int offset
, int bytes
, int iv
);
28 extern void LegicRfRawWriter(int address
, int data
, int iv
);
30 uint32_t get_key_stream(int skip
, int count
);
31 void frame_send_tag(uint16_t response
, uint8_t bits
, uint8_t crypt
);
32 void frame_sendAsReader(uint32_t data
, uint8_t bits
);
34 int ice_legic_select_card();
35 void ice_legic_setup();
37 #endif /* __LEGICRF_H */