Functions and callback-prototypes needed for the handling of Profinet cyclic data.
|
| typedef void(* | PN_API_IOD_arInDataCbf) (PN_API_IOD_Handle_t *const pnHandle, const uint16_t arNum, const uint16_t sessionKey) |
| | Callback function prototype to inform the user application that the cyclic data communication was started.
|
| |
| typedef PN_API_IOD_IOXS(* | PN_API_IOD_dataReadCbf) (PN_API_IOD_Handle_t *const pnHandle, PN_API_IOD_DevAddr_t *const addr, const uint32_t bufLen, uint8_t *const buffer, const PN_API_IOD_IOXS remoteIops) |
| | Callback function prototype to write output data received from the IO controller to the physical output of a submodule.
|
| |
| typedef PN_API_IOD_IOXS(* | PN_API_IOD_dataWriteCbf) (PN_API_IOD_Handle_t *const pnHandle, PN_API_IOD_DevAddr_t *const addr, const uint32_t bufLen, uint8_t *const buffer, const PN_API_IOD_IOXS remoteIocs) |
| | Callback function prototype to write input data from the physical input of a submodule to the IO controller.
|
| |
| typedef PN_API_IOD_IOXS(* | PN_API_IOD_dataReadIOxSOnlyCbf) (PN_API_IOD_Handle_t *const pnHandle, PN_API_IOD_DevAddr_t *const addr, const PN_API_IOD_IOXS remoteIops) |
| | Callback function prototype to update only IOxS for read.
|
| |
| typedef PN_API_IOD_IOXS(* | PN_API_IOD_dataWriteIOxSOnlyCbf) (PN_API_IOD_Handle_t *const pnHandle, PN_API_IOD_DevAddr_t *const addr, const PN_API_IOD_IOXS remoteIocs) |
| | Callback function prototype to update only IOxS for write.
|
| |
|
| uint32_t | PN_API_IOD_initiateDataRead (PN_API_IOD_Handle_t *const pnHandle) |
| | Initiates data read in Profinet stack and Performs one-time exchange of IO output data between the user application and Profinet stack for all ARs (RT, IRT).
|
| |
| uint32_t | PN_API_IOD_initiateDataWrite (PN_API_IOD_Handle_t *const pnHandle) |
| | Initiates data write in Profinet stack and Performs one-time exchange of IO input data between the user application and Profinet stack for all ARs (RT, IRT).
|
| |
| uint32_t | PN_API_IOD_getLastApduStatus (PN_API_IOD_Handle_t *const pnHandle, const uint32_t arNum, uint32_t *const apduStatus) |
| | Gets the Application Protocol Data Unit (APDU) status of the output data.
|
| |
| uint32_t | PN_API_IOD_setIops (PN_API_IOD_Handle_t *const pnHandle, const uint32_t api, const uint32_t slotNum, const uint32_t subNum, const PN_API_IOD_IOXS iops) |
| | Changes the IOPS value of submodules, that have no IO data. For example: PDev.
|
| |
| uint32_t | PN_API_IOD_activateCyclicDataExchange (PN_API_IOD_Handle_t *const pnHandle) |
| | Activates the exchange of IO data between the user application and Profinet stack for all ARs (RT, IRT).
|
| |
| uint32_t | PN_API_IOD_deactivateCyclicDataExchange (PN_API_IOD_Handle_t *const pnHandle) |
| | Dectivates the exchange of IO data between the user application and Profinet stack for all ARs (RT, IRT).
|
| |
|
#define | PN_API_IOD_STATUS_BAD 0x00 |
| | IO provider or consumer status is "bad".
|
| |
|
#define | PN_API_IOD_STATUS_GOOD 0x80 |
| | IO provider or consumer status is "good".
|
| |