\doxysection{general\+\_\+tim.\+h}
\hypertarget{general__tim_8h_source}{}\label{general__tim_8h_source}\index{E:/.WORK/STM32/STM32\_ExtendedLibs/STM32\_General/Inc/general\_tim.h@{E:/.WORK/STM32/STM32\_ExtendedLibs/STM32\_General/Inc/general\_tim.h}}
\mbox{\hyperlink{general__tim_8h}{Go to the documentation of this file.}}
\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{comment}{*\ @defgroup\ MY\_LIBS\_TIM\ \ \ \ \ \ TIM\ Tools}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00007}00007\ \textcolor{comment}{*\ @ingroup\ \ MYLIBS\_PERIPHERAL}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00008}00008\ \textcolor{comment}{*\ @brief\ \ \ \ Функции\ и\ макросы\ для\ удобной\ работы\ с\ TIM.}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00009}00009\ \textcolor{comment}{*\ @details}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00010}00010\ \textcolor{comment}{Модуль\ предоставляет\ универсальные\ инструменты\ для\ работы\ с\ TIM:}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00011}00011\ \textcolor{comment}{\ \ -\/\ @ref\ \ MYLIBS\_TIM\_GENERAL\ \ —\ базовая\ инициализация\ таймеров\ и\ прерываний.}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00012}00012\ \textcolor{comment}{\ \ -\/\ @ref\ \ MYLIBS\_TIM\_DELAY\ \ \ \ —\ функции\ задержки\ через\ таймеры\ (blocking\ и\ non-\/blocking).}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00013}00013\ \textcolor{comment}{\ \ -\/\ @ref\ \ MYLIBS\_TIM\_OC\ \ \ \ \ \ \ —\ настройка\ каналов\ Output\ Compare\ и\ PWM.}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00014}00014\ \textcolor{comment}{\ \ -\/\ @ref\ \ MYLIBS\_TIM\_ENCODER\ \ —\ работа\ с\ энкодерами,\ чтение\ положения\ и\ кнопки.}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00015}00015\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00016}00016\ \textcolor{comment}{*\ \ @note\ Требуется\ подключение\ модуля\ TIM\ в\ библиотеке\ HAL\ и\ GPIO\ (@ref\ MY\_LIBS\_GPIO)\ из\ MyLibs}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00017}00017\ \textcolor{comment}{@code\ }}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00018}00018\ \textcolor{comment}{\#define\ HAL\_TIM\_MODULE\_ENABLED}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00019}00019\ \textcolor{comment}{@endcode}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00020}00020\ \textcolor{comment}{*************************************************************************/}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00021}00021\ \textcolor{preprocessor}{\#ifndef\ \_\_TIM\_GENERAL\_H\_}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00022}00022\ \textcolor{preprocessor}{\#define\ \_\_TIM\_GENERAL\_H\_}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00023}00023\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00024}00024\ \textcolor{comment}{/////////////////////////////////////////////////////////////////////}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00025}00025\ \textcolor{comment}{/////////////////////////-\/-\/-\/USER\ SETTINGS-\/-\/-\//////////////////////////}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00026}00026\ \textcolor{comment}{/**\ }}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00027}00027\ \textcolor{comment}{\ \ *\ @addtogroup\ TIM\_INIT\ Init\ defines}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00028}00028\ \textcolor{comment}{\ \ *\ @ingroup\ \ \ \ MYLIBS\_TIM\_GENERAL}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00029}00029\ \textcolor{comment}{\ \ *\ @brief\ \ \ \ \ \ Настройка\ таймеров}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00030}00030\ \textcolor{comment}{\ \ *\ @\{}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00031}00031\ \textcolor{comment}{\ \ */}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00032}00032\ \textcolor{preprocessor}{\#define\ HAL\_TIM\_MODULE\_ENABLED}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00033}00033\ }
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00034}\mbox{\hyperlink{group___t_i_m___i_n_i_t_ga54a98c21365e0bc45b81555d2b101f2b}{00034}}\ \textcolor{preprocessor}{\#define\ USE\_TIM1\ \ \ \ }\textcolor{comment}{///<\ Включить\ TIM1\ в\ @ref\ TIM\_Base\_MspInit}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00035}\mbox{\hyperlink{group___t_i_m___i_n_i_t_ga72535a44955b43cbcd56e25039ab32eb}{00035}}\ \textcolor{preprocessor}{\#define\ USE\_TIM2\ \ \ \ }\textcolor{comment}{///<\ Включить\ TIM2\ в\ @ref\ TIM\_Base\_MspInit}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00036}\mbox{\hyperlink{group___t_i_m___i_n_i_t_ga5b5685a43273b6e37242a4aba3ee0617}{00036}}\ \textcolor{preprocessor}{\#define\ USE\_TIM3\ \ \ \ }\textcolor{comment}{///<\ Включить\ TIM3\ в\ @ref\ TIM\_Base\_MspInit}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00037}\mbox{\hyperlink{group___t_i_m___i_n_i_t_ga1493b39c9214501180b81b4c892f9be0}{00037}}\ \textcolor{preprocessor}{\#define\ USE\_TIM4\ \ \ \ }\textcolor{comment}{///<\ Включить\ TIM4\ в\ @ref\ TIM\_Base\_MspInit}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00038}\mbox{\hyperlink{group___t_i_m___i_n_i_t_ga252f4fba93fc265110e83760e0590af3}{00038}}\ \textcolor{preprocessor}{\#define\ USE\_TIM5\ \ \ \ }\textcolor{comment}{///<\ Включить\ TIM5\ в\ @ref\ TIM\_Base\_MspInit}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00039}\mbox{\hyperlink{group___t_i_m___i_n_i_t_ga8fe31b98160627d19038222910be3f46}{00039}}\ \textcolor{preprocessor}{\#define\ USE\_TIM6\ \ \ \ }\textcolor{comment}{///<\ Включить\ TIM6\ в\ @ref\ TIM\_Base\_MspInit}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00040}\mbox{\hyperlink{group___t_i_m___i_n_i_t_ga7cdc54cc8cbbb6e9f60001f1e3e6ec67}{00040}}\ \textcolor{preprocessor}{\#define\ USE\_TIM7\ \ \ \ }\textcolor{comment}{///<\ Включить\ TIM7\ в\ @ref\ TIM\_Base\_MspInit}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00041}\mbox{\hyperlink{group___t_i_m___i_n_i_t_ga28ba33d7c6bf22821dafa5bcee4854be}{00041}}\ \textcolor{preprocessor}{\#define\ USE\_TIM8\ \ \ \ }\textcolor{comment}{///<\ Включить\ TIM8\ в\ @ref\ TIM\_Base\_MspInit}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00042}\mbox{\hyperlink{group___t_i_m___i_n_i_t_gaac627c0e98c9594cc41b1b46eb39e44a}{00042}}\ \textcolor{preprocessor}{\#define\ USE\_TIM9\ \ \ \ }\textcolor{comment}{///<\ Включить\ TIM9\ в\ @ref\ TIM\_Base\_MspInit}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00043}\mbox{\hyperlink{group___t_i_m___i_n_i_t_ga98c0691052d1da2c4053dd3586ff7ce9}{00043}}\ \textcolor{preprocessor}{\#define\ USE\_TIM10\ \ \ }\textcolor{comment}{///<\ Включить\ TIM10\ в\ @ref\ TIM\_Base\_MspInit}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00044}\mbox{\hyperlink{group___t_i_m___i_n_i_t_ga176c97f06ebcf14e06e5c5bdbfac44c2}{00044}}\ \textcolor{preprocessor}{\#define\ USE\_TIM11\ \ \ }\textcolor{comment}{///<\ Включить\ TIM11\ в\ @ref\ TIM\_Base\_MspInit}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00045}\mbox{\hyperlink{group___t_i_m___i_n_i_t_ga4e2b0e6cdf9eed74581b575c3fd9516b}{00045}}\ \textcolor{preprocessor}{\#define\ USE\_TIM12\ \ \ }\textcolor{comment}{///<\ Включить\ TIM12\ в\ @ref\ TIM\_Base\_MspInit}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00046}\mbox{\hyperlink{group___t_i_m___i_n_i_t_gaf48ef87650517652ddec039a189507ac}{00046}}\ \textcolor{preprocessor}{\#define\ USE\_TIM13\ \ \ }\textcolor{comment}{///<\ Включить\ TIM13\ в\ @ref\ TIM\_Base\_MspInit}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00047}\mbox{\hyperlink{group___t_i_m___i_n_i_t_ga9ae40be31d5271abe3e49f896d916d5c}{00047}}\ \textcolor{preprocessor}{\#define\ USE\_TIM14\ \ \ }\textcolor{comment}{///<\ Включить\ TIM14\ в\ @ref\ TIM\_Base\_MspInit}\textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00048}00048\ \textcolor{comment}{/**\ TIM\_INIT}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00049}00049\ \textcolor{comment}{\ \ *\ @\}}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00050}00050\ \textcolor{comment}{\ \ */}\textcolor{preprocessor}{}\textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00051}00051\ \textcolor{comment}{/////////////////////////-\/-\/-\/USER\ SETTINGS-\/-\/-\//////////////////////////}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00052}00052\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{mylibs__defs_8h}{mylibs\_defs.h}}"{}}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00053}00053\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{general__gpio_8h}{general\_gpio.h}}"{}}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00054}00054\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00055}00055\ \textcolor{comment}{/////////////////////////////////////////////////////////////////////}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00056}00056\ \textcolor{comment}{////////////////////////////-\/-\/-\/DEFINES-\/-\/-\/////////////////////////////}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00057}00057\ \textcolor{preprocessor}{\#define\ TIM\_IT\_CONF\_Pos\ \ \ \ \ \ \ \ \ \ \ 0}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00058}00058\ \textcolor{comment}{//\#define\ TIM\_PWM\_CONF\_Pos\ \ \ \ \ \ \ \ \ \ 1}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00059}00059\ \textcolor{comment}{//\#define\ TIM\_CLCK\_SRC\_CONF\_Pos\ \ \ \ \ 2}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00060}00060\ \textcolor{comment}{//\#define\ TIM\_SLAVE\_CONF\_Pos\ \ \ \ \ \ \ \ 3}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00061}00061\ \textcolor{comment}{//\#define\ TIM\_MASTER\_CONF\_Pos\ \ \ \ \ \ \ 4}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00062}00062\ \textcolor{comment}{//\#define\ TIM\_BDTR\_CONF\_Pos\ \ \ \ \ \ \ \ \ 5}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00063}00063\ }
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00064}00064\ \textcolor{preprocessor}{\#define\ TIM\_IT\_CONF\ \ \ (1<<(TIM\_IT\_CONF\_Pos))}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00065}00065\ \textcolor{comment}{//\#define\ TIM\_PWM\_CONF\ \ \ \ \ \ (1<<(TIM\_PWM\_Pos))}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00066}00066\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00067}00067\ \textcolor{comment}{////////////////////////////-\/-\/-\/DEFINES-\/-\/-\/////////////////////////////]}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00068}00068\ }
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00069}00069\ }
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00070}00070\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00071}00071\ \textcolor{comment}{/////////////////////////////////////////////////////////////////////}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00072}00072\ \textcolor{comment}{///////////////////////-\/-\/-\/STRUCTURES\ \&\ ENUMS-\/-\/-\///////////////////////}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00073}00073\ \textcolor{comment}{/**}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00074}00074\ \textcolor{comment}{\ \ *\ @brief\ Режим\ прерываний\ таймера}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00075}00075\ \textcolor{comment}{\ \ *\ @ingroup\ \ MYLIBS\_TIM\_GENERAL}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00076}00076\ \textcolor{comment}{\ \ */}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00077}\mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___g_e_n_e_r_a_l_gaeb611874216a4661fb83366b99b9e787}{00077}}\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{enum}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00078}00078\ \{}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00079}\mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___g_e_n_e_r_a_l_ggaeb611874216a4661fb83366b99b9e787ab0869828a4dfd62eaa44868ca27835f8}{00079}}\ \ \ \mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___g_e_n_e_r_a_l_ggaeb611874216a4661fb83366b99b9e787ab0869828a4dfd62eaa44868ca27835f8}{TIM\_DEFAULT}}\ =\ \ \ \ \ \ \ \ \ 0,\ \ \ \ \ \ \ \ \ \ \ \ \textcolor{comment}{///<\ Прерываний\ отключены}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00080}\mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___g_e_n_e_r_a_l_ggaeb611874216a4661fb83366b99b9e787a89ecf1ef6d45ead2efcb7dd30396114c}{00080}}\ \ \ \mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___g_e_n_e_r_a_l_ggaeb611874216a4661fb83366b99b9e787a89ecf1ef6d45ead2efcb7dd30396114c}{TIM\_IT\_MODE}}\ =\ \ \ \ \ \ \ \ \ TIM\_IT\_CONF,\ \ \textcolor{comment}{///<\ Прерываний\ включены}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00081}00081\ \textcolor{comment}{//\ \ TIM\_PWM\_MODE\ =\ \ \ \ \ \ \ \ TIM\_PWM\_ENABLE,}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00082}00082\ \textcolor{comment}{//\ \ TIM\_PWM\_IT\_MODE\ =\ \ \ \ \ TIM\_PWM\_ENABLE\ |\ TIM\_IT\_CONF,}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00083}00083\ \}\mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___g_e_n_e_r_a_l_gaeb611874216a4661fb83366b99b9e787}{TIM\_ITModeTypeDef}};}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00084}00084\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00085}00085\ \textcolor{comment}{/**}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00086}00086\ \textcolor{comment}{\ \ *\ @brief\ Длительность\ тика\ таймера\ (частота\ тактирования\ таймера)}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00087}00087\ \textcolor{comment}{\ \ *\ @ingroup\ \ MYLIBS\_TIM\_GENERAL}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00088}00088\ \textcolor{comment}{\ \ *\ @details\ \ enum\ дает\ базовые\ длительности,\ но\ можно\ выставить\ другие}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00089}00089\ \textcolor{comment}{\ \ *\ \ \ \ \ \ \ \ \ \ \ (напр\ 500\ -\/\ 0.5\ мс)}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00090}00090\ \textcolor{comment}{\ \ */}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00091}\mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___g_e_n_e_r_a_l_gaa0a51c870325217ac099881f09dd0800}{00091}}\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{enum}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00092}00092\ \{}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00093}\mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___g_e_n_e_r_a_l_ggaa0a51c870325217ac099881f09dd0800ae838122c0e83bc57ad31b546bf2f00e5}{00093}}\ \ \ \mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___g_e_n_e_r_a_l_ggaa0a51c870325217ac099881f09dd0800ae838122c0e83bc57ad31b546bf2f00e5}{TIM\_Base\_Disable}}\ =\ \ \ \ \ \ 0,\ \ \ \ \ \ \textcolor{comment}{///<\ Таймер\ отключен}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00094}\mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___g_e_n_e_r_a_l_ggaa0a51c870325217ac099881f09dd0800a63df3123d0ddc592b189ed1594456ea2}{00094}}\ \ \ \mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___g_e_n_e_r_a_l_ggaa0a51c870325217ac099881f09dd0800a63df3123d0ddc592b189ed1594456ea2}{TIM\_TickBase\_1US}}\ =\ \ \ \ \ \ 1,\ \ \ \ \ \ \textcolor{comment}{///<\ Таймер\ тактируется\ с\ частотой\ 1\ \ \ \ МГц}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00095}\mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___g_e_n_e_r_a_l_ggaa0a51c870325217ac099881f09dd0800a060b01e890891fd17c8f95b55a94139f}{00095}}\ \ \ \mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___g_e_n_e_r_a_l_ggaa0a51c870325217ac099881f09dd0800a060b01e890891fd17c8f95b55a94139f}{TIM\_TickBase\_10US}}\ =\ \ \ \ \ 10,\ \ \ \ \ \textcolor{comment}{///<\ Таймер\ тактируется\ с\ частотой\ 100\ \ кГц}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00096}\mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___g_e_n_e_r_a_l_ggaa0a51c870325217ac099881f09dd0800a096ef0ab67788487f69d8877c6d89b30}{00096}}\ \ \ \mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___g_e_n_e_r_a_l_ggaa0a51c870325217ac099881f09dd0800a096ef0ab67788487f69d8877c6d89b30}{TIM\_TickBase\_100US}}\ =\ \ \ \ 100,\ \ \ \ \textcolor{comment}{///<\ Таймер\ тактируется\ с\ частотой\ 10\ \ \ кГц}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00097}\mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___g_e_n_e_r_a_l_ggaa0a51c870325217ac099881f09dd0800a6a66c5ed1d966c9e30f0219b664d2b25}{00097}}\ \ \ \mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___g_e_n_e_r_a_l_ggaa0a51c870325217ac099881f09dd0800a6a66c5ed1d966c9e30f0219b664d2b25}{TIM\_TickBase\_1MS}}\ =\ \ \ \ \ \ 1000,\ \ \ \textcolor{comment}{///<\ Таймер\ тактируется\ с\ частотой\ 1\ \ \ \ кГц}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00098}\mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___g_e_n_e_r_a_l_ggaa0a51c870325217ac099881f09dd0800a7421a08abd119e71aa99eea5ab5d6daa}{00098}}\ \ \ \mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___g_e_n_e_r_a_l_ggaa0a51c870325217ac099881f09dd0800a7421a08abd119e71aa99eea5ab5d6daa}{TIM\_TickBase\_10MS}}\ =\ \ \ \ \ 10000,\ \ \textcolor{comment}{///<\ Таймер\ тактируется\ с\ частотой\ 100\ \ Гц}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00099}\mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___g_e_n_e_r_a_l_ggaa0a51c870325217ac099881f09dd0800a18527a2d781eb4365aecd9a3184fc1da}{00099}}\ \ \ \mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___g_e_n_e_r_a_l_ggaa0a51c870325217ac099881f09dd0800a18527a2d781eb4365aecd9a3184fc1da}{TIM\_TickBase\_100MS}}\ =\ \ \ \ 100000,\ \textcolor{comment}{///<\ Таймер\ тактируется\ с\ частотой\ 10\ \ \ Гц}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00100}00100\ \}\mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___g_e_n_e_r_a_l_gaa0a51c870325217ac099881f09dd0800}{TIM\_MHzTickBaseTypeDef}};}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00101}00101\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00102}00102\ \textcolor{comment}{/**}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00103}00103\ \textcolor{comment}{\ \ *\ @brief\ Структура\ инициализации\ таймера}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00104}00104\ \textcolor{comment}{\ \ *\ @ingroup\ \ MYLIBS\_TIM\_GENERAL}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00105}00105\ \textcolor{comment}{\ \ *\ @details\ \ }}
\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}{\ \ *\ }}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00109}00109\ \textcolor{comment}{\ \ *\ Также\ высокоуровневые\ настройки\ частоты\ работы\ таймера.\ }}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00110}00110\ \textcolor{comment}{\ \ *\ Если\ какая-\/либо\ высокоуровневая\ настройка\ не\ задана,\ то\ }}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00111}00111\ \textcolor{comment}{\ \ *\ по\ возможности\ берется\ низкоуровневая\ настройка\ из\ структур}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00112}00112\ \textcolor{comment}{\ \ */}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00113}\mbox{\hyperlink{struct_t_i_m___settings_type_def}{00113}}\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }\textcolor{comment}{//\ struct\ with\ settings\ for\ custom\ function}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00114}00114\ \{}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00115}\mbox{\hyperlink{struct_t_i_m___settings_type_def_ada49efdbd35a8e442c3cff630d42f34c}{00115}}\ \ \ TIM\_HandleTypeDef\ \ \ \ \ \ \ \mbox{\hyperlink{struct_t_i_m___settings_type_def_ada49efdbd35a8e442c3cff630d42f34c}{htim}};\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{comment}{///<\ HAL\ handle\ таймера}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00116}\mbox{\hyperlink{struct_t_i_m___settings_type_def_a3805f627567798c3cd1d79a0da42bea0}{00116}}\ \ \ TIM\_ClockConfigTypeDef\ \ \mbox{\hyperlink{struct_t_i_m___settings_type_def_a3805f627567798c3cd1d79a0da42bea0}{sClockSourceConfig}};\ \ \ \ \ \ \ \ \ \ \ \textcolor{comment}{///<\ Настройки\ тактирования\ таймера}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00117}\mbox{\hyperlink{struct_t_i_m___settings_type_def_a9694cf0910a69d48ff94f8aeac106969}{00117}}\ \ \ TIM\_SlaveConfigTypeDef\ \ \mbox{\hyperlink{struct_t_i_m___settings_type_def_a9694cf0910a69d48ff94f8aeac106969}{sSlaveConfig}};\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{comment}{///<\ Настройки\ слейв\ режима\ таймера}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00118}\mbox{\hyperlink{struct_t_i_m___settings_type_def_a2d9d277dd395424b964445ec1bc65b21}{00118}}\ \ \ TIM\_MasterConfigTypeDef\ \mbox{\hyperlink{struct_t_i_m___settings_type_def_a2d9d277dd395424b964445ec1bc65b21}{sMasterConfig}};\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{comment}{///<\ Настройки\ мастер\ режима\ таймера}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00119}\mbox{\hyperlink{struct_t_i_m___settings_type_def_a961f19f0e1672715c27bc94d7871dbb7}{00119}}\ \ \ TIM\_BreakDeadTimeConfigTypeDef\ \mbox{\hyperlink{struct_t_i_m___settings_type_def_a961f19f0e1672715c27bc94d7871dbb7}{sBreakDeadTimeConfig}};\ \ \textcolor{comment}{///<\ Настройки\ дедтаймов\ таймера}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00120}00120\ }
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00121}\mbox{\hyperlink{struct_t_i_m___settings_type_def_ab90e370c3edda88e76583293c250d2b0}{00121}}\ \ \ \mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___g_e_n_e_r_a_l_gaeb611874216a4661fb83366b99b9e787}{TIM\_ITModeTypeDef}}\ \ \ \ \ \ \ \mbox{\hyperlink{struct_t_i_m___settings_type_def_ab90e370c3edda88e76583293c250d2b0}{sTimMode}};\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{comment}{///<\ Настройки\ прерывания\ таймера\ \ }}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00122}\mbox{\hyperlink{struct_t_i_m___settings_type_def_a58da1b4c0f6d12d7d9fb2f170b9b9e6e}{00122}}\ \ \ \mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___g_e_n_e_r_a_l_gaa0a51c870325217ac099881f09dd0800}{TIM\_MHzTickBaseTypeDef}}\ \ \mbox{\hyperlink{struct_t_i_m___settings_type_def_a58da1b4c0f6d12d7d9fb2f170b9b9e6e}{sTickBaseUS}};\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{comment}{///<\ Длительность\ одного\ тика\ \ }}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00123}\mbox{\hyperlink{struct_t_i_m___settings_type_def_a11151fe125960cb8e61328ffd06b7718}{00123}}\ \ \ uint8\_t\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{struct_t_i_m___settings_type_def_a11151fe125960cb8e61328ffd06b7718}{sTickBasePrescaler}};\ \ \ \ \ \ \ \ \ \ \ \textcolor{comment}{///<\ Дополнительный\ делитель,\ для\ удобного\ деления\ @ref\ sTickBaseUS}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00124}\mbox{\hyperlink{struct_t_i_m___settings_type_def_a7073358fd3a722687eb85238ab570014}{00124}}\ \ \ \textcolor{keywordtype}{float}\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{struct_t_i_m___settings_type_def_a7073358fd3a722687eb85238ab570014}{sTimAHBFreqMHz}};\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{comment}{///<\ Частота\ шины\ тактирования\ таймера}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00125}\mbox{\hyperlink{struct_t_i_m___settings_type_def_af6057ff3f60f5e01b41d4a347b79a5e4}{00125}}\ \ \ \textcolor{keywordtype}{float}\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{struct_t_i_m___settings_type_def_af6057ff3f60f5e01b41d4a347b79a5e4}{sTimFreqHz}};\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{comment}{///<\ Желаемая\ частота\ таймера}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00126}00126\ \ \ }
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00127}00127\ \}\mbox{\hyperlink{struct_t_i_m___settings_type_def}{TIM\_SettingsTypeDef}};}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00128}00128\ }
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00129}00129\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00130}00130\ \textcolor{comment}{/**}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00131}00131\ \textcolor{comment}{\ \ *\ @brief\ Структура\ инициализации\ енкодера}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00132}00132\ \textcolor{comment}{\ \ *\ @ingroup\ \ MYLIBS\_TIM\_ENCODER}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00133}00133\ \textcolor{comment}{\ \ *\ @details\ \ }}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00134}00134\ \textcolor{comment}{\ \ *\ Содержит\ все\ базовые\ структуры,\ которые\ нужны\ для\ инициализации\ таймера.}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00135}00135\ \textcolor{comment}{\ \ *\ Если\ структуры\ настроек\ не\ заданы,\ то\ они\ заполнятся\ сами\ дефолтными\ параметрами\ \ }}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00136}00136\ \textcolor{comment}{\ \ *\ }}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00137}00137\ \textcolor{comment}{\ \ *\ Также\ высокоуровневые\ настройки\ частоты\ работы\ таймера.\ }}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00138}00138\ \textcolor{comment}{\ \ *\ Если\ какая-\/либо\ высокоуровневая\ настройка\ не\ задана,\ то\ }}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00139}00139\ \textcolor{comment}{\ \ *\ по\ возможности\ берется\ низкоуровневая\ настройка\ из\ структур}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00140}00140\ \textcolor{comment}{\ \ */}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00141}\mbox{\hyperlink{struct_t_i_m___encoder_type_def}{00141}}\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }\textcolor{comment}{//\ struct\ with\ variables\ for\ encoder}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00142}00142\ \{}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00143}\mbox{\hyperlink{struct_t_i_m___encoder_type_def_a6f769f027b760a4b496e2b2b77bf54a3}{00143}}\ \ \ int16\_t\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{struct_t_i_m___encoder_type_def_a6f769f027b760a4b496e2b2b77bf54a3}{Encoder\_Diff}};\ \ \ \textcolor{comment}{///<\ Считанная\ разница}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00144}\mbox{\hyperlink{struct_t_i_m___encoder_type_def_a0dacce3dde7df3122583869d96a372a2}{00144}}\ \ \ uint16\_t\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{struct_t_i_m___encoder_type_def_a0dacce3dde7df3122583869d96a372a2}{Encoder\_Shdw}};\ \ \ \textcolor{comment}{///<\ Последние\ считанные\ тики}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00145}00145\ \ \ }
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00146}\mbox{\hyperlink{struct_t_i_m___encoder_type_def_adc80bd5a90444c31d84157f35c59b95c}{00146}}\ \ \ TIM\_HandleTypeDef\ \ \ \ \ \ \ *\mbox{\hyperlink{struct_t_i_m___encoder_type_def_adc80bd5a90444c31d84157f35c59b95c}{htim}};\ \ \ \ \ \ \ \ \ \ \textcolor{comment}{///<\ Указатель\ на\ HAL\ handle\ таймера}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00147}\mbox{\hyperlink{struct_t_i_m___encoder_type_def_a021f0c585e9e62d68a4b09f630d8b6e5}{00147}}\ \ \ TIM\_Encoder\_InitTypeDef\ \mbox{\hyperlink{struct_t_i_m___encoder_type_def_a021f0c585e9e62d68a4b09f630d8b6e5}{sConfig}};\ \ \ \ \ \ \ \ \textcolor{comment}{///<\ Указатель\ на\ структуру\ настройки\ энкодера}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00148}00148\ \ \ }
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00149}\mbox{\hyperlink{struct_t_i_m___encoder_type_def_ad29873fc8cdc71462e6d8744621120e9}{00149}}\ \ \ GPIO\_TypeDef\ \ \ \ \ \ \ \ \ \ \ \ *\mbox{\hyperlink{struct_t_i_m___encoder_type_def_ad29873fc8cdc71462e6d8744621120e9}{GPIOx}};\ \ \ \ \ \ \ \ \ \textcolor{comment}{///<\ Порт,\ куда\ подключается\ энкодер}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00150}\mbox{\hyperlink{struct_t_i_m___encoder_type_def_a4fc05ef011205a6702cb3d006bab677e}{00150}}\ \ \ uint32\_t\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{struct_t_i_m___encoder_type_def_a4fc05ef011205a6702cb3d006bab677e}{GPIO\_PIN\_TI1}};\ \ \ \textcolor{comment}{///<\ Пин,\ куда\ подключается\ канал\ TI1}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00151}\mbox{\hyperlink{struct_t_i_m___encoder_type_def_a67ad037b92162546763fc9c425b5e3c5}{00151}}\ \ \ uint32\_t\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{struct_t_i_m___encoder_type_def_a67ad037b92162546763fc9c425b5e3c5}{GPIO\_PIN\_TI2}};\ \ \ \textcolor{comment}{///<\ Пин,\ куда\ подключается\ канал\ TI2}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00152}\mbox{\hyperlink{struct_t_i_m___encoder_type_def_a6973108a83d2a3ea4fc3e0e8a501af80}{00152}}\ \ \ uint32\_t\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{struct_t_i_m___encoder_type_def_a6973108a83d2a3ea4fc3e0e8a501af80}{GPIO\_PIN\_SW}};\ \ \ \ \textcolor{comment}{///<\ Пин,\ куда\ кнопка\ энкодера\ (если\ есть)}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00153}00153\ }
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00154}\mbox{\hyperlink{struct_t_i_m___encoder_type_def_a99295760ff8b27d1e6f1710f29383a45}{00154}}\ \ \ \mbox{\hyperlink{struct_g_p_i_o___switch_type_def}{GPIO\_SwitchTypeDef}}\ \ \ \ \ \ \mbox{\hyperlink{struct_t_i_m___encoder_type_def_a99295760ff8b27d1e6f1710f29383a45}{Sw}};\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{comment}{///<\ Структура\ кнопки}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00155}00155\ \ \ }
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00156}00156\ \}\mbox{\hyperlink{struct_t_i_m___encoder_type_def}{TIM\_EncoderTypeDef}};\textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00157}00157\ \textcolor{comment}{///////////////////////-\/-\/-\/STRUCTURES\ \&\ ENUMS-\/-\/-\///////////////////////}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00158}00158\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00159}00159\ \textcolor{comment}{/////////////////////////////////////////////////////////////////////}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00160}00160\ \textcolor{comment}{///////////////////////////-\/-\/-\/FUNCTIONS-\/-\/-\////////////////////////////}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00161}00161\ \textcolor{comment}{/**\ }}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00162}00162\ \textcolor{comment}{\ \ *\ @addtogroup\ MYLIBS\_TIM\_GENERAL\ \ General\ tools}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00163}00163\ \textcolor{comment}{\ \ *\ @ingroup\ \ \ \ MY\_LIBS\_TIM}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00164}00164\ \textcolor{comment}{\ \ *\ @brief\ \ \ \ \ \ Функции\ для\ базовой\ инициализации\ таймеров}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00165}00165\ \textcolor{comment}{\ \ *\ @par\ Пример\ использования:}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00166}00166\ \textcolor{comment}{\ \ \ \ @code}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00167}00167\ \textcolor{comment}{\ \ \ \ TIM\_SettingsTypeDef\ tim2Settings;}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00168}00168\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00169}00169\ \textcolor{comment}{\ \ \ \ void\ TIM2\_Init(void)}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00170}00170\ \textcolor{comment}{\ \ \ \ \{}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00171}00171\ \textcolor{comment}{\ \ \ \ \ \ \ \ //\ Настройка\ таймера\ TIM2\ на\ 1\ кГц\ с\ прерываниями\ с\ шагом\ таймера\ 10\ мкс}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00172}00172\ \textcolor{comment}{\ \ \ \ \ \ \ \ tim2Settings.htim.Instance\ =\ TIM2;}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00173}00173\ \textcolor{comment}{\ \ \ \ \ \ \ \ tim2Settings.sTimMode\ =\ TIM\_IT\_MODE;}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00174}00174\ \textcolor{comment}{\ \ \ \ \ \ \ \ tim2Settings.sTickBaseUS\ =\ TIM\_TickBase\_10US;}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00175}00175\ \textcolor{comment}{\ \ \ \ \ \ \ \ tim2Settings.sTickBasePrescaler\ =\ 1;}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00176}00176\ \textcolor{comment}{\ \ \ \ \ \ \ \ tim2Settings.sTimFreqHz\ =\ 1000;\ //\ 1\ кГц}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00177}00177\ \textcolor{comment}{\ \ \ \ \ \ \ \ tim2Settings.sTimAHBFreqMHz\ =\ 72000000;\ //\ Hz}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00178}00178\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00179}00179\ \textcolor{comment}{\ \ \ \ \ \ \ \ if(TIM\_Base\_Init(\&tim2Settings)\ !=\ HAL\_OK)}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00180}00180\ \textcolor{comment}{\ \ \ \ \ \ \ \ \{}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00181}00181\ \textcolor{comment}{\ \ \ \ \ \ \ \ \ \ \ \ Error\_Handler();}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00182}00182\ \textcolor{comment}{\ \ \ \ \ \ \ \ \}}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00183}00183\ \textcolor{comment}{\ \ \ \ \}}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00184}00184\ \textcolor{comment}{\ \ \ \ @endcode}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00185}00185\ \textcolor{comment}{\ \ *\ @\{}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00186}00186\ \textcolor{comment}{\ \ */}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00187}00187\ \textcolor{comment}{/*\ Initialize\ TIM\ with\ TIM\_SettingsTypeDef\ structure\ */}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00188}00188\ HAL\_StatusTypeDef\ \mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___g_e_n_e_r_a_l_ga7044214f24a9868ba7e1650b55e639ec}{TIM\_Base\_Init}}(\mbox{\hyperlink{struct_t_i_m___settings_type_def}{TIM\_SettingsTypeDef}}*\ stim);}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00189}00189\ \textcolor{comment}{/*\ Initialize\ TIMs\ clock\ and\ interrupt\ */}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00190}00190\ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___g_e_n_e_r_a_l_gaad47337be7ba2f6c0777c40d7278c931}{TIM\_Base\_MspInit}}(TIM\_HandleTypeDef*\ htim,\ \mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___g_e_n_e_r_a_l_gaeb611874216a4661fb83366b99b9e787}{TIM\_ITModeTypeDef}}\ it\_mode);}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00191}00191\ \textcolor{comment}{/*\ DeInitialize\ TIMs\ clock\ and\ interrupt\ */}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00192}00192\ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___g_e_n_e_r_a_l_ga879e3f1c919c02990736730275367115}{TIM\_Base\_MspDeInit}}(TIM\_HandleTypeDef*\ htim);\textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00193}00193\ \textcolor{comment}{/**\ MYLIBS\_TIM\_GENERAL}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00194}00194\ \textcolor{comment}{\ \ *\ @\}}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00195}00195\ \textcolor{comment}{\ \ */}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00196}00196\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00197}00197\ \textcolor{comment}{/**\ }}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00198}00198\ \textcolor{comment}{\ \ *\ @addtogroup\ MYLIBS\_TIM\_DELAY\ \ Delay\ tools}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00199}00199\ \textcolor{comment}{\ \ *\ @ingroup\ \ \ \ MY\_LIBS\_TIM}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00200}00200\ \textcolor{comment}{\ \ *\ @brief\ \ \ \ \ \ Функции\ для\ формирования\ задержек\ с\ помощью\ таймеров}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00201}00201\ \textcolor{comment}{\ \ *\ @par\ Пример\ использования:}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00202}00202\ \textcolor{comment}{\ \ \ \ @code}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00203}00203\ \textcolor{comment}{\ \ \ \ TIM\_HandleTypeDef\ htim2;}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00204}00204\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00205}00205\ \textcolor{comment}{\ \ \ \ //\ блокирующая\ задержка\ 500\ тиков\ таймера}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00206}00206\ \textcolor{comment}{\ \ \ \ LED\_ON();}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00207}00207\ \textcolor{comment}{\ \ \ \ TIM\_Delay(\&htim2,\ 500);}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00208}00208\ \textcolor{comment}{\ \ \ \ LED\_OFF();}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00209}00209\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00210}00210\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00211}00211\ \textcolor{comment}{\ \ \ \ while(1)}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00212}00212\ \textcolor{comment}{\ \ \ \ \{}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00213}00213\ \textcolor{comment}{\ \ \ \ \ \ //\ не\ блокирующая\ задержка\ 200\ тиков\ таймера}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00214}00214\ \textcolor{comment}{\ \ \ \ \ \ if(TIM\_Delay\_NonBlocking(\&htim2,\ 200)\ ==\ HAL\_OK)}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00215}00215\ \textcolor{comment}{\ \ \ \ \ \ \{}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00216}00216\ \textcolor{comment}{\ \ \ \ \ \ \ \ TIM\_Delay\_Start(\&htim2);}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00217}00217\ \textcolor{comment}{\ \ \ \ \ \ \ \ LED\_TOOGLE();}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00218}00218\ \textcolor{comment}{\ \ \ \ \ \ \}}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00219}00219\ \textcolor{comment}{\ \ \ \ \}}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00220}00220\ \textcolor{comment}{\ \ \ \ @endcode}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00221}00221\ \textcolor{comment}{\ \ *\ @\{}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00222}00222\ \textcolor{comment}{\ \ */}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00223}00223\ \textcolor{comment}{/*\ Start\ delay\ via\ TIM\ */}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00224}00224\ HAL\_StatusTypeDef\ \mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___d_e_l_a_y_ga4c0dfde4e15f677600605348b4e97834}{TIM\_Delay\_Start}}(TIM\_HandleTypeDef\ *htim);}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00225}00225\ \textcolor{comment}{/*\ Delay\ via\ TIM\ */}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00226}00226\ HAL\_StatusTypeDef\ \mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___d_e_l_a_y_ga88c552a133cb6e3015453cccab74c07e}{TIM\_Delay}}(TIM\_HandleTypeDef\ *htim,\ uint16\_t\ delay);}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00227}00227\ \textcolor{comment}{/*\ Wait\ Delay\ via\ TIM\ without\ blocking\ app\ */}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00228}00228\ HAL\_StatusTypeDef\ \mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___d_e_l_a_y_ga108637af414bff3373059273b815ce9b}{TIM\_Delay\_NonBlocking}}(TIM\_HandleTypeDef\ *htim,\ uint16\_t\ delay);\textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00229}00229\ \textcolor{comment}{/**\ MYLIBS\_TIM\_DELAY}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00230}00230\ \textcolor{comment}{\ \ *\ @\}}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00231}00231\ \textcolor{comment}{\ \ */}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00232}00232\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00233}00233\ \textcolor{comment}{/**\ }}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00234}00234\ \textcolor{comment}{\ \ *\ @addtogroup\ MYLIBS\_TIM\_OC\ PWM/OC\ Channels\ tools}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00235}00235\ \textcolor{comment}{\ \ *\ @ingroup\ \ \ \ MY\_LIBS\_TIM}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00236}00236\ \textcolor{comment}{\ \ *\ @brief\ \ \ \ \ \ Функции\ для\ инициализации\ базовых\ функций\ каналов\ таймера}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00237}00237\ \textcolor{comment}{\ \ *\ @par\ Пример\ использования:}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00238}00238\ \textcolor{comment}{\ \ \ \ @code}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00239}00239\ \textcolor{comment}{\ \ \ \ void\ PWM\_Channel\_Init\_Example(void)}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00240}00240\ \textcolor{comment}{\ \ \ \ \{}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00241}00241\ \textcolor{comment}{\ \ \ \ \ \ \ \ TIM\_HandleTypeDef\ htim3;}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00242}00242\ \textcolor{comment}{\ \ \ \ \ \ \ \ TIM\_OC\_InitTypeDef\ sConfigOC;}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00243}00243\ \textcolor{comment}{\ \ \ \ \ \ \ \ GPIO\_TypeDef\ *GPIOx\ =\ GPIOB;}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00244}00244\ \textcolor{comment}{\ \ \ \ \ \ \ \ uint32\_t\ PWM\_PIN\ =\ GPIO\_PIN\_0;}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00245}00245\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00246}00246\ \textcolor{comment}{\ \ \ \ \ \ \ \ //\ Настройка\ таймера\ и\ канала\ PWM}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00247}00247\ \textcolor{comment}{\ \ \ \ \ \ \ \ TIM\_Output\_PWM\_Init(\&htim3,\ \&sConfigOC,\ TIM\_CHANNEL\_1,\ GPIOx,\ PWM\_PIN);}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00248}00248\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00249}00249\ \textcolor{comment}{\ \ \ \ \ \ \ \ //\ Настройка\ компаратора\ OC}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00250}00250\ \textcolor{comment}{\ \ \ \ \ \ \ \ TIM\_OC\_Comparator\_Init(\&htim3,\ TIM\_CHANNEL\_1);}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00251}00251\ \textcolor{comment}{\ \ \ \ \}}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00252}00252\ \textcolor{comment}{\ \ \ \ @endcode}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00253}00253\ \textcolor{comment}{\ \ *\ @\{}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00254}00254\ \textcolor{comment}{\ \ */}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00255}00255\ \textcolor{comment}{/*\ Initialize\ PWM\ Channel\ and\ GPIO\ for\ output\ */}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00256}00256\ HAL\_StatusTypeDef\ \mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___o_c_gadb2f465d89f609e035867e980c3a29c6}{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_l00257}00257\ \textcolor{comment}{/*\ Initialize\ OC\ Comparator\ */}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00258}00258\ HAL\_StatusTypeDef\ \mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___o_c_gae2608ca8023e9a0713af0b4fbfbc1889}{TIM\_OC\_Comparator\_Init}}(TIM\_HandleTypeDef\ *htim,\ uint32\_t\ TIM\_CHANNEL);\textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00259}00259\ \textcolor{comment}{/**\ MYLIBS\_TIM\_ENCODER}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00260}00260\ \textcolor{comment}{\ \ *\ @\}}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00261}00261\ \textcolor{comment}{\ \ */}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00262}00262\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00263}00263\ \textcolor{comment}{/**\ }}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00264}00264\ \textcolor{comment}{\ \ *\ @addtogroup\ MYLIBS\_TIM\_ENCODER\ Encoder\ tools}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00265}00265\ \textcolor{comment}{\ \ *\ @ingroup\ \ \ \ MY\_LIBS\_TIM}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00266}00266\ \textcolor{comment}{\ \ *\ @brief\ \ \ \ \ \ Функции\ для\ считывания\ энкодера}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00267}00267\ \textcolor{comment}{\ \ *\ @par\ Пример\ использования:}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00268}00268\ \textcolor{comment}{\ \ \ \ @code}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00269}00269\ \textcolor{comment}{\ \ \ \ TIM\_EncoderTypeDef\ henc1;}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00270}00270\ \textcolor{comment}{\ \ \ \ TIM\_HandleTypeDef\ htim4;}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00271}00271\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00272}00272\ \textcolor{comment}{\ \ \ \ //\ инициализация}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00273}00273\ \textcolor{comment}{\ \ \ \ henc1.htim\ =\ \&htim4;}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00274}00274\ \textcolor{comment}{\ \ \ \ henc1.GPIOx\ =\ GPIOA;}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00275}00275\ \textcolor{comment}{\ \ \ \ henc1.GPIO\_PIN\_TI1\ =\ GPIO\_PIN\_0;}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00276}00276\ \textcolor{comment}{\ \ \ \ henc1.GPIO\_PIN\_TI2\ =\ GPIO\_PIN\_1;}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00277}00277\ \textcolor{comment}{\ \ \ \ TIM\_Encoder\_Init(\&henc1,\ \&htim4);}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00278}00278\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00279}00279\ \textcolor{comment}{\ \ \ \ //\ считывание\ энкодера\ и\ кнопки}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00280}00280\ \textcolor{comment}{\ \ \ \ int16\_t\ delta\ =\ TIM\_Encoder\_Read(\&henc1);}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00281}00281\ \textcolor{comment}{\ \ \ \ setpoint\_tmp\ +=\ delta;}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00282}00282\ \textcolor{comment}{\ \ \ \ if(TIM\_Encoder\_ReadSwitch(\&henc1))}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00283}00283\ \textcolor{comment}{\ \ \ \ \{}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00284}00284\ \textcolor{comment}{\ \ \ \ \ \ setpoint\ =\ setpoint\_tmp;\ //\ подтвердить\ новое\ значение}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00285}00285\ \textcolor{comment}{\ \ \ \ \}}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00286}00286\ \textcolor{comment}{\ \ \ \ @endcode}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00287}00287\ \textcolor{comment}{\ \ *\ @\{}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00288}00288\ \textcolor{comment}{\ \ */}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00289}00289\ \textcolor{comment}{/*\ Initialize\ TIM\ Encoder\ functional\ */}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00290}00290\ HAL\_StatusTypeDef\ \mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___e_n_c_o_d_e_r_ga8d16c3b7e7c6decc54c5c3d1a8bf0fbc}{TIM\_Encoder\_Init}}(\mbox{\hyperlink{struct_t_i_m___encoder_type_def}{TIM\_EncoderTypeDef}}\ *henc1,\ TIM\_HandleTypeDef\ *htim);}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00291}00291\ \textcolor{comment}{/*\ Считать\ энкодер\ */}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00292}00292\ HAL\_StatusTypeDef\ \mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___e_n_c_o_d_e_r_gac3bc6525f88c275e47eb864e6d567501}{TIM\_Encoder\_Read}}(\mbox{\hyperlink{struct_t_i_m___encoder_type_def}{TIM\_EncoderTypeDef}}\ *henc);}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00293}00293\ \textcolor{comment}{/*\ Считать\ кнопку\ энкодера\ */}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00294}00294\ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___e_n_c_o_d_e_r_ga117b795017e9e3a357ddefe323412761}{TIM\_Encoder\_ReadSwitch}}(\mbox{\hyperlink{struct_t_i_m___encoder_type_def}{TIM\_EncoderTypeDef}}\ *henc);\textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00295}00295\ \textcolor{comment}{/**\ MYLIBS\_TIM\_ENCODER}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00296}00296\ \textcolor{comment}{\ \ *\ @\}}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00297}00297\ \textcolor{comment}{\ \ */}\textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00298}00298\ \textcolor{comment}{///////////////////////////-\/-\/-\/FUNCTIONS-\/-\/-\////////////////////////////}}
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00299}00299\ }
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00300}00300\ }
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00301}00301\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ \_\_TIM\_GENERAL\_H\_}}

\end{DoxyCode}
