PROFINET Device4.2.0
 
Loading...
Searching...
No Matches

◆ PN_APP_IOD_cbRestoreRemaMem()

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.

Parameters
[in]pnHandleProfinet API Handle.
[in]typeType of content to be stored
[in]instanceInstance of type
[out]destMemPointer to the buffer holding PDev data.
[in]memSizeSize of the PDev buffer that needs to be restored from NV memory.
Returns
result of the operation as uint32_t.
Return values
PN_API_OKSuccess.
PN_API_NOT_OKSomething went wrong.
PN_API_ERR_PARAMInvalid parameter.
See also
PN_API_IOD_restoreRemaMemCbf