| typedef PN_API_IOD_IOXS(* PN_API_IOD_outSubmodSubstValReadCbf) (PN_API_IOD_Handle_t *const pnHandle, PN_API_IOD_DevAddr_t *const addr, const uint32_t bufLen, uint8_t *const buffer, uint16_t *const substMode, uint16_t *const substActive) |
Callback function prototype to read substitute values for output submodule.
When the IO device receives the special read record requests at index 0x8028 (read input data) and index 0x8029 (read output data), it has to respond with input/output data. Profinet stack offers two ways to deal with this:
| [in] | pnHandle | Profinet API Handle. |
| [in] | addr | Geographical address (slot/subslot) of the module/submodule. |
| [in] | bufLen | Length of the submodule output substitute data. |
| [in] | buffer | Pointer to submodule output substitute data. |
| [in,out] | substMode | Substitution mode: 0: substitute value is set to zero. 1: last output value received from controller. 2: replacement value decided by the application. |
| [in,out] | substActive | Substitute active flag: 0: normal operation (IOXS are GOOD). 1: otherwise (substitute value active). |
| PN_API_IOD_STATUS_GOOD | Data received is good. |
| PN_API_IOD_STATUS_BAD | Data received is bad. |