⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 can__read_8c.3

📁 S3C44B0接can总线.rar
💻 3
字号:
.TH "can_read.c" 3 "15 Jun 2001" "can4linux" \" -*- nroff -*-.ad l.nh.SH NAMEcan_read.c \-  .SH SYNOPSIS.br.PP.SS "Functions".in +1c.ti -1c.RI "int \fBcan_read\fP (__LDDK_READ_PARAM)".br.RI "\fIssize_t read(int fd, void *buf, size_t count); the read system call.\fP".in -1c.SH "DETAILED DESCRIPTION".PP  .PP\fBAuthor(s): \fP.in +1cHeinz-J黵gen Oertel, port GmbH .PP\fBRevision: \fP.in +1c 1.2  .PP\fBDate: \fP.in +1c 2001/06/15 15:32:45 .PPModule Description  see Doxygen Doc for all possibilities.PP.SH "FUNCTION DOCUMENTATION".PP .SS "int can_read (__LDDK_READ_PARAM)".PPssize_t read(int fd, void *buf, size_t count); the read system call..PP\fBParameters: \fP.in +1c.TP\fB\fIfd\fP\fPThe descriptor to read from. .TP\fB\fIbuf\fP\fPThe destination data buffer (array of CAN \fBcanmsg_t\fP). .TP\fB\fIcount\fP\fPThe number of bytes to read..PPread() attempts to read up to \fIcount\fP CAN messages from file descriptor fd into the buffer starting at buf. buf must be large enough to hold count times the size of  one CAN message structure \fB\fBcanmsg_t\fP\fP..PP.nfint got;canmsg_t rx[80];                        // receive buffer for read()    got = read(can_fd, rx , 80 );    if( got > 0) {      ...    } else {        // read returned with error        fprintf(stderr, '- Received got = %d\n', got);        fflush(stderr);    }.fi\fBERRORS\fP.in +1cthe following errors can occur.PP.TP \fCEINVAL\fP \fBbuf\fP points not to an large enough area,.PP\fBReturns: \fP.in +1cOn success, the number of bytes read is returned (zero indicates end of file). It is not an error if this number is smaller than the number of bytes requested; this may happen for example because fewer bytes are actually available right now, or because read() was interrupted by a signal. On error, -1 is returned, and errno is set appropriately..PPFor internal use only..SH "AUTHOR".PP Generated automatically by Doxygen for can4linux from the source code.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -