207
|
1 |
\hypertarget{can__peak__linux_8c}{
|
|
2 |
\section{/home/epimerde/documents/tc11/Can\-Festival-3/drivers/can\_\-peak\_\-linux/can\_\-peak\_\-linux.c File Reference}
|
|
3 |
\label{can__peak__linux_8c}\index{/home/epimerde/documents/tc11/CanFestival-3/drivers/can_peak_linux/can_peak_linux.c@{/home/epimerde/documents/tc11/CanFestival-3/drivers/can\_\-peak\_\-linux/can\_\-peak\_\-linux.c}}
|
|
4 |
}
|
|
5 |
{\tt \#include $<$stdio.h$>$}\par
|
|
6 |
{\tt \#include $<$string.h$>$}\par
|
|
7 |
{\tt \#include $<$errno.h$>$}\par
|
|
8 |
{\tt \#include $<$fcntl.h$>$}\par
|
|
9 |
{\tt \#include \char`\"{}libpcan.h\char`\"{}}\par
|
|
10 |
{\tt \#include \char`\"{}can\_\-driver.h\char`\"{}}\par
|
|
11 |
\subsection*{Defines}
|
|
12 |
\begin{CompactItemize}
|
|
13 |
\item
|
|
14 |
\#define \hyperlink{can__peak__linux_8c_44ef8a15c3be0d9b410c0c21709a12c2}{CAN\_\-INIT\_\-TYPE\_\-ST\_\-RTR}~MSGTYPE\_\-STANDARD $|$ MSGTYPE\_\-RTR
|
|
15 |
\end{CompactItemize}
|
|
16 |
\subsection*{Functions}
|
|
17 |
\begin{CompactItemize}
|
|
18 |
\item
|
|
19 |
UNS8 \hyperlink{can__peak__linux_8c_6b3248e95acf2b08d1fd8b42610cc5a6}{can\-Receive\_\-driver} (\hyperlink{win32_2applicfg_8h_712c7b28987b12b8d400df19c92d0f5e}{CAN\_\-HANDLE} fd0, \hyperlink{structMessage}{Message} $\ast$m)
|
|
20 |
\item
|
|
21 |
UNS8 \hyperlink{can__peak__linux_8c_def95aee49efa13dd047d0b3b5507ad3}{can\-Send\_\-driver} (\hyperlink{win32_2applicfg_8h_712c7b28987b12b8d400df19c92d0f5e}{CAN\_\-HANDLE} fd0, \hyperlink{structMessage}{Message} $\ast$m)
|
|
22 |
\item
|
|
23 |
int \hyperlink{can__peak__linux_8c_6820d7fa32e6e79d432c6003e4c15c32}{Translate\-Baude\-Rate} (char $\ast$optarg)
|
|
24 |
\item
|
|
25 |
\hyperlink{win32_2applicfg_8h_712c7b28987b12b8d400df19c92d0f5e}{CAN\_\-HANDLE} \hyperlink{can__peak__linux_8c_945403aba7f36acbd2e7160ade361bab}{can\-Open\_\-driver} (\hyperlink{structstruct__s__BOARD}{s\_\-BOARD} $\ast$board)
|
|
26 |
\item
|
|
27 |
int \hyperlink{can__peak__linux_8c_76e6a915d0e40a23b863198b2aaa5545}{can\-Close\_\-driver} (\hyperlink{win32_2applicfg_8h_712c7b28987b12b8d400df19c92d0f5e}{CAN\_\-HANDLE} fd0)
|
|
28 |
\end{CompactItemize}
|
|
29 |
|
|
30 |
|
|
31 |
\subsection{Define Documentation}
|
|
32 |
\hypertarget{can__peak__linux_8c_44ef8a15c3be0d9b410c0c21709a12c2}{
|
|
33 |
\index{can_peak_linux.c@{can\_\-peak\_\-linux.c}!CAN_INIT_TYPE_ST_RTR@{CAN\_\-INIT\_\-TYPE\_\-ST\_\-RTR}}
|
|
34 |
\index{CAN_INIT_TYPE_ST_RTR@{CAN\_\-INIT\_\-TYPE\_\-ST\_\-RTR}!can_peak_linux.c@{can\_\-peak\_\-linux.c}}
|
|
35 |
\subsubsection[CAN\_\-INIT\_\-TYPE\_\-ST\_\-RTR]{\setlength{\rightskip}{0pt plus 5cm}\#define CAN\_\-INIT\_\-TYPE\_\-ST\_\-RTR~MSGTYPE\_\-STANDARD $|$ MSGTYPE\_\-RTR}}
|
|
36 |
\label{can__peak__linux_8c_44ef8a15c3be0d9b410c0c21709a12c2}
|
|
37 |
|
|
38 |
|
|
39 |
|
|
40 |
|
|
41 |
Definition at line 37 of file can\_\-peak\_\-linux.c.
|
|
42 |
|
|
43 |
\subsection{Function Documentation}
|
|
44 |
\hypertarget{can__peak__linux_8c_76e6a915d0e40a23b863198b2aaa5545}{
|
|
45 |
\index{can_peak_linux.c@{can\_\-peak\_\-linux.c}!canClose_driver@{canClose\_\-driver}}
|
|
46 |
\index{canClose_driver@{canClose\_\-driver}!can_peak_linux.c@{can\_\-peak\_\-linux.c}}
|
|
47 |
\subsubsection[canClose\_\-driver]{\setlength{\rightskip}{0pt plus 5cm}int can\-Close\_\-driver (\hyperlink{win32_2applicfg_8h_712c7b28987b12b8d400df19c92d0f5e}{CAN\_\-HANDLE} {\em fd0})}}
|
|
48 |
\label{can__peak__linux_8c_76e6a915d0e40a23b863198b2aaa5545}
|
|
49 |
|
|
50 |
|
|
51 |
|
|
52 |
|
|
53 |
Definition at line 129 of file can\_\-peak\_\-linux.c.\hypertarget{can__peak__linux_8c_945403aba7f36acbd2e7160ade361bab}{
|
|
54 |
\index{can_peak_linux.c@{can\_\-peak\_\-linux.c}!canOpen_driver@{canOpen\_\-driver}}
|
|
55 |
\index{canOpen_driver@{canOpen\_\-driver}!can_peak_linux.c@{can\_\-peak\_\-linux.c}}
|
|
56 |
\subsubsection[canOpen\_\-driver]{\setlength{\rightskip}{0pt plus 5cm}\hyperlink{win32_2applicfg_8h_712c7b28987b12b8d400df19c92d0f5e}{CAN\_\-HANDLE} can\-Open\_\-driver (\hyperlink{structstruct__s__BOARD}{s\_\-BOARD} $\ast$ {\em board})}}
|
|
57 |
\label{can__peak__linux_8c_945403aba7f36acbd2e7160ade361bab}
|
|
58 |
|
|
59 |
|
|
60 |
|
|
61 |
|
|
62 |
Definition at line 104 of file can\_\-peak\_\-linux.c.
|
|
63 |
|
|
64 |
References struct\_\-s\_\-BOARD::baudrate, struct\_\-s\_\-BOARD::busname, and Translate\-Baude\-Rate().\hypertarget{can__peak__linux_8c_6b3248e95acf2b08d1fd8b42610cc5a6}{
|
|
65 |
\index{can_peak_linux.c@{can\_\-peak\_\-linux.c}!canReceive_driver@{canReceive\_\-driver}}
|
|
66 |
\index{canReceive_driver@{canReceive\_\-driver}!can_peak_linux.c@{can\_\-peak\_\-linux.c}}
|
|
67 |
\subsubsection[canReceive\_\-driver]{\setlength{\rightskip}{0pt plus 5cm}UNS8 can\-Receive\_\-driver (\hyperlink{win32_2applicfg_8h_712c7b28987b12b8d400df19c92d0f5e}{CAN\_\-HANDLE} {\em fd0}, \hyperlink{structMessage}{Message} $\ast$ {\em m})}}
|
|
68 |
\label{can__peak__linux_8c_6b3248e95acf2b08d1fd8b42610cc5a6}
|
|
69 |
|
|
70 |
|
|
71 |
|
|
72 |
|
|
73 |
Definition at line 40 of file can\_\-peak\_\-linux.c.
|
|
74 |
|
|
75 |
References Message::cob\_\-id, Message::data, Message::len, Message::rtr, UNS8, and SHORT\_\-CAN::w.\hypertarget{can__peak__linux_8c_def95aee49efa13dd047d0b3b5507ad3}{
|
|
76 |
\index{can_peak_linux.c@{can\_\-peak\_\-linux.c}!canSend_driver@{canSend\_\-driver}}
|
|
77 |
\index{canSend_driver@{canSend\_\-driver}!can_peak_linux.c@{can\_\-peak\_\-linux.c}}
|
|
78 |
\subsubsection[canSend\_\-driver]{\setlength{\rightskip}{0pt plus 5cm}UNS8 can\-Send\_\-driver (\hyperlink{win32_2applicfg_8h_712c7b28987b12b8d400df19c92d0f5e}{CAN\_\-HANDLE} {\em fd0}, \hyperlink{structMessage}{Message} $\ast$ {\em m})}}
|
|
79 |
\label{can__peak__linux_8c_def95aee49efa13dd047d0b3b5507ad3}
|
|
80 |
|
|
81 |
|
|
82 |
|
|
83 |
|
|
84 |
Definition at line 64 of file can\_\-peak\_\-linux.c.
|
|
85 |
|
|
86 |
References CAN\_\-INIT\_\-TYPE\_\-ST\_\-RTR, Message::data, Message::len, Message::rtr, and UNS8.\hypertarget{can__peak__linux_8c_6820d7fa32e6e79d432c6003e4c15c32}{
|
|
87 |
\index{can_peak_linux.c@{can\_\-peak\_\-linux.c}!TranslateBaudeRate@{TranslateBaudeRate}}
|
|
88 |
\index{TranslateBaudeRate@{TranslateBaudeRate}!can_peak_linux.c@{can\_\-peak\_\-linux.c}}
|
|
89 |
\subsubsection[TranslateBaudeRate]{\setlength{\rightskip}{0pt plus 5cm}int Translate\-Baude\-Rate (char $\ast$ {\em optarg})}}
|
|
90 |
\label{can__peak__linux_8c_6820d7fa32e6e79d432c6003e4c15c32}
|
|
91 |
|
|
92 |
|
|
93 |
|
|
94 |
|
|
95 |
Definition at line 89 of file can\_\-peak\_\-linux.c. |