595 lines
34 KiB
TeX
595 lines
34 KiB
TeX
\hypertarget{ivec__mcal__timer_8c}{}\doxysection{D\+:/\+M\+S\+P\+M0\+G3507\+\_\+\+M\+C\+A\+L/mspmog3507\+\_\+mcal/\+Core/\+Source/ivec\+\_\+mcal\+\_\+timer.c File Reference}
|
|
\label{ivec__mcal__timer_8c}\index{D:/MSPM0G3507\_MCAL/mspmog3507\_mcal/Core/Source/ivec\_mcal\_timer.c@{D:/MSPM0G3507\_MCAL/mspmog3507\_mcal/Core/Source/ivec\_mcal\_timer.c}}
|
|
{\ttfamily \#include $<$..\textbackslash{}\+Core\textbackslash{}\+Include\textbackslash{}ivec\+\_\+mcal\+\_\+timer.\+h$>$}\newline
|
|
\doxysubsection*{Functions}
|
|
\begin{DoxyCompactItemize}
|
|
\item
|
|
I\+V\+E\+C\+\_\+\+Mcal\+Status\+\_\+e \mbox{\hyperlink{ivec__mcal__timer_8c_ac505d1366e2daba130aa5de2d34e880b}{x\+M\+C\+A\+L\+\_\+\+Timer\+Init}} (G\+P\+T\+I\+M\+E\+R\+\_\+\+Regs $\ast$const p\+Timer\+\_\+inst)
|
|
\begin{DoxyCompactList}\small\item\em Initlization Periodic timer. \end{DoxyCompactList}\item
|
|
I\+V\+E\+C\+\_\+\+Mcal\+Status\+\_\+e \mbox{\hyperlink{ivec__mcal__timer_8c_a4bdb13bdf03682b629d3e7fc44b8dc10}{x\+M\+C\+A\+L\+\_\+\+Timer\+De\+Init}} (G\+P\+T\+I\+M\+E\+R\+\_\+\+Regs $\ast$const p\+Timer\+\_\+inst)
|
|
\begin{DoxyCompactList}\small\item\em De-\/\+Initialize the Timer peripheral to their default reset values. \end{DoxyCompactList}\item
|
|
I\+V\+E\+C\+\_\+\+Mcal\+Status\+\_\+e \mbox{\hyperlink{ivec__mcal__timer_8c_a257cd4ace5ba831d880a6e98ce9b105a}{x\+M\+C\+A\+L\+\_\+\+Timerget\+Count}} (uint32\+\_\+t $\ast$p\+\_\+u32temp)
|
|
\begin{DoxyCompactList}\small\item\em To get the timer counts. \end{DoxyCompactList}\item
|
|
I\+V\+E\+C\+\_\+\+Mcal\+Status\+\_\+e \mbox{\hyperlink{ivec__mcal__timer_8c_a05df50b9eac9dd77d022fc14fba6ff7b}{x\+M\+C\+A\+L\+\_\+\+Timerstart\+Counter}} (void)
|
|
\begin{DoxyCompactList}\small\item\em Start the Timer counter. \end{DoxyCompactList}\item
|
|
I\+V\+E\+C\+\_\+\+Mcal\+Status\+\_\+e \mbox{\hyperlink{ivec__mcal__timer_8c_a14f98717c817a01bd6e5d7701ad969de}{x\+M\+C\+A\+L\+\_\+\+Timerstop\+Counter}} (void)
|
|
\begin{DoxyCompactList}\small\item\em Stop the Timer stop. \end{DoxyCompactList}\item
|
|
I\+V\+E\+C\+\_\+\+Mcal\+Status\+\_\+e \mbox{\hyperlink{ivec__mcal__timer_8c_a92c540531f5d5cb9c4c1aa66dc55dd0b}{x\+M\+C\+A\+L\+\_\+\+Timerset\+Load\+Value}} (G\+P\+T\+I\+M\+E\+R\+\_\+\+Regs $\ast$const p\+Timer\+\_\+inst, uint32\+\_\+t count, uint32\+\_\+t $\ast$p\+\_\+u32temp)
|
|
\begin{DoxyCompactList}\small\item\em Function use to set load value of timer. \end{DoxyCompactList}\item
|
|
void \mbox{\hyperlink{ivec__mcal__timer_8c_a39ed10ab2a6d4e159f8a9a7d4190fb7c}{\+\_\+prv\+\_\+tim\+Gcallback}} ()
|
|
\begin{DoxyCompactList}\small\item\em Timer call back function. \end{DoxyCompactList}\item
|
|
void \mbox{\hyperlink{ivec__mcal__timer_8c_a793ba621e13e6300361d71aa960ff509}{T\+I\+M\+G0\+\_\+\+I\+R\+Q\+Handler}} ()
|
|
\begin{DoxyCompactList}\small\item\em Timer I\+RQ handler. \end{DoxyCompactList}\item
|
|
I\+V\+E\+C\+\_\+\+Mcal\+Status\+\_\+e \mbox{\hyperlink{ivec__mcal__timer_8c_a873f0c0cb5202a2f6405e51d39351392}{x\+M\+C\+A\+L\+\_\+\+Pwm\+Init}} (G\+P\+T\+I\+M\+E\+R\+\_\+\+Regs $\ast$const Tim\+\_\+inst)
|
|
\begin{DoxyCompactList}\small\item\em Initlization P\+WM timer. \end{DoxyCompactList}\item
|
|
I\+V\+E\+C\+\_\+\+Mcal\+Status\+\_\+e \mbox{\hyperlink{ivec__mcal__timer_8c_ad6a8ab55481dcb0bd90bbbfe2619eb6f}{x\+M\+C\+A\+L\+\_\+\+Pwm\+De\+Init}} (G\+P\+T\+I\+M\+E\+R\+\_\+\+Regs $\ast$const Tim\+\_\+inst)
|
|
\begin{DoxyCompactList}\small\item\em De-\/\+Initlization P\+WM timer. \end{DoxyCompactList}\item
|
|
I\+V\+E\+C\+\_\+\+Mcal\+Status\+\_\+e \mbox{\hyperlink{ivec__mcal__timer_8c_a49967c43fb1cf87442514b93e10ab5cb}{x\+M\+C\+A\+L\+\_\+\+Pwm\+Start}} (void)
|
|
\begin{DoxyCompactList}\small\item\em Enable P\+WM Timer. \end{DoxyCompactList}\item
|
|
I\+V\+E\+C\+\_\+\+Mcal\+Status\+\_\+e \mbox{\hyperlink{ivec__mcal__timer_8c_a3b0ad75cdcd24c1d880a30c9beac3c9c}{x\+M\+C\+A\+L\+\_\+\+Pwm\+Stop}} (void)
|
|
\begin{DoxyCompactList}\small\item\em Disable P\+WM Timer. \end{DoxyCompactList}\item
|
|
I\+V\+E\+C\+\_\+\+Mcal\+Status\+\_\+e \mbox{\hyperlink{ivec__mcal__timer_8c_a06d120975c4ecbd9172afae40c10c070}{x\+M\+C\+A\+L\+\_\+\+Input\+Capture\+Init}} (G\+P\+T\+I\+M\+E\+R\+\_\+\+Regs $\ast$const Tim\+\_\+inst)
|
|
\begin{DoxyCompactList}\small\item\em Initlization Input Capture timer. \end{DoxyCompactList}\item
|
|
I\+V\+E\+C\+\_\+\+Mcal\+Status\+\_\+e \mbox{\hyperlink{ivec__mcal__timer_8c_abac50c1a2c1bf54f5667e3beec45f807}{x\+M\+C\+A\+L\+\_\+\+Input\+Capture\+De\+Init}} (G\+P\+T\+I\+M\+E\+R\+\_\+\+Regs $\ast$const Tim\+\_\+inst)
|
|
\begin{DoxyCompactList}\small\item\em De-\/\+Initlization Input Capture timer. \end{DoxyCompactList}\item
|
|
I\+V\+E\+C\+\_\+\+Mcal\+Status\+\_\+e \mbox{\hyperlink{ivec__mcal__timer_8c_afaa8036c34656643f0f3c78418045558}{x\+M\+C\+A\+L\+\_\+\+Input\+Capture\+Start}} (void)
|
|
\begin{DoxyCompactList}\small\item\em Enable IC timer. \end{DoxyCompactList}\item
|
|
I\+V\+E\+C\+\_\+\+Mcal\+Status\+\_\+e \mbox{\hyperlink{ivec__mcal__timer_8c_a7880a0e54486cce5ae226497dce7f76d}{x\+M\+C\+A\+L\+\_\+\+Input\+Capture\+Stop}} (void)
|
|
\begin{DoxyCompactList}\small\item\em Disable IC timer. \end{DoxyCompactList}\item
|
|
void \mbox{\hyperlink{ivec__mcal__timer_8c_aaaba6906df06a72eea1870b2fb93b344}{v\+M\+C\+A\+L\+\_\+\+Calcfrequency}} (float $\ast$\mbox{\hyperlink{ivec__mcal__timer_8c_a8f498d8164a8b5f1fe226ac7a1065223}{f\+\_\+frequency}})
|
|
\begin{DoxyCompactList}\small\item\em Calculate the frequency of input P\+WM signal. \end{DoxyCompactList}\item
|
|
void \mbox{\hyperlink{ivec__mcal__timer_8c_a9981e88dbc39b7bb02d463a9ea4f3fa4}{\+\_\+prv\+\_\+tim\+Acallback}} ()
|
|
\begin{DoxyCompactList}\small\item\em Timer call back function. \end{DoxyCompactList}\item
|
|
void \mbox{\hyperlink{ivec__mcal__timer_8c_aceda73b51d2eabfba673bc0101cfd333}{T\+I\+M\+A0\+\_\+\+I\+R\+Q\+Handler}} ()
|
|
\begin{DoxyCompactList}\small\item\em Timer I\+RQ handler. \end{DoxyCompactList}\end{DoxyCompactItemize}
|
|
\doxysubsection*{Variables}
|
|
\begin{DoxyCompactItemize}
|
|
\item
|
|
static volatile bool \mbox{\hyperlink{ivec__mcal__timer_8c_ad293840e9710293a11e123f501d4953c}{g\+\_\+u32\+Timer\+Init\+Flag}} = 0
|
|
\item
|
|
static volatile bool \mbox{\hyperlink{ivec__mcal__timer_8c_a68bd1e66940c9f90419de8112a61792b}{g\+\_\+u32\+Timer\+Counter\+Flag}} = 0
|
|
\item
|
|
static volatile bool \mbox{\hyperlink{ivec__mcal__timer_8c_ae9f6b5d3e0f0c98e69d36aec59297b93}{g\+\_\+u32\+Pwm\+Initflag}} = 0
|
|
\item
|
|
static volatile bool \mbox{\hyperlink{ivec__mcal__timer_8c_a30c0b354b81726f2b556773926a2b8a4}{g\+\_\+u32\+Pwmstartflag}} = 0
|
|
\item
|
|
static volatile bool \mbox{\hyperlink{ivec__mcal__timer_8c_a2b584b8480730a5e8b81f41dabdc3c65}{g\+\_\+u32\+Input\+Caputerflag}} =0
|
|
\item
|
|
static volatile uint32\+\_\+t \mbox{\hyperlink{ivec__mcal__timer_8c_a3364e3b26758d05e1b38b646f4054044}{g\+\_\+u32\+Capture\+Period}}
|
|
\item
|
|
static volatile uint32\+\_\+t \mbox{\hyperlink{ivec__mcal__timer_8c_a5085e6839b8d01a71d9a1864a6a69753}{g\+\_\+u32\+Capture\+Value0}}
|
|
\item
|
|
static volatile uint32\+\_\+t \mbox{\hyperlink{ivec__mcal__timer_8c_a6c802071700ba3bf42eca5156386a8a9}{g\+\_\+u32\+Capture\+Value1}}
|
|
\item
|
|
static volatile uint32\+\_\+t \mbox{\hyperlink{ivec__mcal__timer_8c_ac844ec204b29603b2535167b848a8450}{g\+\_\+u32\+Load\+Value}}
|
|
\item
|
|
float \mbox{\hyperlink{ivec__mcal__timer_8c_a8f498d8164a8b5f1fe226ac7a1065223}{f\+\_\+frequency}} =0
|
|
\item
|
|
static const D\+L\+\_\+\+Timer\+A\+\_\+\+Clock\+Config \mbox{\hyperlink{ivec__mcal__timer_8c_a4cb7aaac1ab4f32cf08bdad1bf1cae45}{g\+C\+A\+P\+T\+U\+R\+E\+\_\+0\+Clock\+Config}}
|
|
\begin{DoxyCompactList}\small\item\em Configuration for Input capture timer. \end{DoxyCompactList}\item
|
|
static const D\+L\+\_\+\+Timer\+A\+\_\+\+Capture\+Combined\+Config \mbox{\hyperlink{ivec__mcal__timer_8c_af3bb7eed2ea009bbb2ef2fb6a5b2c03b}{g\+C\+A\+P\+T\+U\+R\+E\+\_\+0\+Capture\+Config}}
|
|
\begin{DoxyCompactList}\small\item\em Configuration for Input capture mode channel. \end{DoxyCompactList}\item
|
|
static const D\+L\+\_\+\+Timer\+G\+\_\+\+Clock\+Config \mbox{\hyperlink{ivec__mcal__timer_8c_a315d979d68b79fc842574a8d5251f14d}{g\+T\+I\+M\+E\+R\+\_\+0\+Clock\+Config}}
|
|
\begin{DoxyCompactList}\small\item\em Configuration for Periodic Timer. \end{DoxyCompactList}\item
|
|
static const D\+L\+\_\+\+Timer\+G\+\_\+\+Timer\+Config \mbox{\hyperlink{ivec__mcal__timer_8c_a1f36f4fd8eca8231d01682c58870661b}{g\+T\+I\+M\+E\+R\+\_\+0\+Timer\+Config}}
|
|
\begin{DoxyCompactList}\small\item\em Configuration for Periodic timer Mode and Period. \end{DoxyCompactList}\item
|
|
static const D\+L\+\_\+\+Timer\+G\+\_\+\+Clock\+Config \mbox{\hyperlink{ivec__mcal__timer_8c_a0ae32b282e1a0055a2bfb40dde156ee8}{g\+P\+W\+M\+\_\+0\+Clock\+Config}}
|
|
\begin{DoxyCompactList}\small\item\em Configuration for P\+WM timer. \end{DoxyCompactList}\item
|
|
static const D\+L\+\_\+\+Timer\+G\+\_\+\+P\+W\+M\+Config \mbox{\hyperlink{ivec__mcal__timer_8c_a1d0ba15433c1c3eebee1f54eca6d8765}{g\+P\+W\+M\+\_\+0\+Config}}
|
|
\begin{DoxyCompactList}\small\item\em Configuration for P\+WM time M\+O\+DE and Periode. \end{DoxyCompactList}\end{DoxyCompactItemize}
|
|
|
|
|
|
\doxysubsection{Function Documentation}
|
|
\mbox{\Hypertarget{ivec__mcal__timer_8c_a9981e88dbc39b7bb02d463a9ea4f3fa4}\label{ivec__mcal__timer_8c_a9981e88dbc39b7bb02d463a9ea4f3fa4}}
|
|
\index{ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}!\_prv\_timAcallback@{\_prv\_timAcallback}}
|
|
\index{\_prv\_timAcallback@{\_prv\_timAcallback}!ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}}
|
|
\doxysubsubsection{\texorpdfstring{\_prv\_timAcallback()}{\_prv\_timAcallback()}}
|
|
{\footnotesize\ttfamily void \+\_\+prv\+\_\+tim\+Acallback (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}
|
|
|
|
|
|
|
|
Timer call back function.
|
|
|
|
\begin{DoxyNote}{Note}
|
|
f\+\_\+frequency\+: get the calculated frequency
|
|
\end{DoxyNote}
|
|
\mbox{\Hypertarget{ivec__mcal__timer_8c_a39ed10ab2a6d4e159f8a9a7d4190fb7c}\label{ivec__mcal__timer_8c_a39ed10ab2a6d4e159f8a9a7d4190fb7c}}
|
|
\index{ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}!\_prv\_timGcallback@{\_prv\_timGcallback}}
|
|
\index{\_prv\_timGcallback@{\_prv\_timGcallback}!ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}}
|
|
\doxysubsubsection{\texorpdfstring{\_prv\_timGcallback()}{\_prv\_timGcallback()}}
|
|
{\footnotesize\ttfamily void \+\_\+prv\+\_\+tim\+Gcallback (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}
|
|
|
|
|
|
|
|
Timer call back function.
|
|
|
|
\begin{DoxyNote}{Note}
|
|
Interruptions enabled in this function
|
|
\end{DoxyNote}
|
|
\mbox{\Hypertarget{ivec__mcal__timer_8c_aceda73b51d2eabfba673bc0101cfd333}\label{ivec__mcal__timer_8c_aceda73b51d2eabfba673bc0101cfd333}}
|
|
\index{ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}!TIMA0\_IRQHandler@{TIMA0\_IRQHandler}}
|
|
\index{TIMA0\_IRQHandler@{TIMA0\_IRQHandler}!ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}}
|
|
\doxysubsubsection{\texorpdfstring{TIMA0\_IRQHandler()}{TIMA0\_IRQHandler()}}
|
|
{\footnotesize\ttfamily void T\+I\+M\+A0\+\_\+\+I\+R\+Q\+Handler (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}
|
|
|
|
|
|
|
|
Timer I\+RQ handler.
|
|
|
|
\mbox{\Hypertarget{ivec__mcal__timer_8c_a793ba621e13e6300361d71aa960ff509}\label{ivec__mcal__timer_8c_a793ba621e13e6300361d71aa960ff509}}
|
|
\index{ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}!TIMG0\_IRQHandler@{TIMG0\_IRQHandler}}
|
|
\index{TIMG0\_IRQHandler@{TIMG0\_IRQHandler}!ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}}
|
|
\doxysubsubsection{\texorpdfstring{TIMG0\_IRQHandler()}{TIMG0\_IRQHandler()}}
|
|
{\footnotesize\ttfamily void T\+I\+M\+G0\+\_\+\+I\+R\+Q\+Handler (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}
|
|
|
|
|
|
|
|
Timer I\+RQ handler.
|
|
|
|
\mbox{\Hypertarget{ivec__mcal__timer_8c_aaaba6906df06a72eea1870b2fb93b344}\label{ivec__mcal__timer_8c_aaaba6906df06a72eea1870b2fb93b344}}
|
|
\index{ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}!vMCAL\_Calcfrequency@{vMCAL\_Calcfrequency}}
|
|
\index{vMCAL\_Calcfrequency@{vMCAL\_Calcfrequency}!ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}}
|
|
\doxysubsubsection{\texorpdfstring{vMCAL\_Calcfrequency()}{vMCAL\_Calcfrequency()}}
|
|
{\footnotesize\ttfamily void v\+M\+C\+A\+L\+\_\+\+Calcfrequency (\begin{DoxyParamCaption}\item[{float $\ast$}]{f\+\_\+frequency }\end{DoxyParamCaption})}
|
|
|
|
|
|
|
|
Calculate the frequency of input P\+WM signal.
|
|
|
|
|
|
\begin{DoxyParams}{Parameters}
|
|
{\em f\+\_\+frequency} & to get Calculate frequency \\
|
|
\hline
|
|
\end{DoxyParams}
|
|
|
|
\begin{DoxyRetVals}{Return values}
|
|
{\em I\+V\+EC} & M\+C\+AL status \\
|
|
\hline
|
|
\end{DoxyRetVals}
|
|
\mbox{\Hypertarget{ivec__mcal__timer_8c_abac50c1a2c1bf54f5667e3beec45f807}\label{ivec__mcal__timer_8c_abac50c1a2c1bf54f5667e3beec45f807}}
|
|
\index{ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}!xMCAL\_InputCaptureDeInit@{xMCAL\_InputCaptureDeInit}}
|
|
\index{xMCAL\_InputCaptureDeInit@{xMCAL\_InputCaptureDeInit}!ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}}
|
|
\doxysubsubsection{\texorpdfstring{xMCAL\_InputCaptureDeInit()}{xMCAL\_InputCaptureDeInit()}}
|
|
{\footnotesize\ttfamily I\+V\+E\+C\+\_\+\+Mcal\+Status\+\_\+e x\+M\+C\+A\+L\+\_\+\+Input\+Capture\+De\+Init (\begin{DoxyParamCaption}\item[{G\+P\+T\+I\+M\+E\+R\+\_\+\+Regs $\ast$const}]{Tim\+\_\+inst }\end{DoxyParamCaption})}
|
|
|
|
|
|
|
|
De-\/\+Initlization Input Capture timer.
|
|
|
|
|
|
\begin{DoxyParams}{Parameters}
|
|
{\em Tim\+\_\+inst} & Timer handle \\
|
|
\hline
|
|
\end{DoxyParams}
|
|
|
|
\begin{DoxyRetVals}{Return values}
|
|
{\em I\+V\+EC} & M\+C\+AL status \\
|
|
\hline
|
|
\end{DoxyRetVals}
|
|
\mbox{\Hypertarget{ivec__mcal__timer_8c_a06d120975c4ecbd9172afae40c10c070}\label{ivec__mcal__timer_8c_a06d120975c4ecbd9172afae40c10c070}}
|
|
\index{ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}!xMCAL\_InputCaptureInit@{xMCAL\_InputCaptureInit}}
|
|
\index{xMCAL\_InputCaptureInit@{xMCAL\_InputCaptureInit}!ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}}
|
|
\doxysubsubsection{\texorpdfstring{xMCAL\_InputCaptureInit()}{xMCAL\_InputCaptureInit()}}
|
|
{\footnotesize\ttfamily I\+V\+E\+C\+\_\+\+Mcal\+Status\+\_\+e x\+M\+C\+A\+L\+\_\+\+Input\+Capture\+Init (\begin{DoxyParamCaption}\item[{G\+P\+T\+I\+M\+E\+R\+\_\+\+Regs $\ast$const}]{Tim\+\_\+inst }\end{DoxyParamCaption})}
|
|
|
|
|
|
|
|
Initlization Input Capture timer.
|
|
|
|
\begin{DoxyNote}{Note}
|
|
Interruptions enabled in this function
|
|
\end{DoxyNote}
|
|
|
|
\begin{DoxyParams}{Parameters}
|
|
{\em Tim\+\_\+inst} & Timer handle \\
|
|
\hline
|
|
\end{DoxyParams}
|
|
|
|
\begin{DoxyRetVals}{Return values}
|
|
{\em I\+V\+EC} & M\+C\+AL status \\
|
|
\hline
|
|
\end{DoxyRetVals}
|
|
\mbox{\Hypertarget{ivec__mcal__timer_8c_afaa8036c34656643f0f3c78418045558}\label{ivec__mcal__timer_8c_afaa8036c34656643f0f3c78418045558}}
|
|
\index{ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}!xMCAL\_InputCaptureStart@{xMCAL\_InputCaptureStart}}
|
|
\index{xMCAL\_InputCaptureStart@{xMCAL\_InputCaptureStart}!ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}}
|
|
\doxysubsubsection{\texorpdfstring{xMCAL\_InputCaptureStart()}{xMCAL\_InputCaptureStart()}}
|
|
{\footnotesize\ttfamily I\+V\+E\+C\+\_\+\+Mcal\+Status\+\_\+e x\+M\+C\+A\+L\+\_\+\+Input\+Capture\+Start (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
|
|
|
|
|
|
|
|
Enable IC timer.
|
|
|
|
|
|
\begin{DoxyRetVals}{Return values}
|
|
{\em I\+V\+EC} & M\+C\+AL status \\
|
|
\hline
|
|
\end{DoxyRetVals}
|
|
\mbox{\Hypertarget{ivec__mcal__timer_8c_a7880a0e54486cce5ae226497dce7f76d}\label{ivec__mcal__timer_8c_a7880a0e54486cce5ae226497dce7f76d}}
|
|
\index{ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}!xMCAL\_InputCaptureStop@{xMCAL\_InputCaptureStop}}
|
|
\index{xMCAL\_InputCaptureStop@{xMCAL\_InputCaptureStop}!ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}}
|
|
\doxysubsubsection{\texorpdfstring{xMCAL\_InputCaptureStop()}{xMCAL\_InputCaptureStop()}}
|
|
{\footnotesize\ttfamily I\+V\+E\+C\+\_\+\+Mcal\+Status\+\_\+e x\+M\+C\+A\+L\+\_\+\+Input\+Capture\+Stop (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
|
|
|
|
|
|
|
|
Disable IC timer.
|
|
|
|
|
|
\begin{DoxyRetVals}{Return values}
|
|
{\em I\+V\+EC} & M\+C\+AL status \\
|
|
\hline
|
|
\end{DoxyRetVals}
|
|
\mbox{\Hypertarget{ivec__mcal__timer_8c_ad6a8ab55481dcb0bd90bbbfe2619eb6f}\label{ivec__mcal__timer_8c_ad6a8ab55481dcb0bd90bbbfe2619eb6f}}
|
|
\index{ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}!xMCAL\_PwmDeInit@{xMCAL\_PwmDeInit}}
|
|
\index{xMCAL\_PwmDeInit@{xMCAL\_PwmDeInit}!ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}}
|
|
\doxysubsubsection{\texorpdfstring{xMCAL\_PwmDeInit()}{xMCAL\_PwmDeInit()}}
|
|
{\footnotesize\ttfamily I\+V\+E\+C\+\_\+\+Mcal\+Status\+\_\+e x\+M\+C\+A\+L\+\_\+\+Pwm\+De\+Init (\begin{DoxyParamCaption}\item[{G\+P\+T\+I\+M\+E\+R\+\_\+\+Regs $\ast$const}]{Tim\+\_\+inst }\end{DoxyParamCaption})}
|
|
|
|
|
|
|
|
De-\/\+Initlization P\+WM timer.
|
|
|
|
|
|
\begin{DoxyParams}{Parameters}
|
|
{\em Tim\+\_\+inst} & Timer handle \\
|
|
\hline
|
|
\end{DoxyParams}
|
|
|
|
\begin{DoxyRetVals}{Return values}
|
|
{\em I\+V\+EC} & M\+C\+AL status \\
|
|
\hline
|
|
\end{DoxyRetVals}
|
|
\mbox{\Hypertarget{ivec__mcal__timer_8c_a873f0c0cb5202a2f6405e51d39351392}\label{ivec__mcal__timer_8c_a873f0c0cb5202a2f6405e51d39351392}}
|
|
\index{ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}!xMCAL\_PwmInit@{xMCAL\_PwmInit}}
|
|
\index{xMCAL\_PwmInit@{xMCAL\_PwmInit}!ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}}
|
|
\doxysubsubsection{\texorpdfstring{xMCAL\_PwmInit()}{xMCAL\_PwmInit()}}
|
|
{\footnotesize\ttfamily I\+V\+E\+C\+\_\+\+Mcal\+Status\+\_\+e x\+M\+C\+A\+L\+\_\+\+Pwm\+Init (\begin{DoxyParamCaption}\item[{G\+P\+T\+I\+M\+E\+R\+\_\+\+Regs $\ast$const}]{Tim\+\_\+inst }\end{DoxyParamCaption})}
|
|
|
|
|
|
|
|
Initlization P\+WM timer.
|
|
|
|
\begin{DoxyNote}{Note}
|
|
Interruptions enabled in this function
|
|
\end{DoxyNote}
|
|
|
|
\begin{DoxyParams}{Parameters}
|
|
{\em Tim\+\_\+inst} & Timer handle \\
|
|
\hline
|
|
\end{DoxyParams}
|
|
|
|
\begin{DoxyRetVals}{Return values}
|
|
{\em I\+V\+EC} & M\+C\+AL status \\
|
|
\hline
|
|
\end{DoxyRetVals}
|
|
\mbox{\Hypertarget{ivec__mcal__timer_8c_a49967c43fb1cf87442514b93e10ab5cb}\label{ivec__mcal__timer_8c_a49967c43fb1cf87442514b93e10ab5cb}}
|
|
\index{ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}!xMCAL\_PwmStart@{xMCAL\_PwmStart}}
|
|
\index{xMCAL\_PwmStart@{xMCAL\_PwmStart}!ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}}
|
|
\doxysubsubsection{\texorpdfstring{xMCAL\_PwmStart()}{xMCAL\_PwmStart()}}
|
|
{\footnotesize\ttfamily I\+V\+E\+C\+\_\+\+Mcal\+Status\+\_\+e x\+M\+C\+A\+L\+\_\+\+Pwm\+Start (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
|
|
|
|
|
|
|
|
Enable P\+WM Timer.
|
|
|
|
|
|
\begin{DoxyRetVals}{Return values}
|
|
{\em I\+V\+EC} & M\+C\+AL status \\
|
|
\hline
|
|
\end{DoxyRetVals}
|
|
\mbox{\Hypertarget{ivec__mcal__timer_8c_a3b0ad75cdcd24c1d880a30c9beac3c9c}\label{ivec__mcal__timer_8c_a3b0ad75cdcd24c1d880a30c9beac3c9c}}
|
|
\index{ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}!xMCAL\_PwmStop@{xMCAL\_PwmStop}}
|
|
\index{xMCAL\_PwmStop@{xMCAL\_PwmStop}!ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}}
|
|
\doxysubsubsection{\texorpdfstring{xMCAL\_PwmStop()}{xMCAL\_PwmStop()}}
|
|
{\footnotesize\ttfamily I\+V\+E\+C\+\_\+\+Mcal\+Status\+\_\+e x\+M\+C\+A\+L\+\_\+\+Pwm\+Stop (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
|
|
|
|
|
|
|
|
Disable P\+WM Timer.
|
|
|
|
|
|
\begin{DoxyRetVals}{Return values}
|
|
{\em I\+V\+EC} & M\+C\+AL status \\
|
|
\hline
|
|
\end{DoxyRetVals}
|
|
\mbox{\Hypertarget{ivec__mcal__timer_8c_a4bdb13bdf03682b629d3e7fc44b8dc10}\label{ivec__mcal__timer_8c_a4bdb13bdf03682b629d3e7fc44b8dc10}}
|
|
\index{ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}!xMCAL\_TimerDeInit@{xMCAL\_TimerDeInit}}
|
|
\index{xMCAL\_TimerDeInit@{xMCAL\_TimerDeInit}!ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}}
|
|
\doxysubsubsection{\texorpdfstring{xMCAL\_TimerDeInit()}{xMCAL\_TimerDeInit()}}
|
|
{\footnotesize\ttfamily I\+V\+E\+C\+\_\+\+Mcal\+Status\+\_\+e x\+M\+C\+A\+L\+\_\+\+Timer\+De\+Init (\begin{DoxyParamCaption}\item[{G\+P\+T\+I\+M\+E\+R\+\_\+\+Regs $\ast$const}]{p\+Timer\+\_\+inst }\end{DoxyParamCaption})}
|
|
|
|
|
|
|
|
De-\/\+Initialize the Timer peripheral to their default reset values.
|
|
|
|
|
|
\begin{DoxyParams}{Parameters}
|
|
{\em p\+Timer\+\_\+inst} & Timer handle \\
|
|
\hline
|
|
\end{DoxyParams}
|
|
|
|
\begin{DoxyRetVals}{Return values}
|
|
{\em I\+V\+EC} & M\+C\+AL status \\
|
|
\hline
|
|
\end{DoxyRetVals}
|
|
\mbox{\Hypertarget{ivec__mcal__timer_8c_a257cd4ace5ba831d880a6e98ce9b105a}\label{ivec__mcal__timer_8c_a257cd4ace5ba831d880a6e98ce9b105a}}
|
|
\index{ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}!xMCAL\_TimergetCount@{xMCAL\_TimergetCount}}
|
|
\index{xMCAL\_TimergetCount@{xMCAL\_TimergetCount}!ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}}
|
|
\doxysubsubsection{\texorpdfstring{xMCAL\_TimergetCount()}{xMCAL\_TimergetCount()}}
|
|
{\footnotesize\ttfamily I\+V\+E\+C\+\_\+\+Mcal\+Status\+\_\+e x\+M\+C\+A\+L\+\_\+\+Timerget\+Count (\begin{DoxyParamCaption}\item[{uint32\+\_\+t $\ast$}]{p\+\_\+u32temp }\end{DoxyParamCaption})}
|
|
|
|
|
|
|
|
To get the timer counts.
|
|
|
|
|
|
\begin{DoxyParams}{Parameters}
|
|
{\em p\+\_\+u32temp} & to get the timer counts \\
|
|
\hline
|
|
\end{DoxyParams}
|
|
|
|
\begin{DoxyRetVals}{Return values}
|
|
{\em I\+V\+EC} & M\+C\+AL status \\
|
|
\hline
|
|
\end{DoxyRetVals}
|
|
\mbox{\Hypertarget{ivec__mcal__timer_8c_ac505d1366e2daba130aa5de2d34e880b}\label{ivec__mcal__timer_8c_ac505d1366e2daba130aa5de2d34e880b}}
|
|
\index{ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}!xMCAL\_TimerInit@{xMCAL\_TimerInit}}
|
|
\index{xMCAL\_TimerInit@{xMCAL\_TimerInit}!ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}}
|
|
\doxysubsubsection{\texorpdfstring{xMCAL\_TimerInit()}{xMCAL\_TimerInit()}}
|
|
{\footnotesize\ttfamily I\+V\+E\+C\+\_\+\+Mcal\+Status\+\_\+e x\+M\+C\+A\+L\+\_\+\+Timer\+Init (\begin{DoxyParamCaption}\item[{G\+P\+T\+I\+M\+E\+R\+\_\+\+Regs $\ast$const}]{p\+Timer\+\_\+inst }\end{DoxyParamCaption})}
|
|
|
|
|
|
|
|
Initlization Periodic timer.
|
|
|
|
\begin{DoxyNote}{Note}
|
|
Interruptions enabled in this function
|
|
\end{DoxyNote}
|
|
|
|
\begin{DoxyParams}{Parameters}
|
|
{\em p\+Timer\+\_\+inst} & Timer handle \\
|
|
\hline
|
|
\end{DoxyParams}
|
|
|
|
\begin{DoxyRetVals}{Return values}
|
|
{\em I\+V\+EC} & M\+C\+AL status \\
|
|
\hline
|
|
\end{DoxyRetVals}
|
|
\mbox{\Hypertarget{ivec__mcal__timer_8c_a92c540531f5d5cb9c4c1aa66dc55dd0b}\label{ivec__mcal__timer_8c_a92c540531f5d5cb9c4c1aa66dc55dd0b}}
|
|
\index{ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}!xMCAL\_TimersetLoadValue@{xMCAL\_TimersetLoadValue}}
|
|
\index{xMCAL\_TimersetLoadValue@{xMCAL\_TimersetLoadValue}!ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}}
|
|
\doxysubsubsection{\texorpdfstring{xMCAL\_TimersetLoadValue()}{xMCAL\_TimersetLoadValue()}}
|
|
{\footnotesize\ttfamily I\+V\+E\+C\+\_\+\+Mcal\+Status\+\_\+e x\+M\+C\+A\+L\+\_\+\+Timerset\+Load\+Value (\begin{DoxyParamCaption}\item[{G\+P\+T\+I\+M\+E\+R\+\_\+\+Regs $\ast$const}]{p\+Timer\+\_\+inst, }\item[{uint32\+\_\+t}]{count, }\item[{uint32\+\_\+t $\ast$}]{p\+\_\+u32temp }\end{DoxyParamCaption})}
|
|
|
|
|
|
|
|
Function use to set load value of timer.
|
|
|
|
|
|
\begin{DoxyParams}{Parameters}
|
|
{\em p\+Timer\+\_\+inst} & Timer handle \\
|
|
\hline
|
|
{\em u8\+Channel} & use to pass the load value \\
|
|
\hline
|
|
{\em p\+\_\+u32temp} & use to get loaded value \\
|
|
\hline
|
|
\end{DoxyParams}
|
|
|
|
\begin{DoxyRetVals}{Return values}
|
|
{\em I\+V\+EC} & M\+C\+AL status \\
|
|
\hline
|
|
\end{DoxyRetVals}
|
|
\mbox{\Hypertarget{ivec__mcal__timer_8c_a05df50b9eac9dd77d022fc14fba6ff7b}\label{ivec__mcal__timer_8c_a05df50b9eac9dd77d022fc14fba6ff7b}}
|
|
\index{ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}!xMCAL\_TimerstartCounter@{xMCAL\_TimerstartCounter}}
|
|
\index{xMCAL\_TimerstartCounter@{xMCAL\_TimerstartCounter}!ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}}
|
|
\doxysubsubsection{\texorpdfstring{xMCAL\_TimerstartCounter()}{xMCAL\_TimerstartCounter()}}
|
|
{\footnotesize\ttfamily I\+V\+E\+C\+\_\+\+Mcal\+Status\+\_\+e x\+M\+C\+A\+L\+\_\+\+Timerstart\+Counter (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
|
|
|
|
|
|
|
|
Start the Timer counter.
|
|
|
|
|
|
\begin{DoxyRetVals}{Return values}
|
|
{\em I\+V\+EC} & M\+C\+AL status \\
|
|
\hline
|
|
\end{DoxyRetVals}
|
|
\mbox{\Hypertarget{ivec__mcal__timer_8c_a14f98717c817a01bd6e5d7701ad969de}\label{ivec__mcal__timer_8c_a14f98717c817a01bd6e5d7701ad969de}}
|
|
\index{ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}!xMCAL\_TimerstopCounter@{xMCAL\_TimerstopCounter}}
|
|
\index{xMCAL\_TimerstopCounter@{xMCAL\_TimerstopCounter}!ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}}
|
|
\doxysubsubsection{\texorpdfstring{xMCAL\_TimerstopCounter()}{xMCAL\_TimerstopCounter()}}
|
|
{\footnotesize\ttfamily I\+V\+E\+C\+\_\+\+Mcal\+Status\+\_\+e x\+M\+C\+A\+L\+\_\+\+Timerstop\+Counter (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
|
|
|
|
|
|
|
|
Stop the Timer stop.
|
|
|
|
|
|
\begin{DoxyRetVals}{Return values}
|
|
{\em I\+V\+EC} & M\+C\+AL status \\
|
|
\hline
|
|
\end{DoxyRetVals}
|
|
|
|
|
|
\doxysubsection{Variable Documentation}
|
|
\mbox{\Hypertarget{ivec__mcal__timer_8c_a8f498d8164a8b5f1fe226ac7a1065223}\label{ivec__mcal__timer_8c_a8f498d8164a8b5f1fe226ac7a1065223}}
|
|
\index{ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}!f\_frequency@{f\_frequency}}
|
|
\index{f\_frequency@{f\_frequency}!ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}}
|
|
\doxysubsubsection{\texorpdfstring{f\_frequency}{f\_frequency}}
|
|
{\footnotesize\ttfamily float f\+\_\+frequency =0}
|
|
|
|
To get calculated frequency \mbox{\Hypertarget{ivec__mcal__timer_8c_a3364e3b26758d05e1b38b646f4054044}\label{ivec__mcal__timer_8c_a3364e3b26758d05e1b38b646f4054044}}
|
|
\index{ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}!g\_u32CapturePeriod@{g\_u32CapturePeriod}}
|
|
\index{g\_u32CapturePeriod@{g\_u32CapturePeriod}!ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}}
|
|
\doxysubsubsection{\texorpdfstring{g\_u32CapturePeriod}{g\_u32CapturePeriod}}
|
|
{\footnotesize\ttfamily volatile uint32\+\_\+t g\+\_\+u32\+Capture\+Period\hspace{0.3cm}{\ttfamily [static]}}
|
|
|
|
To get the first capture period ~\newline
|
|
\mbox{\Hypertarget{ivec__mcal__timer_8c_a5085e6839b8d01a71d9a1864a6a69753}\label{ivec__mcal__timer_8c_a5085e6839b8d01a71d9a1864a6a69753}}
|
|
\index{ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}!g\_u32CaptureValue0@{g\_u32CaptureValue0}}
|
|
\index{g\_u32CaptureValue0@{g\_u32CaptureValue0}!ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}}
|
|
\doxysubsubsection{\texorpdfstring{g\_u32CaptureValue0}{g\_u32CaptureValue0}}
|
|
{\footnotesize\ttfamily volatile uint32\+\_\+t g\+\_\+u32\+Capture\+Value0\hspace{0.3cm}{\ttfamily [static]}}
|
|
|
|
To get the first capture value \mbox{\Hypertarget{ivec__mcal__timer_8c_a6c802071700ba3bf42eca5156386a8a9}\label{ivec__mcal__timer_8c_a6c802071700ba3bf42eca5156386a8a9}}
|
|
\index{ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}!g\_u32CaptureValue1@{g\_u32CaptureValue1}}
|
|
\index{g\_u32CaptureValue1@{g\_u32CaptureValue1}!ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}}
|
|
\doxysubsubsection{\texorpdfstring{g\_u32CaptureValue1}{g\_u32CaptureValue1}}
|
|
{\footnotesize\ttfamily volatile uint32\+\_\+t g\+\_\+u32\+Capture\+Value1\hspace{0.3cm}{\ttfamily [static]}}
|
|
|
|
To get the second capture value ~\newline
|
|
\mbox{\Hypertarget{ivec__mcal__timer_8c_a2b584b8480730a5e8b81f41dabdc3c65}\label{ivec__mcal__timer_8c_a2b584b8480730a5e8b81f41dabdc3c65}}
|
|
\index{ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}!g\_u32InputCaputerflag@{g\_u32InputCaputerflag}}
|
|
\index{g\_u32InputCaputerflag@{g\_u32InputCaputerflag}!ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}}
|
|
\doxysubsubsection{\texorpdfstring{g\_u32InputCaputerflag}{g\_u32InputCaputerflag}}
|
|
{\footnotesize\ttfamily volatile bool g\+\_\+u32\+Input\+Caputerflag =0\hspace{0.3cm}{\ttfamily [static]}}
|
|
|
|
Input Capture initialization flag \mbox{\Hypertarget{ivec__mcal__timer_8c_ac844ec204b29603b2535167b848a8450}\label{ivec__mcal__timer_8c_ac844ec204b29603b2535167b848a8450}}
|
|
\index{ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}!g\_u32LoadValue@{g\_u32LoadValue}}
|
|
\index{g\_u32LoadValue@{g\_u32LoadValue}!ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}}
|
|
\doxysubsubsection{\texorpdfstring{g\_u32LoadValue}{g\_u32LoadValue}}
|
|
{\footnotesize\ttfamily volatile uint32\+\_\+t g\+\_\+u32\+Load\+Value\hspace{0.3cm}{\ttfamily [static]}}
|
|
|
|
To get timer loaded value \mbox{\Hypertarget{ivec__mcal__timer_8c_ae9f6b5d3e0f0c98e69d36aec59297b93}\label{ivec__mcal__timer_8c_ae9f6b5d3e0f0c98e69d36aec59297b93}}
|
|
\index{ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}!g\_u32PwmInitflag@{g\_u32PwmInitflag}}
|
|
\index{g\_u32PwmInitflag@{g\_u32PwmInitflag}!ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}}
|
|
\doxysubsubsection{\texorpdfstring{g\_u32PwmInitflag}{g\_u32PwmInitflag}}
|
|
{\footnotesize\ttfamily volatile bool g\+\_\+u32\+Pwm\+Initflag = 0\hspace{0.3cm}{\ttfamily [static]}}
|
|
|
|
P\+WM initialization flag \mbox{\Hypertarget{ivec__mcal__timer_8c_a30c0b354b81726f2b556773926a2b8a4}\label{ivec__mcal__timer_8c_a30c0b354b81726f2b556773926a2b8a4}}
|
|
\index{ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}!g\_u32Pwmstartflag@{g\_u32Pwmstartflag}}
|
|
\index{g\_u32Pwmstartflag@{g\_u32Pwmstartflag}!ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}}
|
|
\doxysubsubsection{\texorpdfstring{g\_u32Pwmstartflag}{g\_u32Pwmstartflag}}
|
|
{\footnotesize\ttfamily volatile bool g\+\_\+u32\+Pwmstartflag = 0\hspace{0.3cm}{\ttfamily [static]}}
|
|
|
|
P\+WM Start flag \mbox{\Hypertarget{ivec__mcal__timer_8c_a68bd1e66940c9f90419de8112a61792b}\label{ivec__mcal__timer_8c_a68bd1e66940c9f90419de8112a61792b}}
|
|
\index{ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}!g\_u32TimerCounterFlag@{g\_u32TimerCounterFlag}}
|
|
\index{g\_u32TimerCounterFlag@{g\_u32TimerCounterFlag}!ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}}
|
|
\doxysubsubsection{\texorpdfstring{g\_u32TimerCounterFlag}{g\_u32TimerCounterFlag}}
|
|
{\footnotesize\ttfamily volatile bool g\+\_\+u32\+Timer\+Counter\+Flag = 0\hspace{0.3cm}{\ttfamily [static]}}
|
|
|
|
Timer Counter flag ~\newline
|
|
\mbox{\Hypertarget{ivec__mcal__timer_8c_ad293840e9710293a11e123f501d4953c}\label{ivec__mcal__timer_8c_ad293840e9710293a11e123f501d4953c}}
|
|
\index{ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}!g\_u32TimerInitFlag@{g\_u32TimerInitFlag}}
|
|
\index{g\_u32TimerInitFlag@{g\_u32TimerInitFlag}!ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}}
|
|
\doxysubsubsection{\texorpdfstring{g\_u32TimerInitFlag}{g\_u32TimerInitFlag}}
|
|
{\footnotesize\ttfamily volatile bool g\+\_\+u32\+Timer\+Init\+Flag = 0\hspace{0.3cm}{\ttfamily [static]}}
|
|
|
|
Timer initialization flag ~\newline
|
|
\mbox{\Hypertarget{ivec__mcal__timer_8c_af3bb7eed2ea009bbb2ef2fb6a5b2c03b}\label{ivec__mcal__timer_8c_af3bb7eed2ea009bbb2ef2fb6a5b2c03b}}
|
|
\index{ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}!gCAPTURE\_0CaptureConfig@{gCAPTURE\_0CaptureConfig}}
|
|
\index{gCAPTURE\_0CaptureConfig@{gCAPTURE\_0CaptureConfig}!ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}}
|
|
\doxysubsubsection{\texorpdfstring{gCAPTURE\_0CaptureConfig}{gCAPTURE\_0CaptureConfig}}
|
|
{\footnotesize\ttfamily const D\+L\+\_\+\+Timer\+A\+\_\+\+Capture\+Combined\+Config g\+C\+A\+P\+T\+U\+R\+E\+\_\+0\+Capture\+Config\hspace{0.3cm}{\ttfamily [static]}}
|
|
|
|
{\bfseries Initial value\+:}
|
|
\begin{DoxyCode}{0}
|
|
\DoxyCodeLine{= \{}
|
|
\DoxyCodeLine{ .captureMode = DL\_TIMER\_CAPTURE\_COMBINED\_MODE\_PULSE\_WIDTH\_AND\_PERIOD,}
|
|
\DoxyCodeLine{ .period = CAPTURE\_0\_INST\_LOAD\_VALUE,}
|
|
\DoxyCodeLine{ .startTimer = DL\_TIMER\_STOP,}
|
|
\DoxyCodeLine{ .inputChan = DL\_TIMER\_INPUT\_CHAN\_0,}
|
|
\DoxyCodeLine{ .inputInvMode = DL\_TIMER\_CC\_INPUT\_INV\_NOINVERT,}
|
|
\DoxyCodeLine{\}}
|
|
|
|
\end{DoxyCode}
|
|
|
|
|
|
Configuration for Input capture mode channel.
|
|
|
|
\mbox{\Hypertarget{ivec__mcal__timer_8c_a4cb7aaac1ab4f32cf08bdad1bf1cae45}\label{ivec__mcal__timer_8c_a4cb7aaac1ab4f32cf08bdad1bf1cae45}}
|
|
\index{ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}!gCAPTURE\_0ClockConfig@{gCAPTURE\_0ClockConfig}}
|
|
\index{gCAPTURE\_0ClockConfig@{gCAPTURE\_0ClockConfig}!ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}}
|
|
\doxysubsubsection{\texorpdfstring{gCAPTURE\_0ClockConfig}{gCAPTURE\_0ClockConfig}}
|
|
{\footnotesize\ttfamily const D\+L\+\_\+\+Timer\+A\+\_\+\+Clock\+Config g\+C\+A\+P\+T\+U\+R\+E\+\_\+0\+Clock\+Config\hspace{0.3cm}{\ttfamily [static]}}
|
|
|
|
{\bfseries Initial value\+:}
|
|
\begin{DoxyCode}{0}
|
|
\DoxyCodeLine{= \{}
|
|
\DoxyCodeLine{ .clockSel = DL\_TIMER\_CLOCK\_BUSCLK,}
|
|
\DoxyCodeLine{ .divideRatio = DL\_TIMER\_CLOCK\_DIVIDE\_1,}
|
|
\DoxyCodeLine{ .prescale = 32U}
|
|
\DoxyCodeLine{\}}
|
|
|
|
\end{DoxyCode}
|
|
|
|
|
|
Configuration for Input capture timer.
|
|
|
|
\mbox{\Hypertarget{ivec__mcal__timer_8c_a0ae32b282e1a0055a2bfb40dde156ee8}\label{ivec__mcal__timer_8c_a0ae32b282e1a0055a2bfb40dde156ee8}}
|
|
\index{ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}!gPWM\_0ClockConfig@{gPWM\_0ClockConfig}}
|
|
\index{gPWM\_0ClockConfig@{gPWM\_0ClockConfig}!ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}}
|
|
\doxysubsubsection{\texorpdfstring{gPWM\_0ClockConfig}{gPWM\_0ClockConfig}}
|
|
{\footnotesize\ttfamily const D\+L\+\_\+\+Timer\+G\+\_\+\+Clock\+Config g\+P\+W\+M\+\_\+0\+Clock\+Config\hspace{0.3cm}{\ttfamily [static]}}
|
|
|
|
{\bfseries Initial value\+:}
|
|
\begin{DoxyCode}{0}
|
|
\DoxyCodeLine{= \{}
|
|
\DoxyCodeLine{ .clockSel = DL\_TIMER\_CLOCK\_BUSCLK,}
|
|
\DoxyCodeLine{ .divideRatio = DL\_TIMER\_CLOCK\_DIVIDE\_1,}
|
|
\DoxyCodeLine{ .prescale = 31U}
|
|
\DoxyCodeLine{\}}
|
|
|
|
\end{DoxyCode}
|
|
|
|
|
|
Configuration for P\+WM timer.
|
|
|
|
\mbox{\Hypertarget{ivec__mcal__timer_8c_a1d0ba15433c1c3eebee1f54eca6d8765}\label{ivec__mcal__timer_8c_a1d0ba15433c1c3eebee1f54eca6d8765}}
|
|
\index{ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}!gPWM\_0Config@{gPWM\_0Config}}
|
|
\index{gPWM\_0Config@{gPWM\_0Config}!ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}}
|
|
\doxysubsubsection{\texorpdfstring{gPWM\_0Config}{gPWM\_0Config}}
|
|
{\footnotesize\ttfamily const D\+L\+\_\+\+Timer\+G\+\_\+\+P\+W\+M\+Config g\+P\+W\+M\+\_\+0\+Config\hspace{0.3cm}{\ttfamily [static]}}
|
|
|
|
{\bfseries Initial value\+:}
|
|
\begin{DoxyCode}{0}
|
|
\DoxyCodeLine{= \{}
|
|
\DoxyCodeLine{ .pwmMode = DL\_TIMER\_PWM\_MODE\_EDGE\_ALIGN,}
|
|
\DoxyCodeLine{ .period = 1000,}
|
|
\DoxyCodeLine{ .startTimer = DL\_TIMER\_STOP,}
|
|
\DoxyCodeLine{\}}
|
|
|
|
\end{DoxyCode}
|
|
|
|
|
|
Configuration for P\+WM time M\+O\+DE and Periode.
|
|
|
|
\mbox{\Hypertarget{ivec__mcal__timer_8c_a315d979d68b79fc842574a8d5251f14d}\label{ivec__mcal__timer_8c_a315d979d68b79fc842574a8d5251f14d}}
|
|
\index{ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}!gTIMER\_0ClockConfig@{gTIMER\_0ClockConfig}}
|
|
\index{gTIMER\_0ClockConfig@{gTIMER\_0ClockConfig}!ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}}
|
|
\doxysubsubsection{\texorpdfstring{gTIMER\_0ClockConfig}{gTIMER\_0ClockConfig}}
|
|
{\footnotesize\ttfamily const D\+L\+\_\+\+Timer\+G\+\_\+\+Clock\+Config g\+T\+I\+M\+E\+R\+\_\+0\+Clock\+Config\hspace{0.3cm}{\ttfamily [static]}}
|
|
|
|
{\bfseries Initial value\+:}
|
|
\begin{DoxyCode}{0}
|
|
\DoxyCodeLine{= \{}
|
|
\DoxyCodeLine{ .clockSel = DL\_TIMER\_CLOCK\_LFCLK,}
|
|
\DoxyCodeLine{ .divideRatio = DL\_TIMER\_CLOCK\_DIVIDE\_1,}
|
|
\DoxyCodeLine{ .prescale = 32U,}
|
|
\DoxyCodeLine{\}}
|
|
|
|
\end{DoxyCode}
|
|
|
|
|
|
Configuration for Periodic Timer.
|
|
|
|
\mbox{\Hypertarget{ivec__mcal__timer_8c_a1f36f4fd8eca8231d01682c58870661b}\label{ivec__mcal__timer_8c_a1f36f4fd8eca8231d01682c58870661b}}
|
|
\index{ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}!gTIMER\_0TimerConfig@{gTIMER\_0TimerConfig}}
|
|
\index{gTIMER\_0TimerConfig@{gTIMER\_0TimerConfig}!ivec\_mcal\_timer.c@{ivec\_mcal\_timer.c}}
|
|
\doxysubsubsection{\texorpdfstring{gTIMER\_0TimerConfig}{gTIMER\_0TimerConfig}}
|
|
{\footnotesize\ttfamily const D\+L\+\_\+\+Timer\+G\+\_\+\+Timer\+Config g\+T\+I\+M\+E\+R\+\_\+0\+Timer\+Config\hspace{0.3cm}{\ttfamily [static]}}
|
|
|
|
{\bfseries Initial value\+:}
|
|
\begin{DoxyCode}{0}
|
|
\DoxyCodeLine{= \{}
|
|
\DoxyCodeLine{ .period = TIMER\_0\_INST\_LOAD\_VALUE,}
|
|
\DoxyCodeLine{ .timerMode = DL\_TIMER\_TIMER\_MODE\_PERIODIC,}
|
|
\DoxyCodeLine{ .startTimer = DL\_TIMER\_STOP,}
|
|
\DoxyCodeLine{\}}
|
|
|
|
\end{DoxyCode}
|
|
|
|
|
|
Configuration for Periodic timer Mode and Period.
|
|
|