![Tews Technologies TPMC866-SW-42 Скачать руководство пользователя страница 17](http://html1.mh-extra.com/html/tews-technologies/tpmc866-sw-42/tpmc866-sw-42_user-manual_1093638017.webp)
TPMC866-SW-42 - VxWorks Device Driver
Page 17 of 37
4.3 read()
NAME
read() – read data from a specified device.
SYNOPSIS
int read
(
int
fd,
char
*buffer,
size_t
maxbytes
)
DESCRIPTION
This function can be used to read data from the device.
PARAMETER
fd
This file descriptor specifies the device to be used. The file descriptor has been returned by the
open()
function.
buffer
This argument points to a user supplied buffer. The returned data will be filled into this buffer.
maxbytes
This parameter specifies the maximum number of read bytes (buffer size).