doc/doxygen/latex/canOpenDriver_8c.tex
author nico
Thu, 07 Jun 2007 09:03:41 +0200
changeset 213 1df3055de547
parent 207 b6572d0336c3
permissions -rw-r--r--
Manual and Documentation finish
207
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
     1
\hypertarget{canOpenDriver_8c}{
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
     2
\section{/home/epimerde/documents/tc11/Can\-Festival-3/drivers/hcs12/can\-Open\-Driver.c File Reference}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
     3
\label{canOpenDriver_8c}\index{/home/epimerde/documents/tc11/CanFestival-3/drivers/hcs12/canOpenDriver.c@{/home/epimerde/documents/tc11/CanFestival-3/drivers/hcs12/canOpenDriver.c}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
     4
}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
     5
{\tt \#include $<$stddef.h$>$}\par
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
     6
{\tt \#include \char`\"{}../include/hcs12/asm-m68hc12/portsaccess.h\char`\"{}}\par
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
     7
{\tt \#include \char`\"{}../include/hcs12/asm-m68hc12/ports\_\-def.h\char`\"{}}\par
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
     8
{\tt \#include \char`\"{}../include/hcs12/asm-m68hc12/ports.h\char`\"{}}\par
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
     9
{\tt \#include \char`\"{}../include/data.h\char`\"{}}\par
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    10
{\tt \#include \char`\"{}../include/hcs12/applicfg.h\char`\"{}}\par
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    11
{\tt \#include \char`\"{}../include/hcs12/candriver.h\char`\"{}}\par
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    12
{\tt \#include \char`\"{}../include/hcs12/interrupt.h\char`\"{}}\par
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    13
{\tt \#include \char`\"{}../include/hcs12/can\-Open\-Driver.h\char`\"{}}\par
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    14
{\tt \#include \char`\"{}../include/can.h\char`\"{}}\par
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    15
{\tt \#include \char`\"{}../include/objdictdef.h\char`\"{}}\par
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    16
{\tt \#include \char`\"{}../include/timer.h\char`\"{}}\par
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    17
\subsection*{Defines}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    18
\begin{CompactItemize}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    19
\item 
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    20
\#define \hyperlink{canOpenDriver_8c_4f52c00ab0d519e2965ebaa533975904}{DEBUG\_\-WAR\_\-CONSOLE\_\-ON}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    21
\item 
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    22
\#define \hyperlink{canOpenDriver_8c_bb416887a32f7e4333e095356774f07f}{DEBUG\_\-ERR\_\-CONSOLE\_\-ON}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    23
\item 
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    24
\#define \hyperlink{canOpenDriver_8c_ffe776513b24d84b39af8ab0930fef7f}{max}(a, b)~a$>$b?a:b
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    25
\end{CompactItemize}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    26
\subsection*{Functions}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    27
\begin{CompactItemize}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    28
\item 
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    29
UNS8 \hyperlink{canOpenDriver_8c_0bf58f014d47581c9ffd1b2db9a858d7}{f\_\-can\_\-receive} (UNS8 notused, \hyperlink{structMessage}{Message} $\ast$m)
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    30
\item 
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    31
UNS8 \hyperlink{canOpenDriver_8c_b57b4b3c000e9f61135175495e874977}{can\-Send} (UNS8 notused, \hyperlink{structMessage}{Message} $\ast$m)
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    32
\item 
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    33
void \hyperlink{canOpenDriver_8c_445500277ba0e363873b34cffc015745}{\_\-\_\-attribute\_\-\_\-} ((interrupt))
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    34
\item 
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    35
TIMEVAL \hyperlink{canOpenDriver_8c_24dbe63e88d184388542037d16a8208d}{get\-Elapsed\-Time} ()
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    36
\item 
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    37
void \hyperlink{canOpenDriver_8c_339b24f4eee897d3c45d88de9a4901e8}{reset\-Timer} (void)
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    38
\item 
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    39
void \hyperlink{canOpenDriver_8c_02922529b60419a94afe8f369dda070b}{init\-Timer} (void)
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    40
\item 
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    41
void \hyperlink{canOpenDriver_8c_f86db4b817c1a59a819cbdd51779bfaa}{init\-SCI\_\-0} (void)
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    42
\begin{CompactList}\small\item\em Initialisation of the serial port 0. \item\end{CompactList}\item 
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    43
void \hyperlink{canOpenDriver_8c_b56fa1754706a57059103710178bdb68}{init\-SCI\_\-1} (void)
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    44
\begin{CompactList}\small\item\em Initialisation of the serial port 1. \item\end{CompactList}\item 
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    45
char $\ast$ \hyperlink{canOpenDriver_8c_2a9aef0efc98c5b41ef97ef91ad403e5}{hex\_\-convert} (char $\ast$buf, unsigned long value, char last\-Car)
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    46
\item 
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    47
void \hyperlink{canOpenDriver_8c_6e3075ae435e83aefc018e5218c197d0}{print\-SCI\_\-str} (char sci, const char $\ast$str)
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    48
\item 
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    49
void \hyperlink{canOpenDriver_8c_80f5dbbc046cba0e5e9cf2bcc4c1e78e}{print\-SCI\_\-nbr} (char sci, unsigned long nbr, char last\-Car)
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    50
\item 
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    51
void \hyperlink{canOpenDriver_8c_51e71c727eb7a49e2fde962a3d190a6b}{init\-PLL} (void)
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    52
\item 
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    53
void \hyperlink{canOpenDriver_8c_c71399958d35a7f703416f025603ee26}{init\-HCS12} (void)
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    54
\begin{CompactList}\small\item\em Put here all the code to init the HCS12. \item\end{CompactList}\item 
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    55
char \hyperlink{canOpenDriver_8c_acfd181d5b055d1403930442e28ac643}{can\-Add\-Id\-To\-Filter} (UNS16 adr\-CAN, UNS8 n\-Filter, UNS16 id)
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    56
\item 
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    57
char \hyperlink{canOpenDriver_8c_751a41c9747b96ab400b5599370cea83}{can\-Change\-Filter} (UNS16 adr\-CAN, \hyperlink{structcanBusFilterInit}{can\-Bus\-Filter\-Init} fi)
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    58
\item 
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    59
char \hyperlink{canOpenDriver_8c_5a53a89d2e348d70331e6ebe269d155a}{can\-Enable} (UNS16 adr\-CAN)
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    60
\item 
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    61
char \hyperlink{canOpenDriver_8c_3c4f7a31d94e5e7c7322535467b806de}{can\-Init} (UNS16 adr\-CAN, \hyperlink{structcanBusInit}{can\-Bus\-Init} \hyperlink{candriver_8h_c731fd3e22e0f2c414b1e3f511c85423}{bi})
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    62
\item 
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    63
char \hyperlink{canOpenDriver_8c_6ec3ce6d79012dd8a08fa5aeb6a0489f}{can\-Init\-Clock} (UNS16 adr\-CAN, \hyperlink{structcanBusTime}{can\-Bus\-Time} clk)
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    64
\item 
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    65
char \hyperlink{canOpenDriver_8c_5fb549697afb7918607aa113e01c543d}{can\-Init1Filter} (UNS16 adr\-CAN, UNS8 n\-Filter, UNS16 ar, UNS16 mr)
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    66
\item 
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    67
char \hyperlink{canOpenDriver_8c_b4502eef7616b25c74b1ac5a2245b085}{can\-Init\-Filter} (UNS16 adr\-CAN, \hyperlink{structcanBusFilterInit}{can\-Bus\-Filter\-Init} fi)
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    68
\item 
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    69
char \hyperlink{canOpenDriver_8c_0b98e4800c82d99981833aa4207f1eb9}{can\-Init\-Mode} (UNS16 adr\-CAN)
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    70
\item 
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    71
char \hyperlink{canOpenDriver_8c_00ffb46abacfdfa56ebc70e15164113e}{can\-Init\-Mode\-Q} (UNS16 adr\-CAN)
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    72
\item 
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    73
char \hyperlink{canOpenDriver_8c_2f2d1ed55cfd9d7f85883f8d70d318ba}{can\-Msg\-Transmit} (UNS16 adr\-CAN, \hyperlink{structMessage}{Message} msg)
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    74
\item 
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    75
char \hyperlink{canOpenDriver_8c_5ad8616a3276f7f40149b551f09aa6a1}{can\-Set\-Interrupt} (UNS16 adr\-CAN)
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    76
\item 
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    77
char \hyperlink{canOpenDriver_8c_c7773223579ec7e0fab5238df214da89}{can\-Sleep\-Mode} (UNS16 adr\-CAN)
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    78
\item 
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    79
char \hyperlink{canOpenDriver_8c_a89f28005eea54f5b216eb72a18d45f3}{can\-Sleep\-Mode\-Q} (UNS16 adr\-CAN)
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    80
\item 
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    81
char \hyperlink{canOpenDriver_8c_1ae1ad5d66ac87085baf5b9d0a4e62ca}{can\-Sleep\-Wup\-Mode} (UNS16 adr\-CAN)
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    82
\item 
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    83
char \hyperlink{canOpenDriver_8c_6beefe951b3c9de786c585257488fa82}{can\-Test\-Init\-Mode} (UNS16 adr\-CAN)
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    84
\item 
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    85
char \hyperlink{canOpenDriver_8c_fa79f2ac95a8143c2fb087260df39820}{can\-Test\-Sleep\-Mode} (UNS16 adr\-CAN)
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    86
\end{CompactItemize}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    87
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    88
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    89
\subsection{Define Documentation}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    90
\hypertarget{canOpenDriver_8c_bb416887a32f7e4333e095356774f07f}{
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    91
\index{canOpenDriver.c@{can\-Open\-Driver.c}!DEBUG_ERR_CONSOLE_ON@{DEBUG\_\-ERR\_\-CONSOLE\_\-ON}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    92
\index{DEBUG_ERR_CONSOLE_ON@{DEBUG\_\-ERR\_\-CONSOLE\_\-ON}!canOpenDriver.c@{can\-Open\-Driver.c}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    93
\subsubsection[DEBUG\_\-ERR\_\-CONSOLE\_\-ON]{\setlength{\rightskip}{0pt plus 5cm}\#define DEBUG\_\-ERR\_\-CONSOLE\_\-ON}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    94
\label{canOpenDriver_8c_bb416887a32f7e4333e095356774f07f}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    95
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    96
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    97
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    98
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    99
Definition at line 24 of file can\-Open\-Driver.c.\hypertarget{canOpenDriver_8c_4f52c00ab0d519e2965ebaa533975904}{
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   100
\index{canOpenDriver.c@{can\-Open\-Driver.c}!DEBUG_WAR_CONSOLE_ON@{DEBUG\_\-WAR\_\-CONSOLE\_\-ON}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   101
\index{DEBUG_WAR_CONSOLE_ON@{DEBUG\_\-WAR\_\-CONSOLE\_\-ON}!canOpenDriver.c@{can\-Open\-Driver.c}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   102
\subsubsection[DEBUG\_\-WAR\_\-CONSOLE\_\-ON]{\setlength{\rightskip}{0pt plus 5cm}\#define DEBUG\_\-WAR\_\-CONSOLE\_\-ON}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   103
\label{canOpenDriver_8c_4f52c00ab0d519e2965ebaa533975904}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   104
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   105
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   106
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   107
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   108
Definition at line 23 of file can\-Open\-Driver.c.\hypertarget{canOpenDriver_8c_ffe776513b24d84b39af8ab0930fef7f}{
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   109
\index{canOpenDriver.c@{can\-Open\-Driver.c}!max@{max}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   110
\index{max@{max}!canOpenDriver.c@{can\-Open\-Driver.c}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   111
\subsubsection[max]{\setlength{\rightskip}{0pt plus 5cm}\#define max(a, b)~a$>$b?a:b}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   112
\label{canOpenDriver_8c_ffe776513b24d84b39af8ab0930fef7f}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   113
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   114
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   115
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   116
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   117
\subsection{Function Documentation}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   118
\hypertarget{canOpenDriver_8c_445500277ba0e363873b34cffc015745}{
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   119
\index{canOpenDriver.c@{can\-Open\-Driver.c}!__attribute__@{\_\-\_\-attribute\_\-\_\-}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   120
\index{__attribute__@{\_\-\_\-attribute\_\-\_\-}!canOpenDriver.c@{can\-Open\-Driver.c}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   121
\subsubsection[\_\-\_\-attribute\_\-\_\-]{\setlength{\rightskip}{0pt plus 5cm}void \_\-\_\-attribute\_\-\_\- ((interrupt))}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   122
\label{canOpenDriver_8c_445500277ba0e363873b34cffc015745}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   123
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   124
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   125
\hyperlink{structMessage}{Message} transmitted on MSCAN 0 
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   126
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   127
Definition at line 54 of file can\-Open\-Driver.c.
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   128
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   129
References IO\_\-PORTS\_\-16, and TC4H.\hypertarget{canOpenDriver_8c_acfd181d5b055d1403930442e28ac643}{
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   130
\index{canOpenDriver.c@{can\-Open\-Driver.c}!canAddIdToFilter@{canAddIdToFilter}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   131
\index{canAddIdToFilter@{canAddIdToFilter}!canOpenDriver.c@{can\-Open\-Driver.c}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   132
\subsubsection[canAddIdToFilter]{\setlength{\rightskip}{0pt plus 5cm}char can\-Add\-Id\-To\-Filter (UNS16 {\em adr\-CAN}, UNS8 {\em n\-Filter}, UNS16 {\em id})}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   133
\label{canOpenDriver_8c_acfd181d5b055d1403930442e28ac643}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   134
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   135
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   136
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   137
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   138
Definition at line 210 of file can\-Open\-Driver.c.
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   139
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   140
References CANIDAR0, CANIDAR2, CANIDAR4, CANIDAR6, can\-Test\-Init\-Mode(), IO\_\-PORTS\_\-16, IO\_\-PORTS\_\-8, MSG\_\-WAR, and UNS8.\hypertarget{canOpenDriver_8c_751a41c9747b96ab400b5599370cea83}{
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   141
\index{canOpenDriver.c@{can\-Open\-Driver.c}!canChangeFilter@{canChangeFilter}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   142
\index{canChangeFilter@{canChangeFilter}!canOpenDriver.c@{can\-Open\-Driver.c}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   143
\subsubsection[canChangeFilter]{\setlength{\rightskip}{0pt plus 5cm}char can\-Change\-Filter (UNS16 {\em adr\-CAN}, \hyperlink{structcanBusFilterInit}{can\-Bus\-Filter\-Init} {\em fi})}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   144
\label{canOpenDriver_8c_751a41c9747b96ab400b5599370cea83}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   145
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   146
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   147
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   148
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   149
Definition at line 250 of file can\-Open\-Driver.c.
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   150
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   151
References can\-Init\-Filter(), can\-Init\-Mode(), can\-Init\-Mode\-Q(), can\-Set\-Interrupt(), can\-Sleep\-Mode(), can\-Sleep\-Mode\-Q(), and can\-Test\-Init\-Mode().\hypertarget{canOpenDriver_8c_5a53a89d2e348d70331e6ebe269d155a}{
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   152
\index{canOpenDriver.c@{can\-Open\-Driver.c}!canEnable@{canEnable}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   153
\index{canEnable@{canEnable}!canOpenDriver.c@{can\-Open\-Driver.c}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   154
\subsubsection[canEnable]{\setlength{\rightskip}{0pt plus 5cm}char can\-Enable (UNS16 {\em adr\-CAN})}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   155
\label{canOpenDriver_8c_5a53a89d2e348d70331e6ebe269d155a}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   156
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   157
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   158
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   159
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   160
Definition at line 266 of file can\-Open\-Driver.c.
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   161
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   162
References CANCTL1, and IO\_\-PORTS\_\-8.\hypertarget{canOpenDriver_8c_3c4f7a31d94e5e7c7322535467b806de}{
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   163
\index{canOpenDriver.c@{can\-Open\-Driver.c}!canInit@{canInit}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   164
\index{canInit@{canInit}!canOpenDriver.c@{can\-Open\-Driver.c}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   165
\subsubsection[canInit]{\setlength{\rightskip}{0pt plus 5cm}char can\-Init (UNS16 {\em adr\-CAN}, \hyperlink{structcanBusInit}{can\-Bus\-Init} {\em bi})}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   166
\label{canOpenDriver_8c_3c4f7a31d94e5e7c7322535467b806de}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   167
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   168
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   169
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   170
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   171
Definition at line 277 of file can\-Open\-Driver.c.
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   172
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   173
References CANCTL0, CANCTL1, can\-Bus\-Init::cane, can\-Enable(), can\-Init\-Clock(), can\-Init\-Filter(), can\-Init\-Mode(), can\-Init\-Mode\-Q(), can\-Set\-Interrupt(), can\-Sleep\-Mode(), can\-Sleep\-Mode\-Q(), can\-Test\-Init\-Mode(), can\-Bus\-Init::clk, can\-Bus\-Init::cswai, can\-Bus\-Init::fi, IO\_\-PORTS\_\-8, can\-Bus\-Init::listen, can\-Bus\-Init::loopb, can\-Bus\-Init::time, and can\-Bus\-Init::wupm.\hypertarget{canOpenDriver_8c_5fb549697afb7918607aa113e01c543d}{
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   174
\index{canOpenDriver.c@{can\-Open\-Driver.c}!canInit1Filter@{canInit1Filter}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   175
\index{canInit1Filter@{canInit1Filter}!canOpenDriver.c@{can\-Open\-Driver.c}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   176
\subsubsection[canInit1Filter]{\setlength{\rightskip}{0pt plus 5cm}char can\-Init1Filter (UNS16 {\em adr\-CAN}, UNS8 {\em n\-Filter}, UNS16 {\em ar}, UNS16 {\em mr})}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   177
\label{canOpenDriver_8c_5fb549697afb7918607aa113e01c543d}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   178
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   179
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   180
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   181
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   182
Definition at line 335 of file can\-Open\-Driver.c.
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   183
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   184
References CANIDAR0, CANIDAR2, CANIDAR4, CANIDAR6, can\-Test\-Init\-Mode(), IO\_\-PORTS\_\-8, MSG\_\-WAR, and UNS8.\hypertarget{canOpenDriver_8c_6ec3ce6d79012dd8a08fa5aeb6a0489f}{
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   185
\index{canOpenDriver.c@{can\-Open\-Driver.c}!canInitClock@{canInitClock}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   186
\index{canInitClock@{canInitClock}!canOpenDriver.c@{can\-Open\-Driver.c}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   187
\subsubsection[canInitClock]{\setlength{\rightskip}{0pt plus 5cm}char can\-Init\-Clock (UNS16 {\em adr\-CAN}, \hyperlink{structcanBusTime}{can\-Bus\-Time} {\em clk})}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   188
\label{canOpenDriver_8c_6ec3ce6d79012dd8a08fa5aeb6a0489f}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   189
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   190
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   191
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   192
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   193
Definition at line 313 of file can\-Open\-Driver.c.
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   194
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   195
References can\-Bus\-Time::brp, CANBTR0, CANBTR1, CANCTL1, can\-Test\-Init\-Mode(), can\-Bus\-Time::clksrc, IO\_\-PORTS\_\-8, MSG\_\-WAR, can\-Bus\-Time::samp, can\-Bus\-Time::sjw, can\-Bus\-Time::tseg1, and can\-Bus\-Time::tseg2.\hypertarget{canOpenDriver_8c_b4502eef7616b25c74b1ac5a2245b085}{
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   196
\index{canOpenDriver.c@{can\-Open\-Driver.c}!canInitFilter@{canInitFilter}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   197
\index{canInitFilter@{canInitFilter}!canOpenDriver.c@{can\-Open\-Driver.c}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   198
\subsubsection[canInitFilter]{\setlength{\rightskip}{0pt plus 5cm}char can\-Init\-Filter (UNS16 {\em adr\-CAN}, \hyperlink{structcanBusFilterInit}{can\-Bus\-Filter\-Init} {\em fi})}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   199
\label{canOpenDriver_8c_b4502eef7616b25c74b1ac5a2245b085}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   200
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   201
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   202
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   203
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   204
Definition at line 364 of file can\-Open\-Driver.c.
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   205
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   206
References CANIDAC, CANIDAR0, can\-Bus\-Filter\-Init::canidar0, CANIDAR1, can\-Bus\-Filter\-Init::canidar1, CANIDAR2, can\-Bus\-Filter\-Init::canidar2, CANIDAR3, can\-Bus\-Filter\-Init::canidar3, CANIDAR4, can\-Bus\-Filter\-Init::canidar4, CANIDAR5, can\-Bus\-Filter\-Init::canidar5, CANIDAR6, can\-Bus\-Filter\-Init::canidar6, CANIDAR7, can\-Bus\-Filter\-Init::canidar7, CANIDMR0, can\-Bus\-Filter\-Init::canidmr0, CANIDMR1, can\-Bus\-Filter\-Init::canidmr1, CANIDMR2, can\-Bus\-Filter\-Init::canidmr2, CANIDMR3, can\-Bus\-Filter\-Init::canidmr3, CANIDMR4, can\-Bus\-Filter\-Init::canidmr4, CANIDMR5, can\-Bus\-Filter\-Init::canidmr5, CANIDMR6, can\-Bus\-Filter\-Init::canidmr6, CANIDMR7, can\-Bus\-Filter\-Init::canidmr7, can\-Test\-Init\-Mode(), can\-Bus\-Filter\-Init::idam, IO\_\-PORTS\_\-8, and MSG\_\-WAR.\hypertarget{canOpenDriver_8c_0b98e4800c82d99981833aa4207f1eb9}{
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   207
\index{canOpenDriver.c@{can\-Open\-Driver.c}!canInitMode@{canInitMode}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   208
\index{canInitMode@{canInitMode}!canOpenDriver.c@{can\-Open\-Driver.c}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   209
\subsubsection[canInitMode]{\setlength{\rightskip}{0pt plus 5cm}char can\-Init\-Mode (UNS16 {\em adr\-CAN})}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   210
\label{canOpenDriver_8c_0b98e4800c82d99981833aa4207f1eb9}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   211
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   212
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   213
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   214
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   215
Definition at line 392 of file can\-Open\-Driver.c.
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   216
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   217
References CANCTL0, can\-Test\-Init\-Mode(), and IO\_\-PORTS\_\-8.\hypertarget{canOpenDriver_8c_00ffb46abacfdfa56ebc70e15164113e}{
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   218
\index{canOpenDriver.c@{can\-Open\-Driver.c}!canInitModeQ@{canInitModeQ}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   219
\index{canInitModeQ@{canInitModeQ}!canOpenDriver.c@{can\-Open\-Driver.c}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   220
\subsubsection[canInitModeQ]{\setlength{\rightskip}{0pt plus 5cm}char can\-Init\-Mode\-Q (UNS16 {\em adr\-CAN})}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   221
\label{canOpenDriver_8c_00ffb46abacfdfa56ebc70e15164113e}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   222
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   223
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   224
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   225
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   226
Definition at line 401 of file can\-Open\-Driver.c.
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   227
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   228
References CANCTL0, can\-Test\-Init\-Mode(), and IO\_\-PORTS\_\-8.\hypertarget{canOpenDriver_8c_2f2d1ed55cfd9d7f85883f8d70d318ba}{
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   229
\index{canOpenDriver.c@{can\-Open\-Driver.c}!canMsgTransmit@{canMsgTransmit}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   230
\index{canMsgTransmit@{canMsgTransmit}!canOpenDriver.c@{can\-Open\-Driver.c}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   231
\subsubsection[canMsgTransmit]{\setlength{\rightskip}{0pt plus 5cm}char can\-Msg\-Transmit (UNS16 {\em adr\-CAN}, \hyperlink{structMessage}{Message} {\em msg})}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   232
\label{canOpenDriver_8c_2f2d1ed55cfd9d7f85883f8d70d318ba}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   233
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   234
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   235
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   236
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   237
Definition at line 410 of file can\-Open\-Driver.c.
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   238
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   239
References CANTBSEL, CANTFLG, CANTRSDTA, CANTRSID, CANTRSLEN, CANTRSPRI, Message::cob\_\-id, Message::data, IO\_\-PORTS\_\-8, Message::len, MSG\_\-WAR, Message::rtr, UNS8, and SHORT\_\-CAN::w.\hypertarget{canOpenDriver_8c_b57b4b3c000e9f61135175495e874977}{
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   240
\index{canOpenDriver.c@{can\-Open\-Driver.c}!canSend@{canSend}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   241
\index{canSend@{canSend}!canOpenDriver.c@{can\-Open\-Driver.c}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   242
\subsubsection[canSend]{\setlength{\rightskip}{0pt plus 5cm}UNS8 can\-Send (UNS8 {\em notused}, \hyperlink{structMessage}{Message} $\ast$ {\em m})}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   243
\label{canOpenDriver_8c_b57b4b3c000e9f61135175495e874977}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   244
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   245
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   246
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   247
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   248
Definition at line 505 of file can\-Open\-Driver.c.
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   249
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   250
References can\-Msg\-Transmit(), and CANOPEN\_\-LINE\_\-NUMBER\_\-USED.\hypertarget{canOpenDriver_8c_5ad8616a3276f7f40149b551f09aa6a1}{
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   251
\index{canOpenDriver.c@{can\-Open\-Driver.c}!canSetInterrupt@{canSetInterrupt}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   252
\index{canSetInterrupt@{canSetInterrupt}!canOpenDriver.c@{can\-Open\-Driver.c}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   253
\subsubsection[canSetInterrupt]{\setlength{\rightskip}{0pt plus 5cm}char can\-Set\-Interrupt (UNS16 {\em adr\-CAN})}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   254
\label{canOpenDriver_8c_5ad8616a3276f7f40149b551f09aa6a1}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   255
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   256
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   257
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   258
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   259
Definition at line 445 of file can\-Open\-Driver.c.
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   260
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   261
References CANRIER, CANTIER, and IO\_\-PORTS\_\-8.\hypertarget{canOpenDriver_8c_c7773223579ec7e0fab5238df214da89}{
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   262
\index{canOpenDriver.c@{can\-Open\-Driver.c}!canSleepMode@{canSleepMode}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   263
\index{canSleepMode@{canSleepMode}!canOpenDriver.c@{can\-Open\-Driver.c}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   264
\subsubsection[canSleepMode]{\setlength{\rightskip}{0pt plus 5cm}char can\-Sleep\-Mode (UNS16 {\em adr\-CAN})}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   265
\label{canOpenDriver_8c_c7773223579ec7e0fab5238df214da89}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   266
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   267
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   268
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   269
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   270
Definition at line 452 of file can\-Open\-Driver.c.
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   271
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   272
References CANCTL0, can\-Test\-Sleep\-Mode(), and IO\_\-PORTS\_\-8.\hypertarget{canOpenDriver_8c_a89f28005eea54f5b216eb72a18d45f3}{
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   273
\index{canOpenDriver.c@{can\-Open\-Driver.c}!canSleepModeQ@{canSleepModeQ}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   274
\index{canSleepModeQ@{canSleepModeQ}!canOpenDriver.c@{can\-Open\-Driver.c}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   275
\subsubsection[canSleepModeQ]{\setlength{\rightskip}{0pt plus 5cm}char can\-Sleep\-Mode\-Q (UNS16 {\em adr\-CAN})}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   276
\label{canOpenDriver_8c_a89f28005eea54f5b216eb72a18d45f3}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   277
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   278
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   279
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   280
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   281
Definition at line 466 of file can\-Open\-Driver.c.
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   282
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   283
References CANCTL0, can\-Test\-Init\-Mode(), can\-Test\-Sleep\-Mode(), IO\_\-PORTS\_\-8, and MSG\_\-WAR.\hypertarget{canOpenDriver_8c_1ae1ad5d66ac87085baf5b9d0a4e62ca}{
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   284
\index{canOpenDriver.c@{can\-Open\-Driver.c}!canSleepWupMode@{canSleepWupMode}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   285
\index{canSleepWupMode@{canSleepWupMode}!canOpenDriver.c@{can\-Open\-Driver.c}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   286
\subsubsection[canSleepWupMode]{\setlength{\rightskip}{0pt plus 5cm}char can\-Sleep\-Wup\-Mode (UNS16 {\em adr\-CAN})}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   287
\label{canOpenDriver_8c_1ae1ad5d66ac87085baf5b9d0a4e62ca}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   288
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   289
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   290
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   291
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   292
Definition at line 480 of file can\-Open\-Driver.c.
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   293
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   294
References CANCTL0, can\-Test\-Init\-Mode(), can\-Test\-Sleep\-Mode(), IO\_\-PORTS\_\-8, and MSG\_\-WAR.\hypertarget{canOpenDriver_8c_6beefe951b3c9de786c585257488fa82}{
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   295
\index{canOpenDriver.c@{can\-Open\-Driver.c}!canTestInitMode@{canTestInitMode}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   296
\index{canTestInitMode@{canTestInitMode}!canOpenDriver.c@{can\-Open\-Driver.c}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   297
\subsubsection[canTestInitMode]{\setlength{\rightskip}{0pt plus 5cm}char can\-Test\-Init\-Mode (UNS16 {\em adr\-CAN})}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   298
\label{canOpenDriver_8c_6beefe951b3c9de786c585257488fa82}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   299
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   300
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   301
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   302
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   303
Definition at line 493 of file can\-Open\-Driver.c.
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   304
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   305
References CANCTL1, and IO\_\-PORTS\_\-8.\hypertarget{canOpenDriver_8c_fa79f2ac95a8143c2fb087260df39820}{
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   306
\index{canOpenDriver.c@{can\-Open\-Driver.c}!canTestSleepMode@{canTestSleepMode}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   307
\index{canTestSleepMode@{canTestSleepMode}!canOpenDriver.c@{can\-Open\-Driver.c}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   308
\subsubsection[canTestSleepMode]{\setlength{\rightskip}{0pt plus 5cm}char can\-Test\-Sleep\-Mode (UNS16 {\em adr\-CAN})}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   309
\label{canOpenDriver_8c_fa79f2ac95a8143c2fb087260df39820}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   310
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   311
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   312
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   313
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   314
Definition at line 499 of file can\-Open\-Driver.c.
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   315
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   316
References CANCTL1, and IO\_\-PORTS\_\-8.\hypertarget{canOpenDriver_8c_0bf58f014d47581c9ffd1b2db9a858d7}{
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   317
\index{canOpenDriver.c@{can\-Open\-Driver.c}!f_can_receive@{f\_\-can\_\-receive}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   318
\index{f_can_receive@{f\_\-can\_\-receive}!canOpenDriver.c@{can\-Open\-Driver.c}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   319
\subsubsection[f\_\-can\_\-receive]{\setlength{\rightskip}{0pt plus 5cm}UNS8 f\_\-can\_\-receive (UNS8 {\em notused}, \hyperlink{structMessage}{Message} $\ast$ {\em m})}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   320
\label{canOpenDriver_8c_0bf58f014d47581c9ffd1b2db9a858d7}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   321
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   322
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   323
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   324
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   325
Definition at line 513 of file can\-Open\-Driver.c.
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   326
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   327
References CAN0, CAN1, CAN2, CAN3, CAN4, CANOPEN\_\-LINE\_\-NUMBER\_\-USED, Message::cob\_\-id, Message::data, Message::len, MAX\_\-STACK\_\-MSG\_\-RCV, t\_\-pointer\-Stack::r, Message::rtr, UNS8, and SHORT\_\-CAN::w.\hypertarget{canOpenDriver_8c_24dbe63e88d184388542037d16a8208d}{
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   328
\index{canOpenDriver.c@{can\-Open\-Driver.c}!getElapsedTime@{getElapsedTime}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   329
\index{getElapsedTime@{getElapsedTime}!canOpenDriver.c@{can\-Open\-Driver.c}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   330
\subsubsection[getElapsedTime]{\setlength{\rightskip}{0pt plus 5cm}TIMEVAL get\-Elapsed\-Time (void)}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   331
\label{canOpenDriver_8c_24dbe63e88d184388542037d16a8208d}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   332
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   333
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   334
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   335
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   336
Definition at line 66 of file can\-Open\-Driver.c.\hypertarget{canOpenDriver_8c_2a9aef0efc98c5b41ef97ef91ad403e5}{
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   337
\index{canOpenDriver.c@{can\-Open\-Driver.c}!hex_convert@{hex\_\-convert}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   338
\index{hex_convert@{hex\_\-convert}!canOpenDriver.c@{can\-Open\-Driver.c}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   339
\subsubsection[hex\_\-convert]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ hex\_\-convert (char $\ast$ {\em buf}, unsigned long {\em value}, char {\em last\-Car})}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   340
\label{canOpenDriver_8c_2a9aef0efc98c5b41ef97ef91ad403e5}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   341
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   342
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   343
Convert an integer to a string in hexadecimal format If you do not wants to use a last\-Car, put last\-Car = '' (end of string) ex : value = 0XABCDEF and last\-Car = '\par
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   344
' buf\mbox{[}0\mbox{]} = '0' buf\mbox{[}1\mbox{]} = 'X' buf\mbox{[}2\mbox{]} = 'A' .... buf\mbox{[}7\mbox{]} = 'F' buf\mbox{[}8\mbox{]} = '\par
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   345
' buf\mbox{[}9\mbox{]} = '' 
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   346
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   347
Definition at line 135 of file can\-Open\-Driver.c.\hypertarget{canOpenDriver_8c_c71399958d35a7f703416f025603ee26}{
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   348
\index{canOpenDriver.c@{can\-Open\-Driver.c}!initHCS12@{initHCS12}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   349
\index{initHCS12@{initHCS12}!canOpenDriver.c@{can\-Open\-Driver.c}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   350
\subsubsection[initHCS12]{\setlength{\rightskip}{0pt plus 5cm}void init\-HCS12 (void)}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   351
\label{canOpenDriver_8c_c71399958d35a7f703416f025603ee26}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   352
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   353
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   354
Put here all the code to init the HCS12. 
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   355
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   356
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   357
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   358
Definition at line 199 of file can\-Open\-Driver.c.
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   359
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   360
References init\-PLL(), and MSG\_\-WAR.\hypertarget{canOpenDriver_8c_51e71c727eb7a49e2fde962a3d190a6b}{
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   361
\index{canOpenDriver.c@{can\-Open\-Driver.c}!initPLL@{initPLL}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   362
\index{initPLL@{initPLL}!canOpenDriver.c@{can\-Open\-Driver.c}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   363
\subsubsection[initPLL]{\setlength{\rightskip}{0pt plus 5cm}void init\-PLL (void)}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   364
\label{canOpenDriver_8c_51e71c727eb7a49e2fde962a3d190a6b}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   365
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   366
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   367
to start using the PLL. Bus clock becomes 24 MHz if the quartz on the board is at 16 MHz 
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   368
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   369
Definition at line 188 of file can\-Open\-Driver.c.
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   370
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   371
References CLKSEL, CRGFLG, IO\_\-PORTS\_\-8, PLLCTL, REFDV, and SYNR.\hypertarget{canOpenDriver_8c_f86db4b817c1a59a819cbdd51779bfaa}{
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   372
\index{canOpenDriver.c@{can\-Open\-Driver.c}!initSCI_0@{initSCI\_\-0}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   373
\index{initSCI_0@{initSCI\_\-0}!canOpenDriver.c@{can\-Open\-Driver.c}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   374
\subsubsection[initSCI\_\-0]{\setlength{\rightskip}{0pt plus 5cm}void init\-SCI\_\-0 (void)}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   375
\label{canOpenDriver_8c_f86db4b817c1a59a819cbdd51779bfaa}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   376
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   377
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   378
Initialisation of the serial port 0. 
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   379
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   380
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   381
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   382
Definition at line 115 of file can\-Open\-Driver.c.
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   383
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   384
References BUS\_\-CLOCK, IO\_\-PORTS\_\-16, IO\_\-PORTS\_\-8, SCI0, SCIBDH, SCICR1, SCICR2, and SERIAL\_\-SCI0\_\-BAUD\_\-RATE.\hypertarget{canOpenDriver_8c_b56fa1754706a57059103710178bdb68}{
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   385
\index{canOpenDriver.c@{can\-Open\-Driver.c}!initSCI_1@{initSCI\_\-1}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   386
\index{initSCI_1@{initSCI\_\-1}!canOpenDriver.c@{can\-Open\-Driver.c}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   387
\subsubsection[initSCI\_\-1]{\setlength{\rightskip}{0pt plus 5cm}void init\-SCI\_\-1 (void)}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   388
\label{canOpenDriver_8c_b56fa1754706a57059103710178bdb68}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   389
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   390
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   391
Initialisation of the serial port 1. 
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   392
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   393
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   394
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   395
Definition at line 124 of file can\-Open\-Driver.c.
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   396
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   397
References BUS\_\-CLOCK, IO\_\-PORTS\_\-16, IO\_\-PORTS\_\-8, SCI1, SCIBDH, SCICR1, SCICR2, and SERIAL\_\-SCI1\_\-BAUD\_\-RATE.\hypertarget{canOpenDriver_8c_02922529b60419a94afe8f369dda070b}{
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   398
\index{canOpenDriver.c@{can\-Open\-Driver.c}!initTimer@{initTimer}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   399
\index{initTimer@{initTimer}!canOpenDriver.c@{can\-Open\-Driver.c}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   400
\subsubsection[initTimer]{\setlength{\rightskip}{0pt plus 5cm}void init\-Timer (void)}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   401
\label{canOpenDriver_8c_02922529b60419a94afe8f369dda070b}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   402
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   403
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   404
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   405
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   406
Definition at line 79 of file can\-Open\-Driver.c.\hypertarget{canOpenDriver_8c_80f5dbbc046cba0e5e9cf2bcc4c1e78e}{
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   407
\index{canOpenDriver.c@{can\-Open\-Driver.c}!printSCI_nbr@{printSCI\_\-nbr}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   408
\index{printSCI_nbr@{printSCI\_\-nbr}!canOpenDriver.c@{can\-Open\-Driver.c}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   409
\subsubsection[printSCI\_\-nbr]{\setlength{\rightskip}{0pt plus 5cm}void print\-SCI\_\-nbr (char {\em sci}, unsigned long {\em nbr}, char {\em last\-Car})}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   410
\label{canOpenDriver_8c_80f5dbbc046cba0e5e9cf2bcc4c1e78e}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   411
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   412
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   413
Print the number in hexadecimal to the serial port sci (sci takes the values SCI0 or SCI1) 
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   414
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   415
Definition at line 179 of file can\-Open\-Driver.c.
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   416
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   417
References hex\_\-convert(), and print\-SCI\_\-str().\hypertarget{canOpenDriver_8c_6e3075ae435e83aefc018e5218c197d0}{
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   418
\index{canOpenDriver.c@{can\-Open\-Driver.c}!printSCI_str@{printSCI\_\-str}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   419
\index{printSCI_str@{printSCI\_\-str}!canOpenDriver.c@{can\-Open\-Driver.c}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   420
\subsubsection[printSCI\_\-str]{\setlength{\rightskip}{0pt plus 5cm}void print\-SCI\_\-str (char {\em sci}, const char $\ast$ {\em str})}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   421
\label{canOpenDriver_8c_6e3075ae435e83aefc018e5218c197d0}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   422
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   423
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   424
Print the string to the serial port sci (sci takes the values SCI0 or SCI1) 
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   425
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   426
Definition at line 162 of file can\-Open\-Driver.c.
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   427
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   428
References IO\_\-PORTS\_\-8, SCIDRL, and SCISR1.\hypertarget{canOpenDriver_8c_339b24f4eee897d3c45d88de9a4901e8}{
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   429
\index{canOpenDriver.c@{can\-Open\-Driver.c}!resetTimer@{resetTimer}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   430
\index{resetTimer@{resetTimer}!canOpenDriver.c@{can\-Open\-Driver.c}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   431
\subsubsection[resetTimer]{\setlength{\rightskip}{0pt plus 5cm}void reset\-Timer (void)}}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   432
\label{canOpenDriver_8c_339b24f4eee897d3c45d88de9a4901e8}
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   433
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   434
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   435
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   436
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   437
Definition at line 73 of file can\-Open\-Driver.c.