| uint32_t PN_API_IOD_activateIsoIsrObj | ( | PN_API_IOD_Handle_t *const | pnHandle, |
| PN_API_IOD_cbIscoh_t | pIstCbf, | ||
| const uint32_t | nsDelayTime, | ||
| PN_API_IOD_IsoObjHndl_t * | pObjHandle | ||
| ) |
Creates a new ISR isochronous object.
This function configures an ISR handler to be executed after a specified delay to NewCycle. The service scans for an available object, sets it up and returns an object handle. If multiple events are requested it is important to setup the event with the lower delaytime first.
| [in] | pnHandle | Profinet API Handle. |
| [in] | pIstCbf | Pointer to callback function. |
| [in] | nsDelayTime | Delay value added to new cycle in nsec. |
| [out] | pObjHandle | Return handle to given address, used by PN_API_IOD_freeIsoObj(). |
| PN_API_OK | Success. |
| PN_API_NOT_OK | Something went wrong. |
| PN_API_ERR_PARAM | Invalid parameter. |