STM32_ExtendedLibs/Doc/latex/trace_8h.tex
Razvalyaev 141ea6bac9 Переструктурирование:
- MyLibs - максимально платформонезависимые библиотеки (кроме разве что RTT)
- RTT
- STM32_General - библиотеки для периферии stm32
2025-10-21 05:03:54 +03:00

69 lines
4.9 KiB
TeX
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

\doxysection{E\+:/.WORK/\+STM32/\+STM32\+\_\+\+Extended\+Libs/\+My\+Libs/\+Inc/trace.h File Reference}
\hypertarget{trace_8h}{}\label{trace_8h}\index{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibs/Inc/trace.h@{E:/.WORK/STM32/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=337pt]{trace_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=212pt]{trace_8h__dep__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}\item
struct \mbox{\hyperlink{struct_h_f___stack_frame__t}{HF\+\_\+\+Stack\+Frame\+\_\+t}}
\begin{DoxyCompactList}\small\item\em Контекст стек-\/фрейма процессора при Hard\+Fault. \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_ga730fb7b8d0bbb348dca73c15bd0e0b26}{log\+\_\+printf}}(TAG, fmt, ...)
\begin{DoxyCompactList}\small\item\em Макрос логирования с поддержкой уровней \doxylink{group___t_r_a_c_e___c_o_n_f_i_g_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}\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}\item
\+\_\+\+\_\+\+STATIC\+\_\+\+FORCEINLINE int \mbox{\hyperlink{group___t_r_a_c_e___h_a_r_d_f_a_u_l_t_ga03f8b6f3b537ee1c8e91065c60db504f}{HF\+\_\+\+Check\+Recovered}} (int erase)
\begin{DoxyCompactList}\small\item\em Проверка и вывод последнего Hard\+Fault-\/трейса из Flash. \end{DoxyCompactList}\item
\+\_\+\+\_\+\+STATIC\+\_\+\+FORCEINLINE void \mbox{\hyperlink{group___t_r_a_c_e___h_a_r_d_f_a_u_l_t_gadd8e10e7ec3b0204f7f92062ecd452f7}{HF\+\_\+\+Handle\+Fault}} (void)
\begin{DoxyCompactList}\small\item\em Обработчик Hard\+Fault. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection{Detailed Description}
Заголочный файл для работы с трассировкой.
Definition in file \mbox{\hyperlink{trace_8h_source}{trace.\+h}}.