CDWrite
(FUN)
FUNCTION CDWrite : DINT
Write to a character device file. Write() attempts to write up to count bytes from file handle hFile into the buffer starting at buf.
- InOut:
Scope
Name
Type
Comment
Return
CDWrite
DINT
Nr of Bytes copied.
Input
hFile
RTS_IEC_HANDLE
File descriptor/handle, that was previously created with open()
pbyBuffer
POINTER TO BYTE
Buffer to copy bytes from.
udCount
UDINT
Nr of bytes to copy.
pResult
POINTER TO DINT
Pointer to linux errno error code, 0 is ok