]>
Commit | Line | Data |
---|---|---|
f5fca2ed | 1 | //----------------------------------------------------------------------------- |
2 | // Copyright (C) 2012 Chalk <chalk.secu at gmail.com> | |
dc4300ba | 3 | // 2015 Dake <thomas.cayrou at gmail.com> |
818e15b0 | 4 | // 2018 sguerrini97 <sguerrini97 at gmail.com> |
dc4300ba | 5 | |
f5fca2ed | 6 | // This code is licensed to you under the terms of the GNU GPL, version 2 or, |
7 | // at your option, any later version. See the LICENSE.txt file for the text of | |
8 | // the license. | |
9 | //----------------------------------------------------------------------------- | |
10 | // Low frequency PCF7931 commands | |
11 | //----------------------------------------------------------------------------- | |
12 | ||
13 | #ifndef CMDLFPCF7931_H__ | |
14 | #define CMDLFPCF7931_H__ | |
15 | ||
ad939de5 | 16 | #include <stdint.h> |
17 | ||
dc4300ba | 18 | struct pcf7931_config{ |
d10e08ae | 19 | uint8_t Pwd[7]; |
20 | uint16_t InitDelay; | |
21 | int16_t OffsetWidth; | |
22 | int16_t OffsetPosition; | |
dc4300ba D |
23 | }; |
24 | ||
d10e08ae | 25 | int pcf7931_resetConfig(); |
26 | int pcf7931_printConfig(); | |
27 | ||
28 | int usage_pcf7931_read(); | |
29 | int usage_pcf7931_write(); | |
818e15b0 | 30 | int usage_pcf7931_bruteforce(); |
d10e08ae | 31 | int usage_pcf7931_config(); |
32 | ||
f5fca2ed | 33 | int CmdLFPCF7931(const char *Cmd); |
34 | ||
35 | int CmdLFPCF7931Read(const char *Cmd); | |
dc4300ba | 36 | int CmdLFPCF7931Write(const char *Cmd); |
818e15b0 | 37 | int CmdLFPCF7931BruteForce(const char *Cmd); |
dc4300ba D |
38 | int CmdLFPCF7931Config(const char *Cmd); |
39 | ||
f5fca2ed | 40 | #endif |