2019-03-09 15:49:41 +08:00
|
|
|
//-----------------------------------------------------------------------------
|
2010-02-21 08:12:52 +08:00
|
|
|
// (c) 2009 Henryk Plötz <henryk@ploetzli.ch>
|
2018-09-06 04:23:25 +08:00
|
|
|
// 2018 AntiCat
|
2020-03-30 21:11:48 +08:00
|
|
|
// 2020 iceman
|
2010-02-21 08:12:52 +08:00
|
|
|
//
|
|
|
|
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
|
|
|
|
// at your option, any later version. See the LICENSE.txt file for the text of
|
|
|
|
// the license.
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// LEGIC RF emulation public interface
|
|
|
|
//-----------------------------------------------------------------------------
|
2009-10-12 19:47:39 +08:00
|
|
|
|
2010-02-21 05:57:20 +08:00
|
|
|
#ifndef __LEGICRF_H
|
|
|
|
#define __LEGICRF_H
|
2009-10-12 19:47:39 +08:00
|
|
|
|
2019-08-08 22:57:33 +08:00
|
|
|
#include "common.h"
|
2020-03-30 21:11:48 +08:00
|
|
|
#include "legic.h" /* legic_card_select_t struct */
|
2016-09-02 22:25:54 +08:00
|
|
|
|
2019-04-06 07:00:54 +08:00
|
|
|
void LegicRfInfo(void);
|
2020-03-30 21:11:48 +08:00
|
|
|
int LegicRfReaderEx(uint16_t offset, uint16_t len, uint8_t iv);
|
|
|
|
void LegicRfReader(uint16_t offset, uint16_t len, uint8_t iv);
|
2019-04-07 02:21:03 +08:00
|
|
|
void LegicRfWriter(uint16_t offset, uint16_t len, uint8_t iv, uint8_t *data);
|
2020-03-30 21:11:48 +08:00
|
|
|
|
2020-04-16 15:01:14 +08:00
|
|
|
legic_card_select_t *getLegicCardInfo(void);
|
2010-02-21 05:57:20 +08:00
|
|
|
#endif /* __LEGICRF_H */
|