| uint32_t PN_API_IOD_activateIsoGpioObj | ( | PN_API_IOD_Handle_t *const | pnHandle, |
| const uint32_t | nsDelayTime, | ||
| const uint32_t | nsDurationTime, | ||
| PN_API_IOD_IsoObjHndl_t * | pObjHandle | ||
| ) |
Creates a new GPIO isochronous object.
This function configures a comparator to generate a pulse on a chosen GPIO after a specific 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] | nsDelayTime | Delay value added to new cycle in nsec. |
| [in] | nsDurationTime | Pulse duration 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. |