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

◆ PN_APP_IOD_cbDataWrite()

PN_API_IOD_IOXS PN_APP_IOD_cbDataWrite ( 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 to write input data from the physical input of a submodule to the IO controller.

This function writes data from the global input data array to the buffer provided by the stack. IOCS of the corresponding submodule is also updated while IOPS is sent back as a return value.

Parameters
[in]pnHandleProfinet API Handle.
[in]addrGeographical address (slot/subslot) of the submodule.
[in]bufLenLength of data.
[in]bufferPointer to data buffer to read from.
[in]remoteIocsLast IOCS from the IO controller, can be: PN_API_IOD_STATUS_BAD or PN_API_IOD_STATUS_GOOD.
Returns
Local IOPS as PN_API_IOD_IOXS.
Return values
PN_API_IOD_STATUS_GOODData sent is good.
PN_API_IOD_STATUS_BADData sent is bad.
See also
PN_API_IOD_dataWriteCbf