| typedef void(* PN_API_IOD_arOwnershipCbf) (PN_API_IOD_Handle_t *const pnHandle, uint32_t arNum, PN_API_IOD_Exp_t *ownSubmod) |
Callback function prototype to inform the user application about the submodule configuration assumed by the IO controller and to ask the IO device to claim the ownership of these submodules.
Prior to engaging in data exchange within AR, it is imperative to have the same module/submodule configuration on bother IO controller and IO device's sides. Failing to do so will result in the inability to exchange valid data. The user application is responsible for confirming that the configuration received from the IO controller aligns with the expected one. Subsequently, the application must communicate with the stack, asserting AR ownership for each submodule if the configurations match, or rejecting the submodule to prevent the exchange of valid IO data if a discrepancy is identified. The application can also use this function to dynamically plug/pull submodules to align the actual configuration with the expected one.
| [in] | pnHandle | Profinet API Handle. |
| [in] | arNum | AR number. |
| [in,out] | ownSubmod | Configured 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. |