nRF Connect SDK API
3.3.99
Loading...
Searching...
No Matches
error.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2023 Nordic Semiconductor ASA
3
*
4
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5
*/
6
12
#ifndef __PSA_ERROR_H__
13
#define __PSA_ERROR_H__
14
15
#include <stdint.h>
16
17
#ifdef __cplusplus
18
extern
"C"
{
19
#endif
20
21
/* If #PSA_SUCCESS is already defined, it means that #psa_status_t
22
* is also defined in an external header, so prevent its multiple
23
* definition.
24
*/
25
#ifndef PSA_SUCCESS
26
typedef
int32_t
psa_status_t
;
27
#endif
28
29
#define PSA_SUCCESS ((psa_status_t)0)
30
#define PSA_SUCCESS_REBOOT ((psa_status_t)1)
31
#define PSA_SUCCESS_RESTART ((psa_status_t)2)
32
33
#define PSA_ERROR_PROGRAMMER_ERROR ((psa_status_t)-129)
34
#define PSA_ERROR_CONNECTION_REFUSED ((psa_status_t)-130)
35
#define PSA_ERROR_CONNECTION_BUSY ((psa_status_t)-131)
36
#define PSA_ERROR_GENERIC_ERROR ((psa_status_t)-132)
37
#define PSA_ERROR_NOT_PERMITTED ((psa_status_t)-133)
38
#define PSA_ERROR_NOT_SUPPORTED ((psa_status_t)-134)
39
#define PSA_ERROR_INVALID_ARGUMENT ((psa_status_t)-135)
40
#define PSA_ERROR_INVALID_HANDLE ((psa_status_t)-136)
41
#define PSA_ERROR_BAD_STATE ((psa_status_t)-137)
42
#define PSA_ERROR_BUFFER_TOO_SMALL ((psa_status_t)-138)
43
#define PSA_ERROR_ALREADY_EXISTS ((psa_status_t)-139)
44
#define PSA_ERROR_DOES_NOT_EXIST ((psa_status_t)-140)
45
#define PSA_ERROR_INSUFFICIENT_MEMORY ((psa_status_t)-141)
46
#define PSA_ERROR_INSUFFICIENT_STORAGE ((psa_status_t)-142)
47
#define PSA_ERROR_INSUFFICIENT_DATA ((psa_status_t)-143)
48
#define PSA_ERROR_SERVICE_FAILURE ((psa_status_t)-144)
49
#define PSA_ERROR_COMMUNICATION_FAILURE ((psa_status_t)-145)
50
#define PSA_ERROR_STORAGE_FAILURE ((psa_status_t)-146)
51
#define PSA_ERROR_HARDWARE_FAILURE ((psa_status_t)-147)
52
#define PSA_ERROR_INVALID_SIGNATURE ((psa_status_t)-149)
53
#define PSA_ERROR_CORRUPTION_DETECTED ((psa_status_t)-151)
54
#define PSA_ERROR_DATA_INVALID ((psa_status_t)-153)
55
#define PSA_ERROR_DEPENDENCY_NEEDED ((psa_status_t)-156)
56
#define PSA_ERROR_CURRENTLY_INSTALLING ((psa_status_t)-157)
57
#ifdef __cplusplus
58
}
59
#endif
60
61
#endif
/* __PSA_ERROR_H__ */
psa_status_t
int32_t psa_status_t
Definition
error.h:26
subsys
trusted_storage
include
psa
error.h
Generated on Wed Jun 10 2026 17:22:24 for nRF Connect SDK API by
1.12.0