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

◆ PN_API_IOD_setupPDev()

uint32_t PN_API_IOD_setupPDev ( PN_API_IOD_Handle_t *const  pnHandle,
PN_API_IOD_SubmodListEntry_t ioSubmodList,
uint32_t  ioSubmodListSize 
)

Configures the PDev parameters of the IO device.

PDev parameters are simply the list of submodules including their locations, I/O data lengths and their IM0 support.

Warning
Do not call this function! It is meant to be called by the user application when the multi-device support is implemented in the future. For now, it's functionality is covered by PN_API_IOD_startup().
Parameters
[in]pnHandleProfinet API Handle.
[in]ioSubmodListIO Submodule list.
[in]ioSubmodListSizeNumber of elements in IO Submodule list.
Returns
result of the operation as uint32_t.
Return values
PN_API_OKSuccess.
PN_API_NOT_OKSomething went wrong.
PN_API_ERR_PARAMInvalid parameter.
Example
#include "pn_api_iod_device.h"
//Pre-requisites for this function call are not yet available, therefore
//it can not be called...