]> git.zerfleddert.de Git - proxmark3-svn/blame - armsrc/legicrf.h
ADD: since the client now calls legic prng, this is needed here too.
[proxmark3-svn] / armsrc / legicrf.h
CommitLineData
bd20f8f4 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//-----------------------------------------------------------------------------
a7247d85 10
e30c654b 11#ifndef __LEGICRF_H
12#define __LEGICRF_H
a7247d85 13
c71c5ee1 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
ad5bc8cc 21#define LEGIC_READ 0x01
22#define LEGIC_WRITE 0x00
c71c5ee1 23
3612a8a8 24extern void LegicRfSimulate(int phase, int frame, int reqresp);
cc708897 25extern int LegicRfReader(int offset, int bytes, int iv);
26extern void LegicRfWriter(int offset, int bytes, int iv);
27extern void LegicRfRawWriter(int address, int data, int iv);
3e134b4c 28
29int ice_legic_select_card();
30void ice_legic_setup();
e30c654b 31
32#endif /* __LEGICRF_H */
Impressum, Datenschutz