| uint32_t PN_APP_IOD_cbRestoreRemaMem | ( | PN_API_IOD_Handle_t *const | pnHandle, |
| PN_API_IOD_RemaDataType_t | type, | ||
| const uint32_t | instance, | ||
| uint8_t **const | destMem, | ||
| uint32_t *const | memSize | ||
| ) |
Callback function to request stored remanent data.
In this function, the application requests the PDev records from NV memory and sends them back to Profinet stack.
| [in] | pnHandle | Profinet API Handle. |
| [in] | type | Type of content to be stored |
| [in] | instance | Instance of type |
| [out] | destMem | Pointer to the buffer holding PDev data. |
| [in] | memSize | Size of the PDev buffer that needs to be restored from NV memory. |
| PN_API_OK | Success. |
| PN_API_NOT_OK | Something went wrong. |
| PN_API_ERR_PARAM | Invalid parameter. |