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

◆ PN_APP_IOD_buildIm0Data()

uint32_t PN_APP_IOD_buildIm0Data ( PN_API_IOD_Handle_t *const  pnHandle,
uint32_t  api,
uint32_t  slot,
uint32_t  subslot,
PN_API_IOD_Im0Data_t im0Data 
)

Build IM0 data.

IM0 data is built based on the pre-defined configuration and the slot/subslot number of the given submodule.

Parameters
[in]pnHandleProfinet API Handle.
[in]apiApplication Process Identifier.
[in]slotSlot number.
[in]subslotSubslot number.
[in]im0DataIM0 data structure to be filled.
Returns
result of the operation as uint32_t.
Return values
PN_API_OKOperation succeeded.
PN_API_ERR_PARAMInvalid parameter.