\doxysection{F\+:/\+Work/\+Projects/\+STM/.Elementary/\+STM32\+\_\+\+Extended\+Libs/\+My\+Libs\+General/\+Inc/mylibs\+\_\+defs.h File Reference}
\hypertarget{mylibs__defs_8h}{}\label{mylibs__defs_8h}\index{F:/Work/Projects/STM/.Elementary/STM32\_ExtendedLibs/MyLibsGeneral/Inc/mylibs\_defs.h@{F:/Work/Projects/STM/.Elementary/STM32\_ExtendedLibs/MyLibsGeneral/Inc/mylibs\_defs.h}}


Заголочный файл для дефайнов библиотеки My\+Libs\+General.  


{\ttfamily \#include "{}mylibs\+\_\+config.\+h"{}}\newline
Include dependency graph for mylibs\+\_\+defs.\+h\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=263pt]{mylibs__defs_8h__incl}
\end{center}
\end{figure}
This graph shows which files directly or indirectly include this file\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{mylibs__defs_8h__dep__incl}
\end{center}
\end{figure}
\doxysubsubsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \mbox{\hyperlink{group___e_r_r_o_r___h_a_n_d_l_e_r___d_e_f_i_n_e_s_gae110df81afd885a390bbeb152d7b709f}{My\+Libs\+\_\+\+Error\+\_\+\+Handler}}(params)~Error\+\_\+\+Handler(params)
\begin{DoxyCompactList}\small\item\em Error\+\_\+\+Handler который будет вызыватся в библиотеке \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___e_r_r_o_r___h_a_n_d_l_e_r___d_e_f_i_n_e_s_ga5d066a5b9781f9437e75d98677489eb9}{check\+\_\+null\+\_\+ptr\+\_\+1}}(p1)~(p1 == NULL)
\begin{DoxyCompactList}\small\item\em Проверить один указатель на NULL. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___e_r_r_o_r___h_a_n_d_l_e_r___d_e_f_i_n_e_s_ga27b363f333cacdccc15f5174e096b5b3}{check\+\_\+null\+\_\+ptr\+\_\+2}}(p1,  p2)~((p1 == NULL) \texorpdfstring{$\vert$}{|}\texorpdfstring{$\vert$}{|} (p1 != NULL \&\& p2 == NULL))
\begin{DoxyCompactList}\small\item\em Проверить два указателя на NULL. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___e_r_r_o_r___h_a_n_d_l_e_r___d_e_f_i_n_e_s_ga838b40542faa9aa273d18f921b21fda2}{check\+\_\+null\+\_\+ptr\+\_\+3}}(p1,  p2,  p3)~((p1 == NULL) \texorpdfstring{$\vert$}{|}\texorpdfstring{$\vert$}{|} (p1 != NULL \&\& ((p2 == NULL) \texorpdfstring{$\vert$}{|}\texorpdfstring{$\vert$}{|} (p2 != NULL \&\& p3 == NULL))))
\begin{DoxyCompactList}\small\item\em Проверить три указателя на NULL. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___e_r_r_o_r___h_a_n_d_l_e_r___d_e_f_i_n_e_s_ga590973be111afc3f9ba15e6939530254}{check\+\_\+null\+\_\+ptr\+\_\+4}}(p1,  p2,  p3,  p4)~((p1 == NULL) \texorpdfstring{$\vert$}{|}\texorpdfstring{$\vert$}{|} (p1 != NULL \&\& ((p2 == NULL) \texorpdfstring{$\vert$}{|}\texorpdfstring{$\vert$}{|} (p2 != NULL \&\& ((p3 == NULL) \texorpdfstring{$\vert$}{|}\texorpdfstring{$\vert$}{|} (p3 != NULL \&\& p4 == NULL))))))
\begin{DoxyCompactList}\small\item\em Проверить четыре указателя на NULL. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___e_r_r_o_r___h_a_n_d_l_e_r___d_e_f_i_n_e_s_gaab0aafd7a4a21ec4f338b19269f65490}{check\+\_\+null\+\_\+ptr\+\_\+5}}(p1,  p2,  p3,  p4,  p5)~((p1 == NULL) \texorpdfstring{$\vert$}{|}\texorpdfstring{$\vert$}{|} (p1 != NULL \&\& ((p2 == NULL) \texorpdfstring{$\vert$}{|}\texorpdfstring{$\vert$}{|} (p2 != NULL \&\& ((p3 == NULL) \texorpdfstring{$\vert$}{|}\texorpdfstring{$\vert$}{|} (p3 != NULL \&\& ((p4 == NULL) \texorpdfstring{$\vert$}{|}\texorpdfstring{$\vert$}{|} (p4 != NULL \&\& p5 == NULL))))))))
\begin{DoxyCompactList}\small\item\em Проверить пять указателей на NULL. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___d_e_l_a_y_s___d_e_f_i_n_e_s_gabeb97579daeb622c6651ed03c4a27479}{ms\+Delay}}(\+\_\+ms\+\_\+)~HAL\+\_\+\+Delay(\+\_\+ms\+\_\+)
\begin{DoxyCompactList}\small\item\em Задержка на указанное количество миллисекунд. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___d_e_l_a_y_s___d_e_f_i_n_e_s_ga8a5051b1292d1019fe8dd3fc5521ab25}{ms\+Delay\+Start}}(\+\_\+pvar\+\_\+)~\texorpdfstring{$\ast$}{*}(\+\_\+pvar\+\_\+) = HAL\+\_\+\+Get\+Tick()
\begin{DoxyCompactList}\small\item\em Начать отсчет задержки. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___d_e_l_a_y_s___d_e_f_i_n_e_s_ga0b97e172659a59ee4fa56f851643ae85}{ms\+Delay\+While\+Active}}(\+\_\+ms\+\_\+,  \+\_\+pvar\+\_\+)~(HAL\+\_\+\+Get\+Tick() -\/ \texorpdfstring{$\ast$}{*}(\+\_\+pvar\+\_\+) $<$ \+\_\+ms\+\_\+)
\begin{DoxyCompactList}\small\item\em Проверяет, активна ли задержка. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___d_e_l_a_y_s___d_e_f_i_n_e_s_gaed082c07b9fc4d1894330d885b9b5518}{ms\+Delay\+Wait\+Done}}(\+\_\+ms\+\_\+,  \+\_\+pvar\+\_\+)~(HAL\+\_\+\+Get\+Tick() -\/ \texorpdfstring{$\ast$}{*}(\+\_\+pvar\+\_\+) $>$= \+\_\+ms\+\_\+)
\begin{DoxyCompactList}\small\item\em Проверяет, завершилась ли задержка. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___u_t_i_l_s___d_e_f_i_n_e_s_gaf5e598848326d48e86167e5099a029be}{Clear\+Struct}}(\+\_\+struct\+\_\+)~memset(\&(\+\_\+struct\+\_\+), 0, sizeof(\+\_\+struct\+\_\+))
\begin{DoxyCompactList}\small\item\em Обнуление структуры. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___u_t_i_l_s___d_e_f_i_n_e_s_gabf45f2b60eedf80cf9d1dbe4302a741e}{Divide\+\_\+\+Up}}(\+\_\+val\+\_\+,  \+\_\+div\+\_\+)~((\+\_\+val\+\_\+ -\/ 1) / \+\_\+div\+\_\+) + 1                                 /\texorpdfstring{$\ast$}{*} через мат выражение \texorpdfstring{$\ast$}{*}/
\begin{DoxyCompactList}\small\item\em Деление с округлением вверх \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___u_t_i_l_s___d_e_f_i_n_e_s_ga0f22e895ac7781c3d1b68fee182c4291}{Byte\+Swap16}}(v)~(((v\&0x\+FF00) $>$$>$ (8)) \texorpdfstring{$\vert$}{|} ((v\&0x00\+FF) $<$$<$ (8)))
\begin{DoxyCompactList}\small\item\em Swap between Little Endian and Big Endian. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___u_t_i_l_s___d_e_f_i_n_e_s_ga996f7be338ccb40d1a2a5abc1ad61759}{ABS}}(x)~( ((x) $>$ 0)? (x) \+: -\/(x))
\begin{DoxyCompactList}\small\item\em Абсолютное значение числа \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void {\bfseries Error\+\_\+\+Handler} (void)
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Заголочный файл для дефайнов библиотеки My\+Libs\+General. 



Definition in file \mbox{\hyperlink{mylibs__defs_8h_source}{mylibs\+\_\+defs.\+h}}.

