PROFINET Device  v1.04.03

◆ PN_API_PDEV_delete()

uint32_t PN_API_PDEV_delete ( void  )

Deletes IO device, ethernet interface, ip stack and physical device.

Returns with error if IO device, ip stack, ethernet interface and/or physical device are still running.

Returns
PN_API_PDEV_EError_t as uint32_t
Return values
PN_API_PDEV_eOK
PN_API_PDEV_eERROR_WRONG_STATE
PN_API_ETH_eERROR_WRONG_STATE
PN_API_DEV_eERROR_WRONG_STATE
Example
#include <PN_API_PDEV.h>
uint32_t result;
result = PN_API_PDEV_run(void);
See also
PN_API_PDEV_init PN_API_PDEV_start
PN_API_PDEV_run
uint32_t PN_API_PDEV_run(void)
Run physical device, ethernet interface, ip stack, and IO device.
Definition: PN_API_main.c:220