Callback function to write user record data requested by the IO controller.
This function first checks if the asynchronous record write mode is activated. If not, it writes the record data from the buffer provided by Profinet stack to the corresponding array element. Otherwise, it sends a notification to the stack informing it that the write response will follow later.
- Parameters
-
| [in] | pnHandle | Profinet API Handle. |
| [in] | api | Application Process Identifier. |
| [in] | arNum | AR number. |
| [in] | sessionKey | AR session key. |
| [in] | sequenceNum | Sequence number. |
| [in] | addr | Geographical address (slot/subslot) of the module/submodule. |
| [in] | recordIndex | Index of the record. |
| [in] | bufLen | Length of data to write. |
| [in] | buffer | Buffer containing data to be written. |
| [in,out] | errState | Profinet status. |
- Returns
- result of the operation as uint32_t.
- Return values
-
- See also
- PN_API_IOD_recordWriteCbf