CDRead (FUN)

FUNCTION CDRead : DINT

Read from a character device file. Read() attempts to read up to count bytes from file handle hFile into the buffer starting at buf.

InOut:

Scope

Name

Type

Comment

Return

CDRead

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 into.

udCount

UDINT

Nr of bytes to copy.

pResult

POINTER TO DINT

Pointer to linux errno error code, 0 is ok