hsw-nbt 1.2.0
OPTIGA Authenticate NBT Host Library for C
nbt-errors.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) 2024-2026 Infineon Technologies AG
2// SPDX-License-Identifier: MIT
3
8#ifndef NBT_ERRORS_H
9#define NBT_ERRORS_H
10
11#include <stdint.h>
12
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
22#define NBT_SW_INCORRECT_LC_LE UINT16_C(0x6700)
23
27#define NBT_SW_APPLICATION_OR_FILE_NOT_FOUND UINT16_C(0x6A82)
28
32#define NBT_SW_SELECT_FILE_WRONG_TLV UINT16_C(0x6A80)
33
37#define NBT_SW_INCORRECT_DATA_PARAMETERS UINT16_C(0x6A80)
38
42#define NBT_SW_UNSUPPORTED_DATA UINT16_C(0x6A88)
43
50#define NBT_SW_SECURITY_ACCESS_DENIED UINT16_C(0x6985)
51
55#define NBT_SW_WRONG_P1_P2 UINT16_C(0x6A86)
56
60#define NBT_SW_SECURITY_NOT_SATISFIED UINT16_C(0x6982)
61
65#define NBT_SW_UPDATE_ACCESS_DENIED UINT16_C(0x6985)
66
70#define NBT_SW_COMMAND_NOT_ALLOWED UINT16_C(0x6986)
71
76#define NBT_SW_CONDITIONS_NOT_SATISFIED UINT16_C(0x6985)
77
81#define NBT_SW_INCORRECT_DATA UINT16_C(0x6A80)
82
86#define NBT_SW_CONFIG_SELECT_INCORRECT_DATA UINT16_C(0x6A80)
87
91#define NBT_SW_CONFIG_SELECT_INCORRECT_LC UINT16_C(0x6700)
92
96#define NBT_SW_GET_DATA_WRONG_LE UINT16_C(0x6700)
97
101#define NBT_SW_DATA_NOT_FOUND UINT16_C(0x6A88)
102
106#define NBT_MESSAGE_ERROR_COUNTS UINT8_C(0x1E)
107
108/* Error identifiers */
109
113#define NBT_LC_INVALID UINT8_C(0x01)
114
118#define NBT_NFC_APDU_NOT_AVAILABLE UINT8_C(0x02)
119
123#define NBT_FAP_PARSE_ERROR UINT8_C(0x03)
124
129
130#ifdef __cplusplus
131}
132
133#endif /* __cplusplus */
134#endif /* NBT_ERRORS_H */
APDU (response) error utility.
ifx_apdu_error_map_t nbt_apdu_errors[]
APDU error message list.
Struct that holds APDU Error's message with respective to the INS and SW.