nRF Connect SDK API 2.8.0
Loading...
Searching...
No Matches
protected_storage.h File Reference
#include <stddef.h>
#include <stdint.h>
#include "psa/error.h"
#include "psa/storage_common.h"

Go to the source code of this file.

Macros

#define PSA_PS_API_VERSION_MAJOR   1
 PSA_PS_API_VERSION version.
 
#define PSA_PS_API_VERSION_MINOR   0
 

Functions

psa_status_t psa_ps_set (psa_storage_uid_t uid, size_t data_length, const void *p_data, psa_storage_create_flags_t create_flags)
 Create a new, or modify an existing, uid/value pair.
 
psa_status_t psa_ps_get (psa_storage_uid_t uid, size_t data_offset, size_t data_size, void *p_data, size_t *p_data_length)
 Retrieve data associated with a provided uid.
 
psa_status_t psa_ps_get_info (psa_storage_uid_t uid, struct psa_storage_info_t *p_info)
 Retrieve the metadata about the provided uid.
 
psa_status_t psa_ps_remove (psa_storage_uid_t uid)
 Remove the provided uid and its associated data from the storage.
 
psa_status_t psa_ps_create (psa_storage_uid_t uid, size_t capacity, psa_storage_create_flags_t create_flags)
 Reserves storage for the specified uid.
 
psa_status_t psa_ps_set_extended (psa_storage_uid_t uid, size_t data_offset, size_t data_length, const void *p_data)
 Sets partial data into an asset.
 
uint32_t psa_ps_get_support (void)
 Lists optional features.