PROFINET Device  v1.04.03

◆ PN_API_IM_resetToFactory()

uint32_t PN_API_IM_resetToFactory ( bool  resetIm4_p)

Reset writable I&M data records of all I&M carriers to factory settings.

I&M1, I&M2 and I&M3 will be filled with blank characters (ASCII 0x20). Application can choose to reset I&M4 data separately. In this case I&M4 will be filled with zero.

Remarks

\warnings

Parameters
[in]resetIm4_pFlag for resetting I&M4 data.
Returns
PN_API_IM_EError_t as uint32_t value.
Return values
#PN_API_IM_APP_eOKFunction successful.
Example
#include <PN_API_IM.h>
//Remove I&M carrier and analyze result.
uint32_t result = PN_API_IM_resetToFactory()
if (result == PN_API_IM_eOK) // success
PN_API_IM_resetToFactory
uint32_t PN_API_IM_resetToFactory(bool resetIm4_p)
Reset writable I&M data records of all I&M carriers to factory settings.
Definition: PN_API_main.c:1530
PN_API_IM_eOK
@ PN_API_IM_eOK
Definition: PN_API_IM.h:76