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

◆ PN_APP_IOD_cbStoreRemaMem()

uint32_t PN_APP_IOD_cbStoreRemaMem ( PN_API_IOD_Handle_t *const  pnHandle,
PN_API_IOD_RemaDataType_t  type,
const uint32_t  instance,
const uint32_t  memSize,
uint8_t *const  srcMem 
)

Callback function to request to store remanent data in NV memory.

In this function, the application receives the PDev records from Profinet stack and stores them in NV memory.

Parameters
[in]pnHandleProfinet API Handle.
[in]typeType of content to be stored
[in]instanceInstance of type
[in]memSizeSize of the PDev buffer that needs to be written to NV memory.
[in]srcMemPointer to the buffer holding PDev data.
Returns
result of the operation as uint32_t.
Return values
PN_API_OKSuccess.
PN_API_ERR_PARAMInvalid parameter.
PN_API_ERR_FLASH_STORENV memory write operation failed.
See also
PN_API_IOD_storeRemaMemCbf