Доработна документация в целом - добавелн main page - исправлены ошибки в шапках и коментах - добавлен граф инклюдов
231 lines
41 KiB
TeX
231 lines
41 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}}
|
||
\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}{*\ \ @note\ Требуется\ подключение\ модуля\ TIM\ в\ библиотеке\ HAL\ }}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00016}00016\ \textcolor{comment}{@code\ }}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00017}00017\ \textcolor{comment}{\#define\ HAL\_TIM\_MODULE\_ENABLED}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00018}00018\ \textcolor{comment}{@endcode}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00019}00019\ \textcolor{comment}{*************************************************************************/}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00020}00020\ \textcolor{preprocessor}{\#ifndef\ \_\_TIM\_GENERAL\_H\_}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00021}00021\ \textcolor{preprocessor}{\#define\ \_\_TIM\_GENERAL\_H\_}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00022}00022\ \textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00023}00023\ \textcolor{comment}{/////////////////////////////////////////////////////////////////////}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00024}00024\ \textcolor{comment}{/////////////////////////-\/-\/-\/USER\ SETTINGS-\/-\/-\//////////////////////////}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00025}00025\ \textcolor{comment}{/**\ }}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00026}00026\ \textcolor{comment}{\ \ *\ @addtogroup\ TIM\_INIT\ Init\ defines}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00027}00027\ \textcolor{comment}{\ \ *\ @ingroup\ \ \ \ MYLIBS\_TIM\_GENERAL}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00028}00028\ \textcolor{comment}{\ \ *\ @brief\ \ \ \ \ \ Настройка\ таймеров}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00029}00029\ \textcolor{comment}{\ \ *\ @\{}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00030}00030\ \textcolor{comment}{\ \ */}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00031}00031\ \textcolor{preprocessor}{\#define\ HAL\_TIM\_MODULE\_ENABLED}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00032}00032\ }
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00033}\mbox{\hyperlink{group___t_i_m___i_n_i_t_ga54a98c21365e0bc45b81555d2b101f2b}{00033}}\ \textcolor{preprocessor}{\#define\ USE\_TIM1\ \ \ \ }\textcolor{comment}{///<\ Включить\ TIM1\ в\ @ref\ TIM\_Base\_MspInit}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00034}\mbox{\hyperlink{group___t_i_m___i_n_i_t_ga72535a44955b43cbcd56e25039ab32eb}{00034}}\ \textcolor{preprocessor}{\#define\ USE\_TIM2\ \ \ \ }\textcolor{comment}{///<\ Включить\ TIM2\ в\ @ref\ TIM\_Base\_MspInit}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00035}\mbox{\hyperlink{group___t_i_m___i_n_i_t_ga5b5685a43273b6e37242a4aba3ee0617}{00035}}\ \textcolor{preprocessor}{\#define\ USE\_TIM3\ \ \ \ }\textcolor{comment}{///<\ Включить\ TIM3\ в\ @ref\ TIM\_Base\_MspInit}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00036}\mbox{\hyperlink{group___t_i_m___i_n_i_t_ga1493b39c9214501180b81b4c892f9be0}{00036}}\ \textcolor{preprocessor}{\#define\ USE\_TIM4\ \ \ \ }\textcolor{comment}{///<\ Включить\ TIM4\ в\ @ref\ TIM\_Base\_MspInit}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00037}\mbox{\hyperlink{group___t_i_m___i_n_i_t_ga252f4fba93fc265110e83760e0590af3}{00037}}\ \textcolor{preprocessor}{\#define\ USE\_TIM5\ \ \ \ }\textcolor{comment}{///<\ Включить\ TIM5\ в\ @ref\ TIM\_Base\_MspInit}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00038}\mbox{\hyperlink{group___t_i_m___i_n_i_t_ga8fe31b98160627d19038222910be3f46}{00038}}\ \textcolor{preprocessor}{\#define\ USE\_TIM6\ \ \ \ }\textcolor{comment}{///<\ Включить\ TIM6\ в\ @ref\ TIM\_Base\_MspInit}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00039}\mbox{\hyperlink{group___t_i_m___i_n_i_t_ga7cdc54cc8cbbb6e9f60001f1e3e6ec67}{00039}}\ \textcolor{preprocessor}{\#define\ USE\_TIM7\ \ \ \ }\textcolor{comment}{///<\ Включить\ TIM7\ в\ @ref\ TIM\_Base\_MspInit}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00040}\mbox{\hyperlink{group___t_i_m___i_n_i_t_ga28ba33d7c6bf22821dafa5bcee4854be}{00040}}\ \textcolor{preprocessor}{\#define\ USE\_TIM8\ \ \ \ }\textcolor{comment}{///<\ Включить\ TIM8\ в\ @ref\ TIM\_Base\_MspInit}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00041}\mbox{\hyperlink{group___t_i_m___i_n_i_t_gaac627c0e98c9594cc41b1b46eb39e44a}{00041}}\ \textcolor{preprocessor}{\#define\ USE\_TIM9\ \ \ \ }\textcolor{comment}{///<\ Включить\ TIM9\ в\ @ref\ TIM\_Base\_MspInit}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00042}\mbox{\hyperlink{group___t_i_m___i_n_i_t_ga98c0691052d1da2c4053dd3586ff7ce9}{00042}}\ \textcolor{preprocessor}{\#define\ USE\_TIM10\ \ \ }\textcolor{comment}{///<\ Включить\ TIM10\ в\ @ref\ TIM\_Base\_MspInit}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00043}\mbox{\hyperlink{group___t_i_m___i_n_i_t_ga176c97f06ebcf14e06e5c5bdbfac44c2}{00043}}\ \textcolor{preprocessor}{\#define\ USE\_TIM11\ \ \ }\textcolor{comment}{///<\ Включить\ TIM11\ в\ @ref\ TIM\_Base\_MspInit}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00044}\mbox{\hyperlink{group___t_i_m___i_n_i_t_ga4e2b0e6cdf9eed74581b575c3fd9516b}{00044}}\ \textcolor{preprocessor}{\#define\ USE\_TIM12\ \ \ }\textcolor{comment}{///<\ Включить\ TIM12\ в\ @ref\ TIM\_Base\_MspInit}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00045}\mbox{\hyperlink{group___t_i_m___i_n_i_t_gaf48ef87650517652ddec039a189507ac}{00045}}\ \textcolor{preprocessor}{\#define\ USE\_TIM13\ \ \ }\textcolor{comment}{///<\ Включить\ TIM13\ в\ @ref\ TIM\_Base\_MspInit}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00046}\mbox{\hyperlink{group___t_i_m___i_n_i_t_ga9ae40be31d5271abe3e49f896d916d5c}{00046}}\ \textcolor{preprocessor}{\#define\ USE\_TIM14\ \ \ }\textcolor{comment}{///<\ Включить\ TIM14\ в\ @ref\ TIM\_Base\_MspInit}\textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00047}00047\ \textcolor{comment}{/**\ TIM\_INIT}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00048}00048\ \textcolor{comment}{\ \ *\ @\}}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00049}00049\ \textcolor{comment}{\ \ */}\textcolor{preprocessor}{}\textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00050}00050\ \textcolor{comment}{/////////////////////////-\/-\/-\/USER\ SETTINGS-\/-\/-\//////////////////////////}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00051}00051\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{mylibs__defs_8h}{mylibs\_defs.h}}"{}}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00052}00052\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{general__gpio_8h}{general\_gpio.h}}"{}}}
|
||
\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}{////////////////////////////-\/-\/-\/DEFINES-\/-\/-\/////////////////////////////}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00056}00056\ \textcolor{preprocessor}{\#define\ TIM\_IT\_CONF\_Pos\ \ \ \ \ \ \ \ \ \ \ 0}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00057}00057\ \textcolor{comment}{//\#define\ TIM\_PWM\_CONF\_Pos\ \ \ \ \ \ \ \ \ \ 1}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00058}00058\ \textcolor{comment}{//\#define\ TIM\_CLCK\_SRC\_CONF\_Pos\ \ \ \ \ 2}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00059}00059\ \textcolor{comment}{//\#define\ TIM\_SLAVE\_CONF\_Pos\ \ \ \ \ \ \ \ 3}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00060}00060\ \textcolor{comment}{//\#define\ TIM\_MASTER\_CONF\_Pos\ \ \ \ \ \ \ 4}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00061}00061\ \textcolor{comment}{//\#define\ TIM\_BDTR\_CONF\_Pos\ \ \ \ \ \ \ \ \ 5}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00062}00062\ }
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00063}00063\ \textcolor{preprocessor}{\#define\ TIM\_IT\_CONF\ \ \ (1<<(TIM\_IT\_CONF\_Pos))}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00064}00064\ \textcolor{comment}{//\#define\ TIM\_PWM\_CONF\ \ \ \ \ \ (1<<(TIM\_PWM\_Pos))}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00065}00065\ \textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00066}00066\ \textcolor{comment}{////////////////////////////-\/-\/-\/DEFINES-\/-\/-\/////////////////////////////]}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00067}00067\ }
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00068}00068\ }
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00069}00069\ \textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00070}00070\ \textcolor{comment}{/////////////////////////////////////////////////////////////////////}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00071}00071\ \textcolor{comment}{///////////////////////-\/-\/-\/STRUCTURES\ \&\ ENUMS-\/-\/-\///////////////////////}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00072}00072\ \textcolor{comment}{/**}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00073}00073\ \textcolor{comment}{\ \ *\ @brief\ Режим\ прерываний\ таймера}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00074}00074\ \textcolor{comment}{\ \ *\ @ingroup\ \ MYLIBS\_TIM\_GENERAL}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00075}00075\ \textcolor{comment}{\ \ */}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00076}\mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___g_e_n_e_r_a_l_gaeb611874216a4661fb83366b99b9e787}{00076}}\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{enum}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00077}00077\ \{}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00078}\mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___g_e_n_e_r_a_l_ggaeb611874216a4661fb83366b99b9e787ab0869828a4dfd62eaa44868ca27835f8}{00078}}\ \ \ \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_l00079}\mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___g_e_n_e_r_a_l_ggaeb611874216a4661fb83366b99b9e787a89ecf1ef6d45ead2efcb7dd30396114c}{00079}}\ \ \ \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_l00080}00080\ \textcolor{comment}{//\ \ TIM\_PWM\_MODE\ =\ \ \ \ \ \ \ \ TIM\_PWM\_ENABLE,}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00081}00081\ \textcolor{comment}{//\ \ TIM\_PWM\_IT\_MODE\ =\ \ \ \ \ TIM\_PWM\_ENABLE\ |\ TIM\_IT\_CONF,}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00082}00082\ \}\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_l00083}00083\ \textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00084}00084\ \textcolor{comment}{/**}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00085}00085\ \textcolor{comment}{\ \ *\ @brief\ Длительность\ тика\ таймера\ (частота\ тактирования\ таймера)}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00086}00086\ \textcolor{comment}{\ \ *\ @ingroup\ \ MYLIBS\_TIM\_GENERAL}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00087}00087\ \textcolor{comment}{\ \ *\ @details\ \ enum\ дает\ базовые\ длительности,\ но\ можно\ выставить\ другие}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00088}00088\ \textcolor{comment}{\ \ *\ \ \ \ \ \ \ \ \ \ \ (напр\ 500\ -\/\ 0.5\ мс)}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00089}00089\ \textcolor{comment}{\ \ */}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00090}\mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___g_e_n_e_r_a_l_gaa0a51c870325217ac099881f09dd0800}{00090}}\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{enum}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00091}00091\ \{}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00092}\mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___g_e_n_e_r_a_l_ggaa0a51c870325217ac099881f09dd0800ae838122c0e83bc57ad31b546bf2f00e5}{00092}}\ \ \ \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_l00093}\mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___g_e_n_e_r_a_l_ggaa0a51c870325217ac099881f09dd0800a63df3123d0ddc592b189ed1594456ea2}{00093}}\ \ \ \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_l00094}\mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___g_e_n_e_r_a_l_ggaa0a51c870325217ac099881f09dd0800a060b01e890891fd17c8f95b55a94139f}{00094}}\ \ \ \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_l00095}\mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___g_e_n_e_r_a_l_ggaa0a51c870325217ac099881f09dd0800a096ef0ab67788487f69d8877c6d89b30}{00095}}\ \ \ \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_l00096}\mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___g_e_n_e_r_a_l_ggaa0a51c870325217ac099881f09dd0800a6a66c5ed1d966c9e30f0219b664d2b25}{00096}}\ \ \ \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_l00097}\mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___g_e_n_e_r_a_l_ggaa0a51c870325217ac099881f09dd0800a7421a08abd119e71aa99eea5ab5d6daa}{00097}}\ \ \ \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_l00098}\mbox{\hyperlink{group___m_y_l_i_b_s___t_i_m___g_e_n_e_r_a_l_ggaa0a51c870325217ac099881f09dd0800a18527a2d781eb4365aecd9a3184fc1da}{00098}}\ \ \ \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_l00099}00099\ \}\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_l00100}00100\ \textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00101}00101\ \textcolor{comment}{/**}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00102}00102\ \textcolor{comment}{\ \ *\ @brief\ Структура\ инициализации\ таймера}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00103}00103\ \textcolor{comment}{\ \ *\ @ingroup\ \ MYLIBS\_TIM\_GENERAL}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00104}00104\ \textcolor{comment}{\ \ *\ @details\ \ }}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00105}00105\ \textcolor{comment}{\ \ *\ Содержит\ все\ базовые\ структуры,\ которые\ нужны\ для\ инициализации\ таймера.}}
|
||
\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}\mbox{\hyperlink{struct_t_i_m___settings_type_def}{00112}}\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }\textcolor{comment}{//\ struct\ with\ settings\ for\ custom\ function}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00113}00113\ \{}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00114}\mbox{\hyperlink{struct_t_i_m___settings_type_def_ada49efdbd35a8e442c3cff630d42f34c}{00114}}\ \ \ TIM\_HandleTypeDef\ \ \ \ \ \ \ \mbox{\hyperlink{struct_t_i_m___settings_type_def_ada49efdbd35a8e442c3cff630d42f34c}{htim}};\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{comment}{///<\ HAL\ handle\ таймера}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00115}\mbox{\hyperlink{struct_t_i_m___settings_type_def_a3805f627567798c3cd1d79a0da42bea0}{00115}}\ \ \ TIM\_ClockConfigTypeDef\ \ \mbox{\hyperlink{struct_t_i_m___settings_type_def_a3805f627567798c3cd1d79a0da42bea0}{sClockSourceConfig}};\ \ \ \ \ \ \ \ \ \ \ \textcolor{comment}{///<\ Настройки\ тактирования\ таймера}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00116}\mbox{\hyperlink{struct_t_i_m___settings_type_def_a9694cf0910a69d48ff94f8aeac106969}{00116}}\ \ \ TIM\_SlaveConfigTypeDef\ \ \mbox{\hyperlink{struct_t_i_m___settings_type_def_a9694cf0910a69d48ff94f8aeac106969}{sSlaveConfig}};\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{comment}{///<\ Настройки\ слейв\ режима\ таймера}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00117}\mbox{\hyperlink{struct_t_i_m___settings_type_def_a2d9d277dd395424b964445ec1bc65b21}{00117}}\ \ \ TIM\_MasterConfigTypeDef\ \mbox{\hyperlink{struct_t_i_m___settings_type_def_a2d9d277dd395424b964445ec1bc65b21}{sMasterConfig}};\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{comment}{///<\ Настройки\ мастер\ режима\ таймера}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00118}\mbox{\hyperlink{struct_t_i_m___settings_type_def_a961f19f0e1672715c27bc94d7871dbb7}{00118}}\ \ \ TIM\_BreakDeadTimeConfigTypeDef\ \mbox{\hyperlink{struct_t_i_m___settings_type_def_a961f19f0e1672715c27bc94d7871dbb7}{sBreakDeadTimeConfig}};\ \ \textcolor{comment}{///<\ Настройки\ дедтаймов\ таймера}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00119}00119\ }
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00120}\mbox{\hyperlink{struct_t_i_m___settings_type_def_ab90e370c3edda88e76583293c250d2b0}{00120}}\ \ \ \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_l00121}\mbox{\hyperlink{struct_t_i_m___settings_type_def_a58da1b4c0f6d12d7d9fb2f170b9b9e6e}{00121}}\ \ \ \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_l00122}\mbox{\hyperlink{struct_t_i_m___settings_type_def_a11151fe125960cb8e61328ffd06b7718}{00122}}\ \ \ uint8\_t\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{struct_t_i_m___settings_type_def_a11151fe125960cb8e61328ffd06b7718}{sTickBasePrescaler}};\ \ \ \ \ \ \ \ \ \ \ \textcolor{comment}{///<\ Дополнительный\ делитель,\ для\ удобного\ деления\ @ref\ sTickBaseUS}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00123}\mbox{\hyperlink{struct_t_i_m___settings_type_def_a7073358fd3a722687eb85238ab570014}{00123}}\ \ \ \textcolor{keywordtype}{float}\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{struct_t_i_m___settings_type_def_a7073358fd3a722687eb85238ab570014}{sTimAHBFreqMHz}};\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{comment}{///<\ Частота\ шины\ тактирования\ таймера}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00124}\mbox{\hyperlink{struct_t_i_m___settings_type_def_af6057ff3f60f5e01b41d4a347b79a5e4}{00124}}\ \ \ \textcolor{keywordtype}{float}\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{struct_t_i_m___settings_type_def_af6057ff3f60f5e01b41d4a347b79a5e4}{sTimFreqHz}};\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{comment}{///<\ Желаемая\ частота\ таймера}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00125}00125\ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00126}00126\ \}\mbox{\hyperlink{struct_t_i_m___settings_type_def}{TIM\_SettingsTypeDef}};}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00127}00127\ }
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00128}00128\ \textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00129}00129\ \textcolor{comment}{/**}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00130}00130\ \textcolor{comment}{\ \ *\ @brief\ Структура\ инициализации\ енкодера}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00131}00131\ \textcolor{comment}{\ \ *\ @ingroup\ \ MYLIBS\_TIM\_ENCODER}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00132}00132\ \textcolor{comment}{\ \ *\ @details\ \ }}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00133}00133\ \textcolor{comment}{\ \ *\ Содержит\ все\ базовые\ структуры,\ которые\ нужны\ для\ инициализации\ таймера.}}
|
||
\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}\mbox{\hyperlink{struct_t_i_m___encoder_type_def}{00140}}\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }\textcolor{comment}{//\ struct\ with\ variables\ for\ encoder}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00141}00141\ \{}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00142}\mbox{\hyperlink{struct_t_i_m___encoder_type_def_a6f769f027b760a4b496e2b2b77bf54a3}{00142}}\ \ \ int16\_t\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{struct_t_i_m___encoder_type_def_a6f769f027b760a4b496e2b2b77bf54a3}{Encoder\_Diff}};\ \ \ \textcolor{comment}{///<\ Считанная\ разница}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00143}\mbox{\hyperlink{struct_t_i_m___encoder_type_def_a0dacce3dde7df3122583869d96a372a2}{00143}}\ \ \ uint16\_t\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{struct_t_i_m___encoder_type_def_a0dacce3dde7df3122583869d96a372a2}{Encoder\_Shdw}};\ \ \ \textcolor{comment}{///<\ Последние\ считанные\ тики}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00144}00144\ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00145}\mbox{\hyperlink{struct_t_i_m___encoder_type_def_adc80bd5a90444c31d84157f35c59b95c}{00145}}\ \ \ TIM\_HandleTypeDef\ \ \ \ \ \ \ *\mbox{\hyperlink{struct_t_i_m___encoder_type_def_adc80bd5a90444c31d84157f35c59b95c}{htim}};\ \ \ \ \ \ \ \ \ \ \textcolor{comment}{///<\ Указатель\ на\ HAL\ handle\ таймера}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00146}\mbox{\hyperlink{struct_t_i_m___encoder_type_def_a021f0c585e9e62d68a4b09f630d8b6e5}{00146}}\ \ \ TIM\_Encoder\_InitTypeDef\ \mbox{\hyperlink{struct_t_i_m___encoder_type_def_a021f0c585e9e62d68a4b09f630d8b6e5}{sConfig}};\ \ \ \ \ \ \ \ \textcolor{comment}{///<\ Указатель\ на\ структуру\ настройки\ энкодера}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00147}00147\ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00148}\mbox{\hyperlink{struct_t_i_m___encoder_type_def_ad29873fc8cdc71462e6d8744621120e9}{00148}}\ \ \ GPIO\_TypeDef\ \ \ \ \ \ \ \ \ \ \ \ *\mbox{\hyperlink{struct_t_i_m___encoder_type_def_ad29873fc8cdc71462e6d8744621120e9}{GPIOx}};\ \ \ \ \ \ \ \ \ \textcolor{comment}{///<\ Порт,\ куда\ подключается\ энкодер}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00149}\mbox{\hyperlink{struct_t_i_m___encoder_type_def_a4fc05ef011205a6702cb3d006bab677e}{00149}}\ \ \ uint32\_t\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{struct_t_i_m___encoder_type_def_a4fc05ef011205a6702cb3d006bab677e}{GPIO\_PIN\_TI1}};\ \ \ \textcolor{comment}{///<\ Пин,\ куда\ подключается\ канал\ TI1}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00150}\mbox{\hyperlink{struct_t_i_m___encoder_type_def_a67ad037b92162546763fc9c425b5e3c5}{00150}}\ \ \ uint32\_t\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{struct_t_i_m___encoder_type_def_a67ad037b92162546763fc9c425b5e3c5}{GPIO\_PIN\_TI2}};\ \ \ \textcolor{comment}{///<\ Пин,\ куда\ подключается\ канал\ TI2}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00151}\mbox{\hyperlink{struct_t_i_m___encoder_type_def_a6973108a83d2a3ea4fc3e0e8a501af80}{00151}}\ \ \ uint32\_t\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{struct_t_i_m___encoder_type_def_a6973108a83d2a3ea4fc3e0e8a501af80}{GPIO\_PIN\_SW}};\ \ \ \ \textcolor{comment}{///<\ Пин,\ куда\ кнопка\ энкодера\ (если\ есть)}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00152}00152\ }
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00153}\mbox{\hyperlink{struct_t_i_m___encoder_type_def_a99295760ff8b27d1e6f1710f29383a45}{00153}}\ \ \ \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_l00154}00154\ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00155}00155\ \}\mbox{\hyperlink{struct_t_i_m___encoder_type_def}{TIM\_EncoderTypeDef}};\textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00156}00156\ \textcolor{comment}{///////////////////////-\/-\/-\/STRUCTURES\ \&\ ENUMS-\/-\/-\///////////////////////}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00157}00157\ \textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00158}00158\ \textcolor{comment}{/////////////////////////////////////////////////////////////////////}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00159}00159\ \textcolor{comment}{///////////////////////////-\/-\/-\/FUNCTIONS-\/-\/-\////////////////////////////}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00160}00160\ \textcolor{comment}{/**\ }}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00161}00161\ \textcolor{comment}{\ \ *\ @addtogroup\ MYLIBS\_TIM\_OC\ PWM/OC\ Channels\ tools}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00162}00162\ \textcolor{comment}{\ \ *\ @ingroup\ \ \ \ MY\_LIBS\_TIM}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00163}00163\ \textcolor{comment}{\ \ *\ @brief\ \ \ \ \ \ Функции\ для\ инициализации\ базовых\ функций\ каналов\ таймера}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00164}00164\ \textcolor{comment}{\ \ *\ @\{}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00165}00165\ \textcolor{comment}{\ \ */}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00166}00166\ \textcolor{comment}{/*\ Initialize\ PWM\ Channel\ and\ GPIO\ for\ output\ */}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00167}00167\ 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_l00168}00168\ \textcolor{comment}{/*\ Initialize\ OC\ Comparator\ */}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00169}00169\ 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_l00170}00170\ \textcolor{comment}{/**\ MYLIBS\_TIM\_ENCODER}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00171}00171\ \textcolor{comment}{\ \ *\ @\}}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00172}00172\ \textcolor{comment}{\ \ */}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00173}00173\ \textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00174}00174\ \textcolor{comment}{/**\ }}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00175}00175\ \textcolor{comment}{\ \ *\ @addtogroup\ MYLIBS\_TIM\_ENCODER\ Encoder\ tools}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00176}00176\ \textcolor{comment}{\ \ *\ @ingroup\ \ \ \ MY\_LIBS\_TIM}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00177}00177\ \textcolor{comment}{\ \ *\ @brief\ \ \ \ \ \ Функции\ для\ считывания\ энкодера}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00178}00178\ \textcolor{comment}{\ \ *\ @\{}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00179}00179\ \textcolor{comment}{\ \ */}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00180}00180\ \textcolor{comment}{/*\ Initialize\ TIM\ Encoder\ functional\ */}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00181}00181\ 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_l00182}00182\ \textcolor{comment}{/*\ Считать\ энкодер\ */}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00183}00183\ 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_l00184}00184\ \textcolor{comment}{/*\ Считать\ кнопку\ энкодера\ */}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00185}00185\ \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_l00186}00186\ \textcolor{comment}{/**\ MYLIBS\_TIM\_ENCODER}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00187}00187\ \textcolor{comment}{\ \ *\ @\}}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00188}00188\ \textcolor{comment}{\ \ */}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00189}00189\ \textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00190}00190\ \textcolor{comment}{/**\ }}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00191}00191\ \textcolor{comment}{\ \ *\ @addtogroup\ MYLIBS\_TIM\_DELAY\ \ Delay\ tools}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00192}00192\ \textcolor{comment}{\ \ *\ @ingroup\ \ \ \ MY\_LIBS\_TIM}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00193}00193\ \textcolor{comment}{\ \ *\ @brief\ \ \ \ \ \ Функции\ для\ формирования\ задержек\ с\ помощью\ таймеров}}
|
||
\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}{/*\ Start\ delay\ via\ TIM\ */}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00197}00197\ 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_l00198}00198\ \textcolor{comment}{/*\ Delay\ via\ TIM\ */}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00199}00199\ 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_l00200}00200\ \textcolor{comment}{/*\ Wait\ Delay\ via\ TIM\ without\ blocking\ app\ */}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00201}00201\ 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_l00202}00202\ \textcolor{comment}{/**\ MYLIBS\_TIM\_DELAY}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00203}00203\ \textcolor{comment}{\ \ *\ @\}}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00204}00204\ \textcolor{comment}{\ \ */}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00205}00205\ \textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00206}00206\ \textcolor{comment}{/**\ }}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00207}00207\ \textcolor{comment}{\ \ *\ @addtogroup\ MYLIBS\_TIM\_GENERAL\ \ General\ tools}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00208}00208\ \textcolor{comment}{\ \ *\ @ingroup\ \ \ \ MY\_LIBS\_TIM}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00209}00209\ \textcolor{comment}{\ \ *\ @brief\ \ \ \ \ \ Функции\ для\ базовой\ инициализации\ таймеров}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00210}00210\ \textcolor{comment}{\ \ *\ @\{}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00211}00211\ \textcolor{comment}{\ \ */}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00212}00212\ \textcolor{comment}{/*\ Initialize\ TIM\ with\ TIM\_SettingsTypeDef\ structure\ */}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00213}00213\ 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_l00214}00214\ \textcolor{comment}{/*\ Initialize\ TIMs\ clock\ and\ interrupt\ */}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00215}00215\ \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_l00216}00216\ \textcolor{comment}{/*\ DeInitialize\ TIMs\ clock\ and\ interrupt\ */}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00217}00217\ \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_l00218}00218\ \textcolor{comment}{/**\ MYLIBS\_TIM\_GENERAL}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00219}00219\ \textcolor{comment}{\ \ *\ @\}}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00220}00220\ \textcolor{comment}{\ \ */}\textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00221}00221\ \textcolor{comment}{///////////////////////////-\/-\/-\/FUNCTIONS-\/-\/-\////////////////////////////}}
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00222}00222\ }
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00223}00223\ }
|
||
\DoxyCodeLine{\Hypertarget{general__tim_8h_source_l00224}00224\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ \_\_TIM\_GENERAL\_H\_}}
|
||
|
||
\end{DoxyCode}
|