TF-M Reference Manual  1.2.0
TrustedFirmware-M
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
error.h File Reference

Standard error codes for the SPM and RoT Services. More...

#include <stdint.h>
Include dependency graph for error.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PSA_SUCCESS   ((psa_status_t)0)
 
#define PSA_ERROR_PROGRAMMER_ERROR   ((psa_status_t)-129)
 
#define PSA_ERROR_CONNECTION_REFUSED   ((psa_status_t)-130)
 
#define PSA_ERROR_CONNECTION_BUSY   ((psa_status_t)-131)
 
#define PSA_ERROR_GENERIC_ERROR   ((psa_status_t)-132)
 
#define PSA_ERROR_NOT_PERMITTED   ((psa_status_t)-133)
 
#define PSA_ERROR_NOT_SUPPORTED   ((psa_status_t)-134)
 
#define PSA_ERROR_INVALID_ARGUMENT   ((psa_status_t)-135)
 
#define PSA_ERROR_INVALID_HANDLE   ((psa_status_t)-136)
 
#define PSA_ERROR_BAD_STATE   ((psa_status_t)-137)
 
#define PSA_ERROR_BUFFER_TOO_SMALL   ((psa_status_t)-138)
 
#define PSA_ERROR_ALREADY_EXISTS   ((psa_status_t)-139)
 
#define PSA_ERROR_DOES_NOT_EXIST   ((psa_status_t)-140)
 
#define PSA_ERROR_INSUFFICIENT_MEMORY   ((psa_status_t)-141)
 
#define PSA_ERROR_INSUFFICIENT_STORAGE   ((psa_status_t)-142)
 
#define PSA_ERROR_INSUFFICIENT_DATA   ((psa_status_t)-143)
 
#define PSA_ERROR_SERVICE_FAILURE   ((psa_status_t)-144)
 
#define PSA_ERROR_COMMUNICATION_FAILURE   ((psa_status_t)-145)
 
#define PSA_ERROR_STORAGE_FAILURE   ((psa_status_t)-146)
 
#define PSA_ERROR_HARDWARE_FAILURE   ((psa_status_t)-147)
 
#define PSA_ERROR_INVALID_SIGNATURE   ((psa_status_t)-149)
 

Typedefs

typedef int32_t psa_status_t
 

Detailed Description

Standard error codes for the SPM and RoT Services.

Definition in file error.h.

Macro Definition Documentation

#define PSA_ERROR_ALREADY_EXISTS   ((psa_status_t)-139)

Definition at line 42 of file error.h.

#define PSA_ERROR_BAD_STATE   ((psa_status_t)-137)

Definition at line 40 of file error.h.

#define PSA_ERROR_BUFFER_TOO_SMALL   ((psa_status_t)-138)

Definition at line 41 of file error.h.

#define PSA_ERROR_COMMUNICATION_FAILURE   ((psa_status_t)-145)

Definition at line 48 of file error.h.

#define PSA_ERROR_CONNECTION_BUSY   ((psa_status_t)-131)

Definition at line 34 of file error.h.

#define PSA_ERROR_CONNECTION_REFUSED   ((psa_status_t)-130)

Definition at line 33 of file error.h.

#define PSA_ERROR_DOES_NOT_EXIST   ((psa_status_t)-140)

Definition at line 43 of file error.h.

#define PSA_ERROR_GENERIC_ERROR   ((psa_status_t)-132)

Definition at line 35 of file error.h.

#define PSA_ERROR_HARDWARE_FAILURE   ((psa_status_t)-147)

Definition at line 50 of file error.h.

#define PSA_ERROR_INSUFFICIENT_DATA   ((psa_status_t)-143)

Definition at line 46 of file error.h.

#define PSA_ERROR_INSUFFICIENT_MEMORY   ((psa_status_t)-141)

Definition at line 44 of file error.h.

#define PSA_ERROR_INSUFFICIENT_STORAGE   ((psa_status_t)-142)

Definition at line 45 of file error.h.

#define PSA_ERROR_INVALID_ARGUMENT   ((psa_status_t)-135)

Definition at line 38 of file error.h.

#define PSA_ERROR_INVALID_HANDLE   ((psa_status_t)-136)

Definition at line 39 of file error.h.

#define PSA_ERROR_INVALID_SIGNATURE   ((psa_status_t)-149)

Definition at line 51 of file error.h.

#define PSA_ERROR_NOT_PERMITTED   ((psa_status_t)-133)

Definition at line 36 of file error.h.

#define PSA_ERROR_NOT_SUPPORTED   ((psa_status_t)-134)

Definition at line 37 of file error.h.

#define PSA_ERROR_PROGRAMMER_ERROR   ((psa_status_t)-129)

Definition at line 32 of file error.h.

#define PSA_ERROR_SERVICE_FAILURE   ((psa_status_t)-144)

Definition at line 47 of file error.h.

#define PSA_ERROR_STORAGE_FAILURE   ((psa_status_t)-146)

Definition at line 49 of file error.h.

#define PSA_SUCCESS   ((psa_status_t)0)

Definition at line 30 of file error.h.

Typedef Documentation

typedef int32_t psa_status_t

Definition at line 27 of file error.h.