\doxysection{E\+:/.WORK/\+STM32/\+STM\+\_\+\+Libs/\+STM32\+\_\+\+Extended\+Libs/\+My\+Libs/\+Inc/trace.h File Reference}
\hypertarget{trace_8h}{}\label{trace_8h}\index{E:/.WORK/STM32/STM\_Libs/STM32\_ExtendedLibs/MyLibs/Inc/trace.h@{E:/.WORK/STM32/STM\_Libs/STM32\_ExtendedLibs/MyLibs/Inc/trace.h}}


Заголочный файл для работы с трассировкой.  


{\ttfamily \#include "{}mylibs\+\_\+defs.\+h"{}}\newline
{\ttfamily \#include $<$string.\+h$>$}\newline
{\ttfamily \#include "{}SEGGER\+\_\+\+RTT.\+h"{}}\newline
Include dependency graph for trace.\+h\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{trace_8h__incl}
\end{center}
\end{figure}
\doxysubsubsection*{Classes}
\begin{DoxyCompactItemize}
\item 
struct \mbox{\hyperlink{struct_r_t_t___flash_header__t}{RTT\+\_\+\+Flash\+Header\+\_\+t}}
\begin{DoxyCompactList}\small\item\em Структура RTT, которая будет положена в Flash. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsubsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \mbox{\hyperlink{group___t_r_a_c_e___s_e_r_i_a_l_gae9b9b8a611e291a2f2aa5abf99f3ebaa}{my\+\_\+printf}}(...)
\begin{DoxyCompactList}\small\item\em Универсальный макрос для вывода трассировки \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___t_r_a_c_e___s_e_r_i_a_l_ga9c853b02c22f26023c34d1d404b6d653}{local\+\_\+time}}()
\begin{DoxyCompactList}\small\item\em Локальное время \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___t_r_a_c_e___s_e_r_i_a_l_ga0b87e0d3bf5853bcbb0b66a7c48fdc05}{LOG\+\_\+\+LEVEL}}~1
\begin{DoxyCompactList}\small\item\em Уровень логирования (по умолчанию == 1) \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___t_r_a_c_e___s_e_r_i_a_l_ga730fb7b8d0bbb348dca73c15bd0e0b26}{log\+\_\+printf}}(TAG,  fmt, ...)
\begin{DoxyCompactList}\small\item\em Макрос логирования с поддержкой уровней \doxylink{group___t_r_a_c_e___s_e_r_i_a_l_ga0b87e0d3bf5853bcbb0b66a7c48fdc05}{LOG\+\_\+\+LEVEL}. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___t_r_a_c_e___g_p_i_o_ga02a6a7b273766121db8ad4a1371373eb}{TRACE\+\_\+\+GPIO\+\_\+\+SET}}(\+\_\+gpio\+\_\+,  \+\_\+pin\+\_\+)
\begin{DoxyCompactList}\small\item\em Установить указанную ножку GPIO. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___t_r_a_c_e___g_p_i_o_ga69741d88c991112e99fe7a62e025108a}{TRACE\+\_\+\+GPIO\+\_\+\+RESET}}(\+\_\+gpio\+\_\+,  \+\_\+pin\+\_\+)
\begin{DoxyCompactList}\small\item\em Сбросить указанную ножку GPIO. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___t_r_a_c_e___h_a_r_d_f_a_u_l_t_ga8229256a4357011dd0f61965d8388741}{HF\+\_\+\+Check\+Recovered}}(...)
\item 
\#define \mbox{\hyperlink{group___t_r_a_c_e___h_a_r_d_f_a_u_l_t_ga46c193c1f17abd52f0c4846ef97f7f1a}{HF\+\_\+\+Handle\+Fault}}(...)
\end{DoxyCompactItemize}
\doxysubsubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\+\_\+\+\_\+\+STATIC\+\_\+\+FORCEINLINE void \mbox{\hyperlink{group___t_r_a_c_e___r_t_t___f_l_a_s_h_ga21353cb4f5af666237739e62ce019cd6}{RTT\+\_\+\+Flash\+Prepare}} (void)
\begin{DoxyCompactList}\small\item\em Подготовка Flash к записи \end{DoxyCompactList}\item 
\+\_\+\+\_\+\+STATIC\+\_\+\+FORCEINLINE int \mbox{\hyperlink{group___t_r_a_c_e___r_t_t___f_l_a_s_h_ga79f222c8ab644de4d47f07528d1edd63}{RTT\+\_\+\+Save\+To\+Flash}} (uint32\+\_\+t tag, uint32\+\_\+t tail\+\_\+size)
\begin{DoxyCompactList}\small\item\em Сохраняет последние символы RTT-\/буфера в Flash по тегу \end{DoxyCompactList}\item 
\+\_\+\+\_\+\+STATIC\+\_\+\+FORCEINLINE int \mbox{\hyperlink{group___t_r_a_c_e___r_t_t___f_l_a_s_h_ga734b2ebbf0c77699b739013878cfd146}{RTT\+\_\+\+Read\+From\+Flash}} (uint32\+\_\+t tag, char \texorpdfstring{$\ast$}{*}Buffer, uint32\+\_\+t tail\+\_\+size, uint32\+\_\+t \texorpdfstring{$\ast$}{*}read\+\_\+size)
\begin{DoxyCompactList}\small\item\em Читает последние символы RTT-\/буфера из Flash по тегу \end{DoxyCompactList}\item 
\+\_\+\+\_\+\+STATIC\+\_\+\+FORCEINLINE int \mbox{\hyperlink{group___t_r_a_c_e___r_t_t___f_l_a_s_h_ga8d8c6850e32b42871faefce3352012d1}{RTT\+\_\+\+Erase\+Flash}} (void)
\begin{DoxyCompactList}\small\item\em Стирание сектора Flash с RTT-\/буфером \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Заголочный файл для работы с трассировкой. 



Definition in file \mbox{\hyperlink{trace_8h_source}{trace.\+h}}.

