Chameleon-Mini
DESFireChameleonTerminal.h
1 /*
2 The DESFire stack portion of this firmware source
3 is free software written by Maxie Dion Schmidt (@maxieds):
4 You can redistribute it and/or modify
5 it under the terms of this license.
6 
7 This program is distributed in the hope that it will be useful,
8 but WITHOUT ANY WARRANTY; without even the implied warranty of
9 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 
11 The complete source distribution of
12 this firmware is available at the following link:
13 https://github.com/maxieds/ChameleonMiniFirmwareDESFireStack.
14 
15 Based in part on the original DESFire code created by
16 @dev-zzo (GitHub handle) [Dmitry Janushkevich] available at
17 https://github.com/dev-zzo/ChameleonMini/tree/desfire.
18 
19 This notice must be retained at the top of all source files where indicated.
20 */
21 
22 /*
23  * DESFireChameleonTerminal.h
24  * Maxie D. Schmidt (github.com/maxieds)
25  */
26 
27 #ifndef __DESFIRE_CHAMELEON_TERMINAL_H__
28 #define __DESFIRE_CHAMELEON_TERMINAL_H__
29 
30 #if defined(CONFIG_MF_DESFIRE_SUPPORT) && !defined(DISABLE_DESFIRE_TERMINAL_COMMANDS)
31 
32 #include <stdbool.h>
33 
34 #include "../../Terminal/Commands.h"
35 #include "../../Terminal/CommandLine.h"
36 
37 bool IsDESFireConfiguration(void);
38 
39 #ifndef DISABLE_PERMISSIVE_DESFIRE_SETTINGS
40 #define DFCOMMAND_SET_HEADER "DF_SETHDR"
41 CommandStatusIdType CommandDESFireGetHeaderProperty(char *OutParam);
42 CommandStatusIdType CommandDESFireSetHeaderProperty(char *OutMessage, const char *InParams);
43 #endif
44 
45 #define DFCOMMAND_LAYOUT_PPRINT "DF_PPRINT_PICC"
46 CommandStatusIdType CommandDESFireLayoutPPrint(char *OutParam, const char *InParams);
47 
48 #define DFCOMMAND_FIRMWARE_INFO "DF_FWINFO"
49 CommandStatusIdType CommandDESFireFirmwareInfo(char *OutParam);
50 
51 #define DFCOMMAND_LOGGING_MODE "DF_LOGMODE"
52 CommandStatusIdType CommandDESFireGetLoggingMode(char *OutParam);
53 CommandStatusIdType CommandDESFireSetLoggingMode(char *OutMessage, const char *InParams);
54 
55 #define DFCOMMAND_TESTING_MODE "DF_TESTMODE"
56 CommandStatusIdType CommandDESFireGetTestingMode(char *OutParam);
57 CommandStatusIdType CommandDESFireSetTestingMode(char *OutMessage, const char *InParams);
58 
59 #endif
60 
61 #endif