You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
414 lines
19 KiB
TeX
414 lines
19 KiB
TeX
\hypertarget{encoder_8h}{}\doxysection{encoder.\+h-\/Dateireferenz}
|
|
\label{encoder_8h}\index{encoder.h@{encoder.h}}
|
|
|
|
|
|
Headerdatei Drehencoder Library.
|
|
|
|
|
|
Dieser Graph zeigt, welche Datei direkt oder indirekt diese Datei enthält\+:
|
|
\nopagebreak
|
|
\begin{figure}[H]
|
|
\begin{center}
|
|
\leavevmode
|
|
\includegraphics[width=268pt]{encoder_8h__dep__incl}
|
|
\end{center}
|
|
\end{figure}
|
|
\doxysubsection*{Makrodefinitionen}
|
|
\begin{DoxyCompactItemize}
|
|
\item
|
|
\#define \mbox{\hyperlink{encoder_8h_a4484973712e579e11ec1f9306d4dfa5c}{Two\+Step}}
|
|
\begin{DoxyCompactList}\small\item\em Art des Drehencoders. \end{DoxyCompactList}\item
|
|
\#define \mbox{\hyperlink{encoder_8h_a954872ee0daca1b1a8d0140b4fc80b82}{ENC\+\_\+\+A\+\_\+\+PORT}}~PORTB
|
|
\begin{DoxyCompactList}\small\item\em port for line A ~\newline
|
|
\end{DoxyCompactList}\item
|
|
\#define \mbox{\hyperlink{encoder_8h_a7d575adbcfeaadc13a6d6606a2ed0c1b}{ENC\+\_\+\+A\+\_\+\+PIN}}~PB1
|
|
\begin{DoxyCompactList}\small\item\em pin for line A ~\newline
|
|
\end{DoxyCompactList}\item
|
|
\#define \mbox{\hyperlink{encoder_8h_a4e6f46965f5ffba14b80a7c353313982}{ENC\+\_\+\+B\+\_\+\+PORT}}~PORTB
|
|
\begin{DoxyCompactList}\small\item\em port for line B ~\newline
|
|
\end{DoxyCompactList}\item
|
|
\#define \mbox{\hyperlink{encoder_8h_ab42063ad37138f2e94f87270f7826aa0}{ENC\+\_\+\+B\+\_\+\+PIN}}~PB0
|
|
\begin{DoxyCompactList}\small\item\em pin for line B ~\newline
|
|
\end{DoxyCompactList}\item
|
|
\#define \mbox{\hyperlink{encoder_8h_abf7f0aca01dd1389118a21ec76ae7c13}{ENC\+\_\+\+T\+\_\+\+PORT}}~PORTB
|
|
\begin{DoxyCompactList}\small\item\em port for button ~\newline
|
|
\end{DoxyCompactList}\item
|
|
\#define \mbox{\hyperlink{encoder_8h_a16f8e311086450a7061f6890fe028e61}{ENC\+\_\+\+T\+\_\+\+PIN}}~PB2
|
|
\begin{DoxyCompactList}\small\item\em pin for button ~\newline
|
|
\end{DoxyCompactList}\item
|
|
\#define \mbox{\hyperlink{encoder_8h_acbe348573e1b5adccdc7bcf157dc6425}{DDR}}(x)~($\ast$(\&x-\/1))
|
|
\begin{DoxyCompactList}\small\item\em Makro Datenrichtungsregister. \end{DoxyCompactList}\item
|
|
\#define \mbox{\hyperlink{encoder_8h_aa229b4be775fd996225a45c52a7e8a6d}{Port}}(x)~($\ast$(\&x))
|
|
\begin{DoxyCompactList}\small\item\em Makro Port. \end{DoxyCompactList}\item
|
|
\#define \mbox{\hyperlink{encoder_8h_ad7581da21e9fd6fd6f6920dd68d1c782}{PIN}}(x)~($\ast$(\&x-\/2))
|
|
\begin{DoxyCompactList}\small\item\em Makro Pin. \end{DoxyCompactList}\item
|
|
\#define \mbox{\hyperlink{encoder_8h_ad214039f52b011ce2bd6c85ff98a981b}{PHASE\+\_\+A}}~\mbox{\hyperlink{encoder_8h_ad7581da21e9fd6fd6f6920dd68d1c782}{PIN}}(\mbox{\hyperlink{encoder_8h_a954872ee0daca1b1a8d0140b4fc80b82}{ENC\+\_\+\+A\+\_\+\+PORT}}) \& (1$<$$<$\mbox{\hyperlink{encoder_8h_a7d575adbcfeaadc13a6d6606a2ed0c1b}{ENC\+\_\+\+A\+\_\+\+PIN}})
|
|
\begin{DoxyCompactList}\small\item\em Makro für Encoder PHASE A. \end{DoxyCompactList}\item
|
|
\#define \mbox{\hyperlink{encoder_8h_ad7b96feed1e1c12515dad5e926b2c62e}{PHASE\+\_\+B}}~\mbox{\hyperlink{encoder_8h_ad7581da21e9fd6fd6f6920dd68d1c782}{PIN}}(\mbox{\hyperlink{encoder_8h_a4e6f46965f5ffba14b80a7c353313982}{ENC\+\_\+\+B\+\_\+\+PORT}}) \& (1$<$$<$\mbox{\hyperlink{encoder_8h_ab42063ad37138f2e94f87270f7826aa0}{ENC\+\_\+\+B\+\_\+\+PIN}})
|
|
\begin{DoxyCompactList}\small\item\em Makro für Encoder PHASE B. \end{DoxyCompactList}\item
|
|
\#define \mbox{\hyperlink{encoder_8h_aa0661a7570d43557a4cbade846808684}{BUTTONPRESSED}}~(!(\mbox{\hyperlink{encoder_8h_ad7581da21e9fd6fd6f6920dd68d1c782}{PIN}}(\mbox{\hyperlink{encoder_8h_abf7f0aca01dd1389118a21ec76ae7c13}{ENC\+\_\+\+T\+\_\+\+PORT}}) \& (1$<$$<$\mbox{\hyperlink{encoder_8h_a16f8e311086450a7061f6890fe028e61}{ENC\+\_\+\+T\+\_\+\+PIN}})))
|
|
\begin{DoxyCompactList}\small\item\em Makro für Taster des Encoders. \end{DoxyCompactList}\item
|
|
\#define \mbox{\hyperlink{encoder_8h_a4f62996f43e5f428dae04bf6583e6095}{BUTTON\+\_\+\+DEBOUNCETIME\+\_\+\+MS}}~30
|
|
\begin{DoxyCompactList}\small\item\em Entprellzeit Taster. \end{DoxyCompactList}\item
|
|
\#define \mbox{\hyperlink{encoder_8h_a0faf2a568de603ff9e6867f6ba2a9f89}{BUTTON\+\_\+\+PRESSEDLONG\+\_\+\+MS}}~250
|
|
\begin{DoxyCompactList}\small\item\em Definition langer Tastendruck. \end{DoxyCompactList}\end{DoxyCompactItemize}
|
|
\doxysubsection*{Typdefinitionen}
|
|
\begin{DoxyCompactItemize}
|
|
\item
|
|
\mbox{\Hypertarget{encoder_8h_aa386d5445a9db1fd904ac94b12be4e2e}\label{encoder_8h_aa386d5445a9db1fd904ac94b12be4e2e}}
|
|
typedef enum \mbox{\hyperlink{encoder_8h_a1f1601ea239948684d4b2a2f830bca26}{EButton\+Pressed\+State}} {\bfseries t\+EButton\+Pressed\+State}
|
|
\end{DoxyCompactItemize}
|
|
\doxysubsection*{Aufzählungen}
|
|
\begin{DoxyCompactItemize}
|
|
\item
|
|
enum \mbox{\hyperlink{encoder_8h_a1f1601ea239948684d4b2a2f830bca26}{EButton\+Pressed\+State}} \{ \mbox{\hyperlink{encoder_8h_a1f1601ea239948684d4b2a2f830bca26a7eda9605623092fc9f64c89f6126092d}{Button\+Pressed\+\_\+\+Unpressed}}
|
|
, \mbox{\hyperlink{encoder_8h_a1f1601ea239948684d4b2a2f830bca26a48e867e4b957ba7ef1d30609694100c2}{Button\+Pressed\+\_\+\+Short}}
|
|
, \mbox{\hyperlink{encoder_8h_a1f1601ea239948684d4b2a2f830bca26a82989ac86ef7500aa2cc10c79404ff1b}{Button\+Pressed\+\_\+\+Long}}
|
|
\}
|
|
\end{DoxyCompactItemize}
|
|
\doxysubsection*{Funktionen}
|
|
\begin{DoxyCompactItemize}
|
|
\item
|
|
void \mbox{\hyperlink{encoder_8h_a80ec2c177aa9c2636f797ca881381827}{Encoder\+Init}} (void)
|
|
\begin{DoxyCompactList}\small\item\em Initialisierung des Drehencoders und der Startwerte. \end{DoxyCompactList}\item
|
|
int8\+\_\+t \mbox{\hyperlink{encoder_8h_a9ec6df4b13c9134f1c61546b718cd563}{Encoder\+Read}} (char Ueberlauf)
|
|
\begin{DoxyCompactList}\small\item\em Liest die akt. Position des Drehencoders. \end{DoxyCompactList}\item
|
|
t\+EButton\+Pressed\+State \mbox{\hyperlink{encoder_8h_a2de57e0e3c5f3e0ab176c11363a58bf1}{Encoder\+Get\+Button\+State}} (void)
|
|
\begin{DoxyCompactList}\small\item\em Liefert den Status des Tasters vom Drehencoder. \end{DoxyCompactList}\item
|
|
void \mbox{\hyperlink{encoder_8h_ac9e955efd05fd5f6579bb5e179b506c7}{Encoder\+Write}} (int8\+\_\+t \mbox{\hyperlink{globals_8h_a3a1db669858552a5c21490149c648e12}{Encoder\+Pos}})
|
|
\begin{DoxyCompactList}\small\item\em Setzt die aktuelle Position des Drehencoders. \end{DoxyCompactList}\item
|
|
void \mbox{\hyperlink{encoder_8h_ab5afede50bbce8aae40f3d02be64a374}{Encoder\+Min\+Max}} (int8\+\_\+t Encoder\+Min, int8\+\_\+t Encoder\+Max)
|
|
\begin{DoxyCompactList}\small\item\em Setzt den minimalen und maximalen Bereich des Drehencoders. \end{DoxyCompactList}\item
|
|
void \mbox{\hyperlink{encoder_8h_a660e5b11dce82f5b307f628def81d188}{Encoder\+Polling}} (void)
|
|
\begin{DoxyCompactList}\small\item\em Encoder\+Polling. \end{DoxyCompactList}\end{DoxyCompactItemize}
|
|
|
|
|
|
\doxysubsection{Ausführliche Beschreibung}
|
|
Headerdatei Drehencoder Library.
|
|
|
|
\begin{DoxyDate}{Datum}
|
|
2014-\/12-\/04
|
|
\end{DoxyDate}
|
|
\begin{DoxyAuthor}{Autor}
|
|
Frank Klee \begin{DoxyVerb} Basisroutinen zum Abfragen eines Drehencoders mittels Polling.
|
|
Quelle: https://www.mikrocontroller.net/articles/Drehgeber
|
|
\end{DoxyVerb}
|
|
|
|
\end{DoxyAuthor}
|
|
Formatierungen und Umbenennungen der Funktionen \begin{DoxyAuthor}{Autor}
|
|
Tom, DL7\+BJ
|
|
\end{DoxyAuthor}
|
|
\begin{DoxyDate}{Datum}
|
|
2023-\/03-\/23
|
|
\end{DoxyDate}
|
|
|
|
|
|
\doxysubsection{Makro-\/\+Dokumentation}
|
|
\mbox{\Hypertarget{encoder_8h_a4f62996f43e5f428dae04bf6583e6095}\label{encoder_8h_a4f62996f43e5f428dae04bf6583e6095}}
|
|
\index{encoder.h@{encoder.h}!BUTTON\_DEBOUNCETIME\_MS@{BUTTON\_DEBOUNCETIME\_MS}}
|
|
\index{BUTTON\_DEBOUNCETIME\_MS@{BUTTON\_DEBOUNCETIME\_MS}!encoder.h@{encoder.h}}
|
|
\doxysubsubsection{\texorpdfstring{BUTTON\_DEBOUNCETIME\_MS}{BUTTON\_DEBOUNCETIME\_MS}}
|
|
{\footnotesize\ttfamily \#define BUTTON\+\_\+\+DEBOUNCETIME\+\_\+\+MS~30}
|
|
|
|
|
|
|
|
Entprellzeit Taster.
|
|
|
|
\mbox{\Hypertarget{encoder_8h_a0faf2a568de603ff9e6867f6ba2a9f89}\label{encoder_8h_a0faf2a568de603ff9e6867f6ba2a9f89}}
|
|
\index{encoder.h@{encoder.h}!BUTTON\_PRESSEDLONG\_MS@{BUTTON\_PRESSEDLONG\_MS}}
|
|
\index{BUTTON\_PRESSEDLONG\_MS@{BUTTON\_PRESSEDLONG\_MS}!encoder.h@{encoder.h}}
|
|
\doxysubsubsection{\texorpdfstring{BUTTON\_PRESSEDLONG\_MS}{BUTTON\_PRESSEDLONG\_MS}}
|
|
{\footnotesize\ttfamily \#define BUTTON\+\_\+\+PRESSEDLONG\+\_\+\+MS~250}
|
|
|
|
|
|
|
|
Definition langer Tastendruck.
|
|
|
|
\mbox{\Hypertarget{encoder_8h_aa0661a7570d43557a4cbade846808684}\label{encoder_8h_aa0661a7570d43557a4cbade846808684}}
|
|
\index{encoder.h@{encoder.h}!BUTTONPRESSED@{BUTTONPRESSED}}
|
|
\index{BUTTONPRESSED@{BUTTONPRESSED}!encoder.h@{encoder.h}}
|
|
\doxysubsubsection{\texorpdfstring{BUTTONPRESSED}{BUTTONPRESSED}}
|
|
{\footnotesize\ttfamily \#define BUTTONPRESSED~(!(\mbox{\hyperlink{encoder_8h_ad7581da21e9fd6fd6f6920dd68d1c782}{PIN}}(\mbox{\hyperlink{encoder_8h_abf7f0aca01dd1389118a21ec76ae7c13}{ENC\+\_\+\+T\+\_\+\+PORT}}) \& (1$<$$<$\mbox{\hyperlink{encoder_8h_a16f8e311086450a7061f6890fe028e61}{ENC\+\_\+\+T\+\_\+\+PIN}})))}
|
|
|
|
|
|
|
|
Makro für Taster des Encoders.
|
|
|
|
\mbox{\Hypertarget{encoder_8h_acbe348573e1b5adccdc7bcf157dc6425}\label{encoder_8h_acbe348573e1b5adccdc7bcf157dc6425}}
|
|
\index{encoder.h@{encoder.h}!DDR@{DDR}}
|
|
\index{DDR@{DDR}!encoder.h@{encoder.h}}
|
|
\doxysubsubsection{\texorpdfstring{DDR}{DDR}}
|
|
{\footnotesize\ttfamily \#define DDR(\begin{DoxyParamCaption}\item[{}]{x }\end{DoxyParamCaption})~($\ast$(\&x-\/1))}
|
|
|
|
|
|
|
|
Makro Datenrichtungsregister.
|
|
|
|
\mbox{\Hypertarget{encoder_8h_a7d575adbcfeaadc13a6d6606a2ed0c1b}\label{encoder_8h_a7d575adbcfeaadc13a6d6606a2ed0c1b}}
|
|
\index{encoder.h@{encoder.h}!ENC\_A\_PIN@{ENC\_A\_PIN}}
|
|
\index{ENC\_A\_PIN@{ENC\_A\_PIN}!encoder.h@{encoder.h}}
|
|
\doxysubsubsection{\texorpdfstring{ENC\_A\_PIN}{ENC\_A\_PIN}}
|
|
{\footnotesize\ttfamily \#define ENC\+\_\+\+A\+\_\+\+PIN~PB1}
|
|
|
|
|
|
|
|
pin for line A ~\newline
|
|
|
|
|
|
\mbox{\Hypertarget{encoder_8h_a954872ee0daca1b1a8d0140b4fc80b82}\label{encoder_8h_a954872ee0daca1b1a8d0140b4fc80b82}}
|
|
\index{encoder.h@{encoder.h}!ENC\_A\_PORT@{ENC\_A\_PORT}}
|
|
\index{ENC\_A\_PORT@{ENC\_A\_PORT}!encoder.h@{encoder.h}}
|
|
\doxysubsubsection{\texorpdfstring{ENC\_A\_PORT}{ENC\_A\_PORT}}
|
|
{\footnotesize\ttfamily \#define ENC\+\_\+\+A\+\_\+\+PORT~PORTB}
|
|
|
|
|
|
|
|
port for line A ~\newline
|
|
|
|
|
|
\mbox{\Hypertarget{encoder_8h_ab42063ad37138f2e94f87270f7826aa0}\label{encoder_8h_ab42063ad37138f2e94f87270f7826aa0}}
|
|
\index{encoder.h@{encoder.h}!ENC\_B\_PIN@{ENC\_B\_PIN}}
|
|
\index{ENC\_B\_PIN@{ENC\_B\_PIN}!encoder.h@{encoder.h}}
|
|
\doxysubsubsection{\texorpdfstring{ENC\_B\_PIN}{ENC\_B\_PIN}}
|
|
{\footnotesize\ttfamily \#define ENC\+\_\+\+B\+\_\+\+PIN~PB0}
|
|
|
|
|
|
|
|
pin for line B ~\newline
|
|
|
|
|
|
\mbox{\Hypertarget{encoder_8h_a4e6f46965f5ffba14b80a7c353313982}\label{encoder_8h_a4e6f46965f5ffba14b80a7c353313982}}
|
|
\index{encoder.h@{encoder.h}!ENC\_B\_PORT@{ENC\_B\_PORT}}
|
|
\index{ENC\_B\_PORT@{ENC\_B\_PORT}!encoder.h@{encoder.h}}
|
|
\doxysubsubsection{\texorpdfstring{ENC\_B\_PORT}{ENC\_B\_PORT}}
|
|
{\footnotesize\ttfamily \#define ENC\+\_\+\+B\+\_\+\+PORT~PORTB}
|
|
|
|
|
|
|
|
port for line B ~\newline
|
|
|
|
|
|
\mbox{\Hypertarget{encoder_8h_a16f8e311086450a7061f6890fe028e61}\label{encoder_8h_a16f8e311086450a7061f6890fe028e61}}
|
|
\index{encoder.h@{encoder.h}!ENC\_T\_PIN@{ENC\_T\_PIN}}
|
|
\index{ENC\_T\_PIN@{ENC\_T\_PIN}!encoder.h@{encoder.h}}
|
|
\doxysubsubsection{\texorpdfstring{ENC\_T\_PIN}{ENC\_T\_PIN}}
|
|
{\footnotesize\ttfamily \#define ENC\+\_\+\+T\+\_\+\+PIN~PB2}
|
|
|
|
|
|
|
|
pin for button ~\newline
|
|
|
|
|
|
\mbox{\Hypertarget{encoder_8h_abf7f0aca01dd1389118a21ec76ae7c13}\label{encoder_8h_abf7f0aca01dd1389118a21ec76ae7c13}}
|
|
\index{encoder.h@{encoder.h}!ENC\_T\_PORT@{ENC\_T\_PORT}}
|
|
\index{ENC\_T\_PORT@{ENC\_T\_PORT}!encoder.h@{encoder.h}}
|
|
\doxysubsubsection{\texorpdfstring{ENC\_T\_PORT}{ENC\_T\_PORT}}
|
|
{\footnotesize\ttfamily \#define ENC\+\_\+\+T\+\_\+\+PORT~PORTB}
|
|
|
|
|
|
|
|
port for button ~\newline
|
|
|
|
|
|
\mbox{\Hypertarget{encoder_8h_ad214039f52b011ce2bd6c85ff98a981b}\label{encoder_8h_ad214039f52b011ce2bd6c85ff98a981b}}
|
|
\index{encoder.h@{encoder.h}!PHASE\_A@{PHASE\_A}}
|
|
\index{PHASE\_A@{PHASE\_A}!encoder.h@{encoder.h}}
|
|
\doxysubsubsection{\texorpdfstring{PHASE\_A}{PHASE\_A}}
|
|
{\footnotesize\ttfamily \#define PHASE\+\_\+A~\mbox{\hyperlink{encoder_8h_ad7581da21e9fd6fd6f6920dd68d1c782}{PIN}}(\mbox{\hyperlink{encoder_8h_a954872ee0daca1b1a8d0140b4fc80b82}{ENC\+\_\+\+A\+\_\+\+PORT}}) \& (1$<$$<$\mbox{\hyperlink{encoder_8h_a7d575adbcfeaadc13a6d6606a2ed0c1b}{ENC\+\_\+\+A\+\_\+\+PIN}})}
|
|
|
|
|
|
|
|
Makro für Encoder PHASE A.
|
|
|
|
\mbox{\Hypertarget{encoder_8h_ad7b96feed1e1c12515dad5e926b2c62e}\label{encoder_8h_ad7b96feed1e1c12515dad5e926b2c62e}}
|
|
\index{encoder.h@{encoder.h}!PHASE\_B@{PHASE\_B}}
|
|
\index{PHASE\_B@{PHASE\_B}!encoder.h@{encoder.h}}
|
|
\doxysubsubsection{\texorpdfstring{PHASE\_B}{PHASE\_B}}
|
|
{\footnotesize\ttfamily \#define PHASE\+\_\+B~\mbox{\hyperlink{encoder_8h_ad7581da21e9fd6fd6f6920dd68d1c782}{PIN}}(\mbox{\hyperlink{encoder_8h_a4e6f46965f5ffba14b80a7c353313982}{ENC\+\_\+\+B\+\_\+\+PORT}}) \& (1$<$$<$\mbox{\hyperlink{encoder_8h_ab42063ad37138f2e94f87270f7826aa0}{ENC\+\_\+\+B\+\_\+\+PIN}})}
|
|
|
|
|
|
|
|
Makro für Encoder PHASE B.
|
|
|
|
\mbox{\Hypertarget{encoder_8h_ad7581da21e9fd6fd6f6920dd68d1c782}\label{encoder_8h_ad7581da21e9fd6fd6f6920dd68d1c782}}
|
|
\index{encoder.h@{encoder.h}!PIN@{PIN}}
|
|
\index{PIN@{PIN}!encoder.h@{encoder.h}}
|
|
\doxysubsubsection{\texorpdfstring{PIN}{PIN}}
|
|
{\footnotesize\ttfamily \#define PIN(\begin{DoxyParamCaption}\item[{}]{x }\end{DoxyParamCaption})~($\ast$(\&x-\/2))}
|
|
|
|
|
|
|
|
Makro Pin.
|
|
|
|
\mbox{\Hypertarget{encoder_8h_aa229b4be775fd996225a45c52a7e8a6d}\label{encoder_8h_aa229b4be775fd996225a45c52a7e8a6d}}
|
|
\index{encoder.h@{encoder.h}!Port@{Port}}
|
|
\index{Port@{Port}!encoder.h@{encoder.h}}
|
|
\doxysubsubsection{\texorpdfstring{Port}{Port}}
|
|
{\footnotesize\ttfamily \#define Port(\begin{DoxyParamCaption}\item[{}]{x }\end{DoxyParamCaption})~($\ast$(\&x))}
|
|
|
|
|
|
|
|
Makro Port.
|
|
|
|
\mbox{\Hypertarget{encoder_8h_a4484973712e579e11ec1f9306d4dfa5c}\label{encoder_8h_a4484973712e579e11ec1f9306d4dfa5c}}
|
|
\index{encoder.h@{encoder.h}!TwoStep@{TwoStep}}
|
|
\index{TwoStep@{TwoStep}!encoder.h@{encoder.h}}
|
|
\doxysubsubsection{\texorpdfstring{TwoStep}{TwoStep}}
|
|
{\footnotesize\ttfamily \#define Two\+Step}
|
|
|
|
|
|
|
|
Art des Drehencoders.
|
|
|
|
|
|
|
|
\doxysubsection{Dokumentation der Aufzählungstypen}
|
|
\mbox{\Hypertarget{encoder_8h_a1f1601ea239948684d4b2a2f830bca26}\label{encoder_8h_a1f1601ea239948684d4b2a2f830bca26}}
|
|
\index{encoder.h@{encoder.h}!EButtonPressedState@{EButtonPressedState}}
|
|
\index{EButtonPressedState@{EButtonPressedState}!encoder.h@{encoder.h}}
|
|
\doxysubsubsection{\texorpdfstring{EButtonPressedState}{EButtonPressedState}}
|
|
{\footnotesize\ttfamily enum \mbox{\hyperlink{encoder_8h_a1f1601ea239948684d4b2a2f830bca26}{EButton\+Pressed\+State}}}
|
|
|
|
\begin{DoxyEnumFields}{Aufzählungswerte}
|
|
\raisebox{\heightof{T}}[0pt][0pt]{\index{ButtonPressed\_Unpressed@{ButtonPressed\_Unpressed}!encoder.h@{encoder.h}}\index{encoder.h@{encoder.h}!ButtonPressed\_Unpressed@{ButtonPressed\_Unpressed}}}\mbox{\Hypertarget{encoder_8h_a1f1601ea239948684d4b2a2f830bca26a7eda9605623092fc9f64c89f6126092d}\label{encoder_8h_a1f1601ea239948684d4b2a2f830bca26a7eda9605623092fc9f64c89f6126092d}}
|
|
Button\+Pressed\+\_\+\+Unpressed&kein Taster betötigt \\
|
|
\hline
|
|
|
|
\raisebox{\heightof{T}}[0pt][0pt]{\index{ButtonPressed\_Short@{ButtonPressed\_Short}!encoder.h@{encoder.h}}\index{encoder.h@{encoder.h}!ButtonPressed\_Short@{ButtonPressed\_Short}}}\mbox{\Hypertarget{encoder_8h_a1f1601ea239948684d4b2a2f830bca26a48e867e4b957ba7ef1d30609694100c2}\label{encoder_8h_a1f1601ea239948684d4b2a2f830bca26a48e867e4b957ba7ef1d30609694100c2}}
|
|
Button\+Pressed\+\_\+\+Short&Taster kurz betätigt. \\
|
|
\hline
|
|
|
|
\raisebox{\heightof{T}}[0pt][0pt]{\index{ButtonPressed\_Long@{ButtonPressed\_Long}!encoder.h@{encoder.h}}\index{encoder.h@{encoder.h}!ButtonPressed\_Long@{ButtonPressed\_Long}}}\mbox{\Hypertarget{encoder_8h_a1f1601ea239948684d4b2a2f830bca26a82989ac86ef7500aa2cc10c79404ff1b}\label{encoder_8h_a1f1601ea239948684d4b2a2f830bca26a82989ac86ef7500aa2cc10c79404ff1b}}
|
|
Button\+Pressed\+\_\+\+Long&Taster lang betätigt. \\
|
|
\hline
|
|
|
|
\end{DoxyEnumFields}
|
|
|
|
|
|
\doxysubsection{Dokumentation der Funktionen}
|
|
\mbox{\Hypertarget{encoder_8h_a2de57e0e3c5f3e0ab176c11363a58bf1}\label{encoder_8h_a2de57e0e3c5f3e0ab176c11363a58bf1}}
|
|
\index{encoder.h@{encoder.h}!EncoderGetButtonState@{EncoderGetButtonState}}
|
|
\index{EncoderGetButtonState@{EncoderGetButtonState}!encoder.h@{encoder.h}}
|
|
\doxysubsubsection{\texorpdfstring{EncoderGetButtonState()}{EncoderGetButtonState()}}
|
|
{\footnotesize\ttfamily t\+EButton\+Pressed\+State Encoder\+Get\+Button\+State (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
|
|
|
|
|
|
|
|
Liefert den Status des Tasters vom Drehencoder.
|
|
|
|
|
|
\begin{DoxyParams}{Parameter}
|
|
{\em none} & \\
|
|
\hline
|
|
\end{DoxyParams}
|
|
|
|
\begin{DoxyRetVals}{Rückgabewerte}
|
|
{\em t\+EButton\+Pressed\+State} & \\
|
|
\hline
|
|
\end{DoxyRetVals}
|
|
\mbox{\Hypertarget{encoder_8h_a80ec2c177aa9c2636f797ca881381827}\label{encoder_8h_a80ec2c177aa9c2636f797ca881381827}}
|
|
\index{encoder.h@{encoder.h}!EncoderInit@{EncoderInit}}
|
|
\index{EncoderInit@{EncoderInit}!encoder.h@{encoder.h}}
|
|
\doxysubsubsection{\texorpdfstring{EncoderInit()}{EncoderInit()}}
|
|
{\footnotesize\ttfamily void Encoder\+Init (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
|
|
|
|
|
|
|
|
Initialisierung des Drehencoders und der Startwerte.
|
|
|
|
|
|
\begin{DoxyParams}{Parameter}
|
|
{\em none} & \\
|
|
\hline
|
|
\end{DoxyParams}
|
|
|
|
\begin{DoxyRetVals}{Rückgabewerte}
|
|
{\em none} & \\
|
|
\hline
|
|
\end{DoxyRetVals}
|
|
\mbox{\Hypertarget{encoder_8h_ab5afede50bbce8aae40f3d02be64a374}\label{encoder_8h_ab5afede50bbce8aae40f3d02be64a374}}
|
|
\index{encoder.h@{encoder.h}!EncoderMinMax@{EncoderMinMax}}
|
|
\index{EncoderMinMax@{EncoderMinMax}!encoder.h@{encoder.h}}
|
|
\doxysubsubsection{\texorpdfstring{EncoderMinMax()}{EncoderMinMax()}}
|
|
{\footnotesize\ttfamily void Encoder\+Min\+Max (\begin{DoxyParamCaption}\item[{int8\+\_\+t}]{Encoder\+Min, }\item[{int8\+\_\+t}]{Encoder\+Max }\end{DoxyParamCaption})}
|
|
|
|
|
|
|
|
Setzt den minimalen und maximalen Bereich des Drehencoders.
|
|
|
|
|
|
\begin{DoxyParams}{Parameter}
|
|
{\em Encoder\+Min} & minimaler Wert des Drehencoders \\
|
|
\hline
|
|
{\em Encoder\+Max} & maximaler Wert des Drehencoders \\
|
|
\hline
|
|
\end{DoxyParams}
|
|
|
|
\begin{DoxyRetVals}{Rückgabewerte}
|
|
{\em none} & \\
|
|
\hline
|
|
\end{DoxyRetVals}
|
|
\mbox{\Hypertarget{encoder_8h_a660e5b11dce82f5b307f628def81d188}\label{encoder_8h_a660e5b11dce82f5b307f628def81d188}}
|
|
\index{encoder.h@{encoder.h}!EncoderPolling@{EncoderPolling}}
|
|
\index{EncoderPolling@{EncoderPolling}!encoder.h@{encoder.h}}
|
|
\doxysubsubsection{\texorpdfstring{EncoderPolling()}{EncoderPolling()}}
|
|
{\footnotesize\ttfamily void Encoder\+Polling (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
|
|
|
|
|
|
|
|
Encoder\+Polling.
|
|
|
|
\begin{DoxyVerb} Abfrage des Drehencoders und des Tasters
|
|
Wird vom Timer 0 aufgerufen
|
|
\end{DoxyVerb}
|
|
|
|
\begin{DoxyParams}{Parameter}
|
|
{\em none} & \\
|
|
\hline
|
|
\end{DoxyParams}
|
|
|
|
\begin{DoxyRetVals}{Rückgabewerte}
|
|
{\em none} & \\
|
|
\hline
|
|
\end{DoxyRetVals}
|
|
\mbox{\Hypertarget{encoder_8h_a9ec6df4b13c9134f1c61546b718cd563}\label{encoder_8h_a9ec6df4b13c9134f1c61546b718cd563}}
|
|
\index{encoder.h@{encoder.h}!EncoderRead@{EncoderRead}}
|
|
\index{EncoderRead@{EncoderRead}!encoder.h@{encoder.h}}
|
|
\doxysubsubsection{\texorpdfstring{EncoderRead()}{EncoderRead()}}
|
|
{\footnotesize\ttfamily int8\+\_\+t Encoder\+Read (\begin{DoxyParamCaption}\item[{char}]{Ueberlauf }\end{DoxyParamCaption})}
|
|
|
|
|
|
|
|
Liest die akt. Position des Drehencoders.
|
|
|
|
|
|
\begin{DoxyParams}{Parameter}
|
|
{\em Ueberlauf} & größer +127, -\/127 \\
|
|
\hline
|
|
\end{DoxyParams}
|
|
|
|
\begin{DoxyRetVals}{Rückgabewerte}
|
|
{\em Aktuelle} & Position des Drehencoders \\
|
|
\hline
|
|
\end{DoxyRetVals}
|
|
\mbox{\Hypertarget{encoder_8h_ac9e955efd05fd5f6579bb5e179b506c7}\label{encoder_8h_ac9e955efd05fd5f6579bb5e179b506c7}}
|
|
\index{encoder.h@{encoder.h}!EncoderWrite@{EncoderWrite}}
|
|
\index{EncoderWrite@{EncoderWrite}!encoder.h@{encoder.h}}
|
|
\doxysubsubsection{\texorpdfstring{EncoderWrite()}{EncoderWrite()}}
|
|
{\footnotesize\ttfamily void Encoder\+Write (\begin{DoxyParamCaption}\item[{int8\+\_\+t}]{Encoder\+Pos }\end{DoxyParamCaption})}
|
|
|
|
|
|
|
|
Setzt die aktuelle Position des Drehencoders.
|
|
|
|
|
|
\begin{DoxyParams}{Parameter}
|
|
{\em Encoder\+Pos} & -\/ die Position des Drehencoders \\
|
|
\hline
|
|
\end{DoxyParams}
|
|
|
|
\begin{DoxyRetVals}{Rückgabewerte}
|
|
{\em none} & \\
|
|
\hline
|
|
\end{DoxyRetVals}
|