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

◆ PN_API_IOD_asyncApplReady()

uint32_t PN_API_IOD_asyncApplReady ( PN_API_IOD_Handle_t *const  pnHandle,
uint16_t  arNum,
uint32_t  api,
uint16_t  slot,
uint16_t  submodId,
PN_API_IOD_SubmodStatus_t  submodState,
bool  moreFollows 
)

Send an asynchronous application ready message.

Needed only if the "application ready" for a submodule should be delayed due to incomplete parameter assignment for that submodule. Therefore, instead of passing this information to the stack using the return value of PN_API_IOD_paramEndCbf() so the stack can automatically generate "application ready", the user application returns PN_API_IOD_SubmodStatusAppReadyFollows for the PN_API_IOD_paramEndCbf() and later sends the "application ready" using this function.

Parameters
[in]pnHandleProfinet API Handle.
[in]arNumAR number.
[in]apiApplication Process Identifier.
[in]slotSlot number.
[in]submodIdSubmodule identifier, or 0 for all submodules.
[in]submodStateSubmodule state.
[in]moreFollowstrue, if "application ready" for more submodules
in this AR are expected.
false, if no further "application ready" needed.
Returns
result of the operation as uint32_t.
Return values
PN_API_OKSuccess.
PN_API_NOT_OKSomething went wrong.
PN_API_ERR_PARAMInvalid parameter.