]> cvs.zerfleddert.de Git - proxmark3-svn/blob - armsrc/legicrf.h
CHG: revert legiccrc8 to old algo.
[proxmark3-svn] / armsrc / legicrf.h
1 //-----------------------------------------------------------------------------
2 // (c) 2009 Henryk Plötz <henryk@ploetzli.ch>
3 //
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
6 // the license.
7 //-----------------------------------------------------------------------------
8 // LEGIC RF emulation public interface
9 //-----------------------------------------------------------------------------
10
11 #ifndef __LEGICRF_H
12 #define __LEGICRF_H
13
14 #include "proxmark3.h" //
15 #include "apps.h"
16 #include "util.h" //
17 #include "string.h"
18 #include "legic_prng.h" // legic PRNG impl
19 #include "crc.h" // legic crc-4
20 #include "ticks.h" // timers
21 #include "legic.h" // legic_card_select_t struct
22
23 extern void LegicRfSimulate(int phase, int frame, int reqresp);
24 extern int LegicRfReader(uint16_t offset, uint16_t len, uint8_t iv);
25 extern void LegicRfWriter(uint16_t offset, uint16_t byte, uint8_t iv);
26 extern void LegicRfRawWriter(int address, int data, uint8_t iv);
27 extern void LegicRfInfo(void);
28
29 uint32_t get_key_stream(int skip, int count);
30 void frame_send_tag(uint16_t response, uint8_t bits, uint8_t crypt);
31 void frame_sendAsReader(uint32_t data, uint8_t bits);
32
33 int legic_read_byte( uint16_t index, uint8_t cmd_sz);
34
35 int legic_select_card(legic_card_select_t *p_card);
36 int legic_select_card_iv(legic_card_select_t *p_card, uint8_t iv);
37 void ice_legic_setup();
38
39 #endif /* __LEGICRF_H */
Impressum, Datenschutz