PROFINET Device4.2.0
 
Loading...
Searching...
No Matches

◆ PN_APP_IOD_initRecordInfo()

void PN_APP_IOD_initRecordInfo ( bool  asyncRead,
bool  asyncWrite 
)

Initialize record info.

Record data is stored in a global array (userRecList) that is initialized to zero along with all asynchronous record read/write buffers, parameters, handles and modes. If asynchronous mode for read and write functions is initialized to true, the user application informs the stack within the context of PN_APP_IOD_cbRecordRead() or PN_APP_IOD_cbRecordWrite() functions that the read/write response will follow later and there is no need for the stack to wait for it synchronously.

Parameters
[in]asyncReadAsynchronous read.
[in]asyncWriteAsynchronous write.