PDS_Restore

Definition: This function restores an item from PDS to RAM.

Syntax

PdsStatus_t PDS_Restore(PdsFileItemIdx_t pdsFileItemIdx, uint8_t item);

Input Parameters

Table 1. Input Parameters

Parameters Name

Parameters Type

Description

pdsFileItemIdx

PdsFileItemIdx_t

PDS file ID of the item

item

uint8_t

PDS item ID

Return Type and Values

Table 2. Return Type

Parameter Name

Parameter Type

Description

PdsStatus_t

ENUM

PDS status codes. Definition available in pds_interface.h

Table 3. Return Values

Return Value

Reason

PDS_OK

PDS operation is success

PDS_INVALID_FILE_IDX

File ID is invalid

PDS_NOT_FOUND

Item ID is not found in File ID or File reference is not in NVM

PDS_ITEM_DELETED

Item is deleted from the PDS

API Type – Synchronous