Merge pull request #2616 from jmichelp/fix14b
[RRG-proxmark3.git] / armsrc / em4x70.h
blob541e1cf51650a345a61a4b14f31ec486d8d5ba17
1 //-----------------------------------------------------------------------------
2 // Copyright (C) Proxmark3 contributors. See AUTHORS.md for details.
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
14 // See LICENSE.txt for the text of the license.
15 //-----------------------------------------------------------------------------
16 // Low frequency EM4x70 commands -- ARM source only (not client)
17 //-----------------------------------------------------------------------------
19 #ifndef EM4x70_H
20 #define EM4x70_H
22 #include "../include/em4x70.h"
24 typedef struct {
25 uint8_t data[32];
26 } em4x70_tag_t;
28 typedef enum {
29 RISING_EDGE,
30 FALLING_EDGE
31 } edge_detection_t;
33 void em4x70_info(const em4x70_data_t *etd, bool ledcontrol);
34 void em4x70_write(const em4x70_data_t *etd, bool ledcontrol);
35 void em4x70_brute(const em4x70_data_t *etd, bool ledcontrol);
36 void em4x70_unlock(const em4x70_data_t *etd, bool ledcontrol);
37 void em4x70_auth(const em4x70_data_t *etd, bool ledcontrol);
38 void em4x70_write_pin(const em4x70_data_t *etd, bool ledcontrol);
39 void em4x70_write_key(const em4x70_data_t *etd, bool ledcontrol);
41 #endif /* EM4x70_H */