-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtst_a71ch_util.h
60 lines (51 loc) · 2.1 KB
/
tst_a71ch_util.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
58
59
60
/**
* @file tst_a71ch_util.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
* API of test bench utility functions specific to the a71ch
* @par History
* 1.0 2016-Oct-1 : Initial version
*/
#ifndef _TST_A71CH_UTIL_H_
#define _TST_A71CH_UTIL_H_
#include "sm_types.h"
#include "ax_api.h"
#ifdef __cplusplus
extern "C" {
#endif
#define INIT_MODE_RESET 0x00 //!< Only issue a Debug Reset
#define INIT_MODE_RESET_SELECT 0x01 //!< Issue a Debug Reset with a subsequent applet select
#define INIT_MODE_NO_RESET 0x02 //!< Skip resetting secure element
#define INIT_MODE_RESET_DO_SCP03 0x80 //!< Issue a Debug Reset, next setup SCP03 channel
#define INIT_MODE_RESET_SELECT_DO_SCP03 0x81 //!< Issue a Debug Reset, do a subsequent applet select, next setup SCP03 channel
#define INIT_MODE_NO_RESET_DO_SCP03 0x82 //!< Setup SCP03 channel
/// @cond
#define INIT_MODE_RESET_MASK 0x03
#define INIT_MODE_PATTERN_RESET 0x00
#define INIT_MODE_PATTERN_RESET_SELECT 0x01
#define INIT_MODE_PATTERN_NO_RESET 0x02
#define INIT_MODE_SCP03_MASK 0x80
#define INIT_MODE_PATTERN_PLAIN_COM 0x00
#define INIT_MODE_PATTERN_DO_SCP03 0x80
/// @endcond
const char* getInitModeAsString(U8 initMode);
int a71chScp03Requested(U8 initMode);
U8 a71chInitModule(U8 initMode);
U8 a71chSetupScp03(void);
U8 a71chShowModuleInfo(U8 *scpState);
#ifdef __cplusplus
}
#endif
#endif // _TST_A71CH_UTIL_H_