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

📄 open.c.3

📁 can4linux.3.4.6.gz,一个CAN的高级协议包装
💻 3
字号:
.TH "open.c" 3 "8 Feb 2007" "can4linux" \" -*- nroff -*-.ad l.nh.SH NAMEopen.c \- .SH SYNOPSIS.br.PP.SS "Functions".in +1c.ti -1c.RI "int \fBcan_open\fP (__LDDK_OPEN_PARAM)".br.RI "\fIint open(const char *pathname, int flags); opens the CAN device for following operations \fP".in -1c.SS "Variables".in +1c.ti -1c.RI "int \fBCan_isopen\fP [MAX_CHANNELS] = { 0 }".br.in -1c.SH "Detailed Description".PP \fBAuthor:\fP.RS 4Heinz-J黵gen Oertel, port GmbH .PP\fBRevision\fP.RS 41.2 .RE.PP\fBDate\fP.RS 42006/06/02 12:13:14 .RE.PP.RE.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:\fP.RS 4\fIpathname\fP device pathname, usual /dev/can? .br\fIflags\fP is one of \fCO_RDONLY\fP, \fCO_WRONLY\fP or \fCO_RDWR\fP which request opening the file read-only, write-only or read/write, respectively..RE.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)..PPIf Vendor Option \fIVendOpt\fP is set to 's' the driver performs an hardware reset befor initializing the chip..PP\fBReturns:\fP.RS 4open return the new file descriptor, or -1 if an error occurred (in which case, errno is set appropriately)..RE.PP\fBERRORS\fP.RS 4the following errors can occur .PD 0.IP "\(bu" 2\fCENXIO\fP the file is a device special file and no corresponding device exists. .IP "\(bu" 2\fCEINVAL\fP illegal \fBminor\fP device number .IP "\(bu" 2\fCEINVAL\fP wrong IO-model format in /proc/sys/Can/IOmodel .IP "\(bu" 2\fCEBUSY\fP IRQ for hardware is not available .IP "\(bu" 2\fCEBUSY\fP I/O region for hardware is not available .PP.RE.PP.SH "Author".PP Generated automatically by Doxygen for can4linux from the source code.

⌨️ 快捷键说明

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