Skip to content

Commit 98e48e8

Browse files
tomi-fonthenrikbrixandersen
authored andcommitted
secure_storage: document psa/error.h
Add Doxygen documentation to everything defined in this header file. Signed-off-by: Tomi Fontanilles <[email protected]>
1 parent 03a3496 commit 98e48e8

File tree

1 file changed

+25
-0
lines changed
  • subsys/secure_storage/include/psa

1 file changed

+25
-0
lines changed

subsys/secure_storage/include/psa/error.h

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,44 @@
1010
*/
1111
#include <stdint.h>
1212

13+
/** Function return status. Either `PSA_SUCCESS` or one of the defined `PSA_ERROR_*` values. */
1314
typedef int32_t psa_status_t;
1415

16+
/** The operation completed successfully. */
1517
#define PSA_SUCCESS ((psa_status_t)0)
1618

19+
/** An unspecified internal failure happened. */
1720
#define PSA_ERROR_GENERIC_ERROR ((psa_status_t)-132)
21+
22+
/** An entry associated with the provided `uid` already
23+
* exists and was created with `PSA_STORAGE_FLAG_WRITE_ONCE`.
24+
*/
1825
#define PSA_ERROR_NOT_PERMITTED ((psa_status_t)-133)
26+
27+
/** The function is not supported or one or more of the flags
28+
* provided in `create_flags` are not supported or not valid.
29+
*/
1930
#define PSA_ERROR_NOT_SUPPORTED ((psa_status_t)-134)
31+
32+
/** One or more arguments other than `create_flags` are invalid. */
2033
#define PSA_ERROR_INVALID_ARGUMENT ((psa_status_t)-135)
34+
35+
/** An entry with the provided `uid` already exists. */
2136
#define PSA_ERROR_ALREADY_EXISTS ((psa_status_t)-139)
37+
38+
/** The provided `uid` was not found in the storage. */
2239
#define PSA_ERROR_DOES_NOT_EXIST ((psa_status_t)-140)
40+
41+
/** There is insufficient space on the storage medium. */
2342
#define PSA_ERROR_INSUFFICIENT_STORAGE ((psa_status_t)-142)
43+
44+
/** The physical storage has failed (fatal error). */
2445
#define PSA_ERROR_STORAGE_FAILURE ((psa_status_t)-146)
46+
47+
/** The data associated with `uid` failed authentication. */
2548
#define PSA_ERROR_INVALID_SIGNATURE ((psa_status_t)-149)
49+
50+
/** The data associated with `uid` is corrupt. */
2651
#define PSA_ERROR_DATA_CORRUPT ((psa_status_t)-152)
2752

2853
/** @} */

0 commit comments

Comments
 (0)