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

◆ PN_APP_IOD_cbArOwnershipInd()

void PN_APP_IOD_cbArOwnershipInd ( PN_API_IOD_Handle_t *const  pnHandle,
uint32_t  arNum,
PN_API_IOD_Exp_t expSubmodsCfg 
)

Callback function to dynamically reconfigure the submodules and claiming their ownership.

This function receives the expected submodule configuration from the IO controller and tries to align with it. To do this, it checks the compatibility of each sumodule, updates its location if possible, stores the updated information in the remanent memory and informs the IO controller about the final ownership status.

Parameters
[in]pnHandleProfinet API Handle.
[in]arNumAR number.
[in,out]expSubmodsCfgConfigured submodule list to be verified. User application needs to set the following values:
ownSubmod->submod[i].ownSessionKey = 0, if AR ownership is NOT assumed.
ownSubmod->submod[i].isWrongSubmod = true, if submodule ownership is NOT assumed. Otherwise, true.
See also
PN_API_IOD_arOwnershipCbf