-
Notifications
You must be signed in to change notification settings - Fork 0
/
a71_debug.h
57 lines (49 loc) · 1.63 KB
/
a71_debug.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/**
* @file a71_debug.h
* @author NXP Semiconductors
* @version 1.0
* @par License
* Copyright 2016 NXP
*
* This software is owned or controlled by NXP and may only be used
* strictly in accordance with the applicable license terms. By expressly
* accepting such terms or by downloading, installing, activating and/or
* otherwise using the software, you are agreeing that you have read, and
* that you agree to comply with and are bound by, such license terms. If
* you do not agree to be bound by the applicable license terms, then you
* may not retain, install, activate or otherwise use the software.
*
* @par Description
* @par History
* 1.0 20-feb-2012 : Initial version
*
*****************************************************************************/
#ifndef _A71_DEBUG_
#define _A71_DEBUG_
#include "ax_api.h"
#ifdef __cplusplus
extern "C" {
#endif
/// @cond
#define P2_PERSISTENT_MEM 0x01
#define P2_TRANS_MEM_DESELECT 0x02
#define P2_TRANS_MEM_RESET 0x03
#define P2_USER_UNAUTH 0x01
#define P2_USER_ADMIN 0x02
#define P2_USER_HOST 0x03
/// @endcond
// #define DBG_KEY_DEK_ADMIN_INDEX 0x21
// #define DBG_KEY_DEK_HOST_INDEX 0x22
/** \name Debug functions (only available in case the Applet is in Debug Mode)
@{ */
U16 A71_DbgDisableDebug(void);
U16 A71_DbgEraseCounter(SST_Index_t index);
U16 A71_DbgGetFreePersistentMemory(S16 *freeMem);
U16 A71_DbgGetFreeTransientMemory(S16 *freeMem);
U16 A71_DbgReflect(U8 *sndBuf, U16 sndBufLen, U8 *rcvBuf, U16 *rcvBufLen);
U16 A71_DbgReset(void);
/** @}*/
#ifdef __cplusplus
}
#endif
#endif //_SM_DEBUG_