Release v4.15864 - Radium
[RRG-proxmark3.git] / armsrc / em4x70.h
blob363f119e3e853699ce62196bb0526088292630ec
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
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(em4x70_data_t *etd, bool ledcontrol);
34 void em4x70_write(em4x70_data_t *etd, bool ledcontrol);
35 void em4x70_unlock(em4x70_data_t *etd, bool ledcontrol);
36 void em4x70_auth(em4x70_data_t *etd, bool ledcontrol);
37 void em4x70_write_pin(em4x70_data_t *etd, bool ledcontrol);
38 void em4x70_write_key(em4x70_data_t *etd, bool ledcontrol);
40 #endif /* EM4x70_H */