|
TF-M Reference Manual
1.2.0
TrustedFirmware-M
|


Go to the source code of this file.
Macros | |
| #define | TFM_PLATFORM_API_VERSION_MAJOR (0) |
| TFM secure partition platform API version. More... | |
| #define | TFM_PLATFORM_API_VERSION_MINOR (3) |
| #define | TFM_PLATFORM_API_ID_NV_READ (1010) |
| #define | TFM_PLATFORM_API_ID_NV_INCREMENT (1011) |
Typedefs | |
| typedef int32_t | tfm_platform_ioctl_req_t |
Enumerations | |
| enum | tfm_platform_err_t { TFM_PLATFORM_ERR_SUCCESS = 0, TFM_PLATFORM_ERR_SYSTEM_ERROR, TFM_PLATFORM_ERR_INVALID_PARAM, TFM_PLATFORM_ERR_NOT_SUPPORTED, TFM_PLATFORM_ERR_FORCE_INT_SIZE = INT_MAX } |
| Platform service error types. More... | |
Functions | |
| enum tfm_platform_err_t | tfm_platform_system_reset (void) |
| Resets the system. More... | |
| enum tfm_platform_err_t | tfm_platform_ioctl (tfm_platform_ioctl_req_t request, psa_invec *input, psa_outvec *output) |
| Performs a platform-specific service. More... | |
| enum tfm_platform_err_t | tfm_platform_nv_counter_increment (uint32_t counter_id) |
| Increments the given non-volatile (NV) counter by one. More... | |
| enum tfm_platform_err_t | tfm_platform_nv_counter_read (uint32_t counter_id, uint32_t size, uint8_t *val) |
| Reads the given non-volatile (NV) counter. More... | |
| #define TFM_PLATFORM_API_ID_NV_INCREMENT (1011) |
Definition at line 27 of file tfm_platform_api.h.
| #define TFM_PLATFORM_API_ID_NV_READ (1010) |
Definition at line 26 of file tfm_platform_api.h.
| #define TFM_PLATFORM_API_VERSION_MAJOR (0) |
TFM secure partition platform API version.
Definition at line 23 of file tfm_platform_api.h.
| #define TFM_PLATFORM_API_VERSION_MINOR (3) |
Definition at line 24 of file tfm_platform_api.h.
| typedef int32_t tfm_platform_ioctl_req_t |
Definition at line 45 of file tfm_platform_api.h.
| enum tfm_platform_err_t |
Platform service error types.
| Enumerator | |
|---|---|
| TFM_PLATFORM_ERR_SUCCESS | |
| TFM_PLATFORM_ERR_SYSTEM_ERROR | |
| TFM_PLATFORM_ERR_INVALID_PARAM | |
| TFM_PLATFORM_ERR_NOT_SUPPORTED | |
| TFM_PLATFORM_ERR_FORCE_INT_SIZE | |
Definition at line 35 of file tfm_platform_api.h.
| enum tfm_platform_err_t tfm_platform_ioctl | ( | tfm_platform_ioctl_req_t | request, |
| psa_invec * | input, | ||
| psa_outvec * | output | ||
| ) |
Performs a platform-specific service.
| [in] | request | Request identifier (valid values vary based on the platform) |
| [in] | input | Input buffer to the requested service (or NULL) |
| [in,out] | output | Output buffer to the requested service (or NULL) |
Definition at line 24 of file tfm_platform_func_api.c.


| enum tfm_platform_err_t tfm_platform_nv_counter_increment | ( | uint32_t | counter_id | ) |
Increments the given non-volatile (NV) counter by one.
| [in] | counter_id | NV counter ID. |
Definition at line 95 of file tfm_platform_secure_api.c.


| enum tfm_platform_err_t tfm_platform_nv_counter_read | ( | uint32_t | counter_id, |
| uint32_t | size, | ||
| uint8_t * | val | ||
| ) |
Reads the given non-volatile (NV) counter.
| [in] | counter_id | NV counter ID. |
| [in] | size | Size of the buffer to store NV counter value in bytes. |
| [out] | val | Pointer to store the current NV counter value. |
Definition at line 132 of file tfm_platform_secure_api.c.


| enum tfm_platform_err_t tfm_platform_system_reset | ( | void | ) |
Resets the system.
Definition at line 13 of file tfm_platform_func_api.c.
