?? can_open_c.3
字號:
.TH "can_open.c" 3 "14 Sep 2001" "can4linux" \" -*- nroff -*-.ad l.nh.SH NAMEcan_open.c \- .SH SYNOPSIS.br.PP.SS Functions.in +1c.ti -1c.RI "int \fBcan_open\fR (__LDDK_OPEN_PARAM)".br.RI "\fIint open(const char *pathname, int flags); opens the CAN device for following operations.\fR".in -1c.SS Variables.in +1c.ti -1c.RI "int \fBCan_isopen\fR [4] = { 0, 0, 0, 0}".br.in -1c.SH DETAILED DESCRIPTION.PP .PP\fBAuthor(s): \fR.in +1cHeinz-J黵gen Oertel, port GmbH .PP\fBRevision: \fR.in +1c 1.3 .PP\fBDate: \fR.in +1c 2001/09/04 15:51:44 .PP.SH FUNCTION DOCUMENTATION.PP .SS int can_open (__LDDK_OPEN_PARAM).PPint open(const char *pathname, int flags); opens the CAN device for following operations..PP\fBParameters: \fR.in +1c.TP\fB\fIpathname\fR\fRdevice pathname, usual /dev/can? .TP\fB\fIflags\fR\fRis one of \fCO_RDONLY\fR, \fCO_WRONLY\fR or \fCO_RDWR\fR which request opening the file read-only, write-only or read/write, respectively..PPThe open call is used to "open" the device. Doing a first initialization according the to values in the /proc/sys/Can file system. Additional an ISR function is assigned to the IRQ..PPThe CLK OUT pin is configured for creating the same frequency like the chips input frequency fclk (XTAL)..PP\fBReturns: \fR.in +1copen return the new file descriptor, or -1 if an error occurred (in which case, errno is set appropriately)..PP\fBERRORS\fR.in +1cthe following errors can occur .TP \fCENXIO\fR the file is a device special file and no corresponding device exists. .TP \fCEINVAL\fR illegal \fBminor\fR device number .TP \fCEINVAL\fR wrong IO-model format in /proc/sys/Can/IOmodel .TP \fCEBUSY\fR IRQ for hardware is not available .TP \fCEBUSY\fR I/O region for hardware is not available .SH AUTHOR.PP Generated automatically by Doxygen for can4linux from the source code.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -