сделаны базовые хедеры: - mylibs_config - mylibs_defs - mylibs_include - trace - trackers - bit_access также сделан модуль general_gpio.c/.h Но надо проверить переструктуризированные модули Остальные модули __general_XXX в целом готовы и как-то работают (на МЗКТЭ) но не структуризированы
137 lines
17 KiB
TeX
137 lines
17 KiB
TeX
\doxysection{\+\_\+\+\_\+general\+\_\+tim.\+h}
|
||
\hypertarget{____general__tim_8h_source}{}\label{____general__tim_8h_source}\index{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibsGeneral/Inc/\_\_general\_tim.h@{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibsGeneral/Inc/\_\_general\_tim.h}}
|
||
|
||
\begin{DoxyCode}{0}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00001}00001\ \textcolor{comment}{/**\ }}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00002}00002\ \textcolor{comment}{\ \ **************************************************************************}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00003}00003\ \textcolor{comment}{\ \ *\ @file\ general\_tim.h}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00004}00004\ \textcolor{comment}{\ \ *\ @brief\ Заголовочный\ файл\ для\ базовой\ работы\ с\ таймерами.}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00005}00005\ \textcolor{comment}{\ \ *************************************************************************/}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00006}00006\ \textcolor{preprocessor}{\#ifndef\ \_\_TIM\_GENERAL\_H\_}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00007}00007\ \textcolor{preprocessor}{\#define\ \_\_TIM\_GENERAL\_H\_}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00008}00008\ \textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00009}00009\ \textcolor{comment}{/////////////////////////////////////////////////////////////////////}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00010}00010\ \textcolor{comment}{/////////////////////////-\/-\/-\/USER\ SETTINGS-\/-\/-\//////////////////////////}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00011}00011\ \textcolor{preprocessor}{\#define\ HAL\_TIM\_MODULE\_ENABLED\ }\textcolor{comment}{//\ need\ to\ uncomment\ this\ define\ in\ stm32f4xx\_hal\_conf.h}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00012}00012\ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00013}00013\ \textcolor{preprocessor}{\#define\ USE\_TIM1}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00014}00014\ \textcolor{preprocessor}{\#define\ USE\_TIM2}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00015}00015\ \textcolor{preprocessor}{\#define\ USE\_TIM3}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00016}00016\ \textcolor{preprocessor}{\#define\ USE\_TIM4}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00017}00017\ \textcolor{preprocessor}{\#define\ USE\_TIM5}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00018}00018\ \textcolor{preprocessor}{\#define\ USE\_TIM6}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00019}00019\ \textcolor{preprocessor}{\#define\ USE\_TIM7}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00020}00020\ \textcolor{preprocessor}{\#define\ USE\_TIM8}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00021}00021\ \textcolor{preprocessor}{\#define\ USE\_TIM9}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00022}00022\ \textcolor{preprocessor}{\#define\ USE\_TIM10}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00023}00023\ \textcolor{preprocessor}{\#define\ USE\_TIM11}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00024}00024\ \textcolor{preprocessor}{\#define\ USE\_TIM12}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00025}00025\ \textcolor{preprocessor}{\#define\ USE\_TIM13}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00026}00026\ \textcolor{preprocessor}{\#define\ USE\_TIM14}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00027}00027\ \textcolor{comment}{/*\ note:\ used\ uart\ defines\ in\ modbus.h\ */}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00028}00028\ \textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00029}00029\ \textcolor{comment}{/////////////////////////-\/-\/-\/USER\ SETTINGS-\/-\/-\//////////////////////////}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00030}00030\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{mylibs__defs_8h}{mylibs\_defs.h}}"{}}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00031}00031\ \textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00032}00032\ \textcolor{comment}{/////////////////////////////////////////////////////////////////////}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00033}00033\ \textcolor{comment}{////////////////////////////-\/-\/-\/DEFINES-\/-\/-\/////////////////////////////}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00034}00034\ \textcolor{preprocessor}{\#define\ TIM\_IT\_CONF\_Pos\ \ \ \ \ \ \ \ \ \ \ 0}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00035}00035\ \textcolor{comment}{//\#define\ TIM\_PWM\_CONF\_Pos\ \ \ \ \ \ \ \ \ \ 1}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00036}00036\ \textcolor{comment}{//\#define\ TIM\_CLCK\_SRC\_CONF\_Pos\ \ \ \ \ 2}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00037}00037\ \textcolor{comment}{//\#define\ TIM\_SLAVE\_CONF\_Pos\ \ \ \ \ \ \ \ 3}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00038}00038\ \textcolor{comment}{//\#define\ TIM\_MASTER\_CONF\_Pos\ \ \ \ \ \ \ 4}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00039}00039\ \textcolor{comment}{//\#define\ TIM\_BDTR\_CONF\_Pos\ \ \ \ \ \ \ \ \ 5}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00040}00040\ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00041}00041\ \textcolor{preprocessor}{\#define\ TIM\_IT\_CONF\ \ \ (1<<(TIM\_IT\_CONF\_Pos))}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00042}00042\ \textcolor{comment}{//\#define\ TIM\_PWM\_CONF\ \ \ \ \ \ (1<<(TIM\_PWM\_Pos))}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00043}00043\ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00044}00044\ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00045}00045\ \textcolor{preprocessor}{\#define\ TIM\_Alternate\_Mapping(INSTANCE)\ \ \ \ \ \ \ \ ((((INSTANCE)\ ==\ TIM1)\ ||\ ((INSTANCE)\ ==\ TIM2))?\ GPIO\_AF1\_TIM1:\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00046}00046\ \textcolor{preprocessor}{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (((INSTANCE)\ ==\ TIM3)\ ||\ ((INSTANCE)\ ==\ TIM4)\ ||\ ((INSTANCE)\ ==\ TIM5))?\ GPIO\_AF2\_TIM3:\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00047}00047\ \textcolor{preprocessor}{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (((INSTANCE)\ ==\ TIM8)\ ||\ ((INSTANCE)\ ==\ TIM9)\ ||\ ((INSTANCE)\ ==\ TIM10)\ ||\ ((INSTANCE)\ ==\ TIM11))?\ GPIO\_AF3\_TIM8:\ \ \(\backslash\)}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00048}00048\ \textcolor{preprocessor}{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (((INSTANCE)\ ==\ TIM12)\ ||\ ((INSTANCE)\ ==\ TIM13)\ ||\ ((INSTANCE)\ ==\ TIM14))?\ GPIO\_AF9\_TIM12:\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00049}00049\ \textcolor{preprocessor}{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (0))}\textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00050}00050\ \textcolor{comment}{////////////////////////////-\/-\/-\/DEFINES-\/-\/-\/////////////////////////////]}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00051}00051\ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00052}00052\ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00053}00053\ \textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00054}00054\ \textcolor{comment}{/////////////////////////////////////////////////////////////////////}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00055}00055\ \textcolor{comment}{///////////////////////-\/-\/-\/STRUCTURES\ \&\ ENUMS-\/-\/-\///////////////////////}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00056}00056\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{enum}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00057}00057\ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00058}00058\ \ \ TIM\_DEFAULT\ =\ \ \ \ \ \ \ \ \ 0,}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00059}00059\ \ \ TIM\_IT\_MODE\ =\ \ \ \ \ \ \ \ \ TIM\_IT\_CONF,}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00060}00060\ \textcolor{comment}{//\ \ TIM\_PWM\_MODE\ =\ \ \ \ \ \ \ \ TIM\_PWM\_ENABLE,}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00061}00061\ \textcolor{comment}{//\ \ TIM\_PWM\_IT\_MODE\ =\ \ \ \ \ TIM\_PWM\_ENABLE\ |\ TIM\_IT\_CONF,}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00062}00062\ \}TIM\_ITModeTypeDef;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00063}00063\ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00064}00064\ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00065}00065\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{enum}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00066}00066\ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00067}00067\ \ \ TIM\_Base\_Disable\ =\ \ \ \ \ \ 0,}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00068}00068\ \ \ TIM\_TickBase\_1US\ =\ \ \ \ \ \ 1,}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00069}00069\ \ \ TIM\_TickBase\_10US\ =\ \ \ \ \ 10,}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00070}00070\ \ \ TIM\_TickBase\_100US\ =\ \ \ \ 100,}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00071}00071\ \ \ TIM\_TickBase\_1MS\ =\ \ \ \ \ \ 1000,}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00072}00072\ \ \ TIM\_TickBase\_10MS\ =\ \ \ \ \ 10000,}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00073}00073\ \ \ TIM\_TickBase\_100MS\ =\ \ \ \ 100000,}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00074}00074\ \}TIM\_MHzTickBaseTypeDef;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00075}00075\ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00076}\mbox{\hyperlink{struct_t_i_m___settings_type_def}{00076}}\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }\textcolor{comment}{//\ struct\ with\ settings\ for\ custom\ function}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00077}00077\ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00078}00078\ \ \ TIM\_HandleTypeDef\ \ \ \ \ \ \ htim;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00079}00079\ \ \ TIM\_ClockConfigTypeDef\ \ sClockSourceConfig;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00080}00080\ \ \ TIM\_SlaveConfigTypeDef\ \ sSlaveConfig;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00081}00081\ \ \ TIM\_MasterConfigTypeDef\ sMasterConfig;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00082}00082\ \ \ TIM\_BreakDeadTimeConfigTypeDef\ sBreakDeadTimeConfig;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00083}00083\ \ \ TIM\_ITModeTypeDef\ \ \ \ \ \ \ sTimMode;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00084}00084\ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00085}00085\ \ \ TIM\_MHzTickBaseTypeDef\ \ sTickBaseUS;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00086}00086\ \ \ uint8\_t\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ sTickBasePrescaler;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00087}00087\ \ \ \textcolor{keywordtype}{float}\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ sTimAHBFreqMHz;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00088}00088\ \ \ \textcolor{keywordtype}{float}\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ sTimFreqHz;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00089}00089\ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00090}00090\ \}\mbox{\hyperlink{struct_t_i_m___settings_type_def}{TIM\_SettingsTypeDef}};}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00091}00091\ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00092}00092\ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00093}\mbox{\hyperlink{struct_t_i_m___encoder_type_def}{00093}}\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }\textcolor{comment}{//\ struct\ with\ variables\ for\ encoder}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00094}00094\ \{}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00095}00095\ \ \ int16\_t\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Encoder\_Diff;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00096}00096\ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00097}00097\ \ \ TIM\_HandleTypeDef\ \ \ \ \ \ \ *htim;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00098}00098\ \ \ TIM\_Encoder\_InitTypeDef\ sConfig;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00099}00099\ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00100}00100\ \ \ GPIO\_TypeDef\ \ \ \ \ \ \ \ \ \ \ \ *GPIOx;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00101}00101\ \ \ uint32\_t\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ GPIO\_PIN\_TI1;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00102}00102\ \ \ uint32\_t\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ GPIO\_PIN\_TI2;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00103}00103\ \ \ uint32\_t\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ GPIO\_PIN\_SW;}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00104}00104\ \}\mbox{\hyperlink{struct_t_i_m___encoder_type_def}{TIM\_EncoderTypeDef}};\textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00105}00105\ \textcolor{comment}{///////////////////////-\/-\/-\/STRUCTURES\ \&\ ENUMS-\/-\/-\///////////////////////}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00106}00106\ \textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00107}00107\ \textcolor{comment}{/////////////////////////////////////////////////////////////////////}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00108}00108\ \textcolor{comment}{///////////////////////////-\/-\/-\/FUNCTIONS-\/-\/-\////////////////////////////}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00109}00109\ \textcolor{comment}{/*\ Initialize\ TIM\ with\ TIM\_SettingsTypeDef\ structure\ */}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00110}00110\ HAL\_StatusTypeDef\ TIM\_Base\_Init(\mbox{\hyperlink{struct_t_i_m___settings_type_def}{TIM\_SettingsTypeDef}}*\ stim);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00111}00111\ \textcolor{comment}{/*\ Initialize\ PWM\ Channel\ and\ GPIO\ for\ output\ */}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00112}00112\ HAL\_StatusTypeDef\ TIM\_Output\_PWM\_Init(TIM\_HandleTypeDef\ *htim,\ TIM\_OC\_InitTypeDef\ *sConfigOC,\ uint32\_t\ TIM\_CHANNEL,\ GPIO\_TypeDef\ *GPIOx,\ uint32\_t\ PWM\_PIN);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00113}00113\ \textcolor{comment}{/*\ Initialize\ TIM\ Encoder\ functional\ */}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00114}00114\ HAL\_StatusTypeDef\ TIM\_Encoder\_Init(\mbox{\hyperlink{struct_t_i_m___encoder_type_def}{TIM\_EncoderTypeDef}}\ *henc1,\ TIM\_HandleTypeDef\ *htim);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00115}00115\ \textcolor{comment}{/*\ Initialize\ OC\ Comparator\ */}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00116}00116\ HAL\_StatusTypeDef\ TIM\_OC\_Comparator\_Init(TIM\_HandleTypeDef\ *htim,\ uint32\_t\ TIM\_CHANNEL);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00117}00117\ \textcolor{comment}{/*\ Start\ delay\ via\ TIM\ */}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00118}00118\ HAL\_StatusTypeDef\ TIM\_Delay\_Start(TIM\_HandleTypeDef\ *htim);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00119}00119\ \textcolor{comment}{/*\ Delay\ via\ TIM\ */}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00120}00120\ HAL\_StatusTypeDef\ TIM\_Delay(TIM\_HandleTypeDef\ *htim,\ uint16\_t\ delay);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00121}00121\ \textcolor{comment}{/*\ Wait\ Delay\ via\ TIM\ without\ blocking\ app\ */}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00122}00122\ HAL\_StatusTypeDef\ TIM\_Delay\_NonBlocking(TIM\_HandleTypeDef\ *htim,\ uint16\_t\ delay);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00123}00123\ \textcolor{comment}{/*\ Initialize\ TIMs\ clock\ and\ interrupt\ */}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00124}00124\ \textcolor{keywordtype}{void}\ TIM\_Base\_MspInit(TIM\_HandleTypeDef*\ htim,\ TIM\_ITModeTypeDef\ it\_mode);}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00125}00125\ \textcolor{comment}{/*\ DeInitialize\ TIMs\ clock\ and\ interrupt\ */}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00126}00126\ \textcolor{keywordtype}{void}\ TIM\_Base\_MspDeInit(TIM\_HandleTypeDef*\ htim);\textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00127}00127\ \textcolor{comment}{///////////////////////////-\/-\/-\/FUNCTIONS-\/-\/-\////////////////////////////}}
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00128}00128\ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00129}00129\ }
|
||
\DoxyCodeLine{\Hypertarget{____general__tim_8h_source_l00130}00130\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ \_\_TIM\_GENERAL\_H\_}}
|
||
|
||
\end{DoxyCode}
|