149 lines
5.6 KiB
TeX
149 lines
5.6 KiB
TeX
\hypertarget{bsp__flash_8h}{}\doxysection{D\+:/gitt/\+Microchip\+For32/bsp\+\_\+\+Device/bsp\+\_\+flash.h 文件参考}
|
|
\label{bsp__flash_8h}\index{D:/gitt/MicrochipFor32/bsp\_Device/bsp\_flash.h@{D:/gitt/MicrochipFor32/bsp\_Device/bsp\_flash.h}}
|
|
|
|
|
|
写\+STM32的\+Flash库
|
|
|
|
|
|
{\ttfamily \#include \char`\"{}main.\+h\char`\"{}}\newline
|
|
bsp\+\_\+flash.\+h 的引用(Include)关系图\+:\nopagebreak
|
|
\begin{figure}[H]
|
|
\begin{center}
|
|
\leavevmode
|
|
\includegraphics[width=202pt]{bsp__flash_8h__incl}
|
|
\end{center}
|
|
\end{figure}
|
|
\doxysubsection*{函数}
|
|
\begin{DoxyCompactItemize}
|
|
\item
|
|
uint32\+\_\+t \mbox{\hyperlink{bsp__flash_8h_af1304997d797af3400074bdb68e5de1c}{bsp\+\_\+\+Write\+Flash\+One\+Page}} (uint32\+\_\+t $\ast$dat, uint32\+\_\+t num)
|
|
\begin{DoxyCompactList}\small\item\em 写入一页\+Flash空间 \end{DoxyCompactList}\item
|
|
void \mbox{\hyperlink{bsp__flash_8h_a734a679e19a8af2c7ddfa86f4310a13d}{bsp\+\_\+\+Read\+Flash}} (uint32\+\_\+t $\ast$dat, uint32\+\_\+t num)
|
|
\begin{DoxyCompactList}\small\item\em 读取一页\+Flash空间 \end{DoxyCompactList}\item
|
|
void \mbox{\hyperlink{bsp__flash_8h_aa1a1ff74b284a19aa3872b6f3d6abd11}{bsp\+\_\+\+Write\+Flash\+\_\+\+Pack}} (void)
|
|
\begin{DoxyCompactList}\small\item\em 将一包数据存入\+Flash \end{DoxyCompactList}\item
|
|
void \mbox{\hyperlink{bsp__flash_8h_a45549058e1315d29263c0b26816bcffb}{bsp\+\_\+\+Read\+Flash\+\_\+\+Pack}} (void)
|
|
\begin{DoxyCompactList}\small\item\em 从\+Flash读取一包数据 \end{DoxyCompactList}\end{DoxyCompactItemize}
|
|
|
|
|
|
\doxysubsection{详细描述}
|
|
写\+STM32的\+Flash库
|
|
|
|
|
|
|
|
在文件 \mbox{\hyperlink{bsp__flash_8h_source}{bsp\+\_\+flash.\+h}} 中定义.
|
|
|
|
|
|
|
|
\doxysubsection{函数说明}
|
|
\mbox{\Hypertarget{bsp__flash_8h_a734a679e19a8af2c7ddfa86f4310a13d}\label{bsp__flash_8h_a734a679e19a8af2c7ddfa86f4310a13d}}
|
|
\index{bsp\_flash.h@{bsp\_flash.h}!bsp\_ReadFlash@{bsp\_ReadFlash}}
|
|
\index{bsp\_ReadFlash@{bsp\_ReadFlash}!bsp\_flash.h@{bsp\_flash.h}}
|
|
\doxysubsubsection{\texorpdfstring{bsp\_ReadFlash()}{bsp\_ReadFlash()}}
|
|
{\footnotesize\ttfamily void bsp\+\_\+\+Read\+Flash (\begin{DoxyParamCaption}\item[{uint32\+\_\+t $\ast$}]{dat, }\item[{uint32\+\_\+t}]{num }\end{DoxyParamCaption})}
|
|
|
|
|
|
|
|
读取一页\+Flash空间
|
|
|
|
|
|
\begin{DoxyParams}{参数}
|
|
{\em $\ast$dat} & 读取数据的缓冲区 \\
|
|
\hline
|
|
{\em num} & 读取数量 \\
|
|
\hline
|
|
\end{DoxyParams}
|
|
\begin{DoxyReturn}{返回}
|
|
无返回
|
|
\end{DoxyReturn}
|
|
|
|
|
|
在文件 \mbox{\hyperlink{bsp__flash_8c_source}{bsp\+\_\+flash.\+c}} 第 \mbox{\hyperlink{bsp__flash_8c_source_l00075}{75}} 行定义.
|
|
|
|
这是这个函数的调用关系图\+:\nopagebreak
|
|
\begin{figure}[H]
|
|
\begin{center}
|
|
\leavevmode
|
|
\includegraphics[width=312pt]{bsp__flash_8h_a734a679e19a8af2c7ddfa86f4310a13d_icgraph}
|
|
\end{center}
|
|
\end{figure}
|
|
\mbox{\Hypertarget{bsp__flash_8h_a45549058e1315d29263c0b26816bcffb}\label{bsp__flash_8h_a45549058e1315d29263c0b26816bcffb}}
|
|
\index{bsp\_flash.h@{bsp\_flash.h}!bsp\_ReadFlash\_Pack@{bsp\_ReadFlash\_Pack}}
|
|
\index{bsp\_ReadFlash\_Pack@{bsp\_ReadFlash\_Pack}!bsp\_flash.h@{bsp\_flash.h}}
|
|
\doxysubsubsection{\texorpdfstring{bsp\_ReadFlash\_Pack()}{bsp\_ReadFlash\_Pack()}}
|
|
{\footnotesize\ttfamily void bsp\+\_\+\+Read\+Flash\+\_\+\+Pack (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
|
|
|
|
|
|
|
|
从\+Flash读取一包数据
|
|
|
|
\begin{DoxyReturn}{返回}
|
|
无返回
|
|
\end{DoxyReturn}
|
|
|
|
|
|
在文件 \mbox{\hyperlink{bsp__flash_8c_source}{bsp\+\_\+flash.\+c}} 第 \mbox{\hyperlink{bsp__flash_8c_source_l00091}{91}} 行定义.
|
|
|
|
函数调用图\+:\nopagebreak
|
|
\begin{figure}[H]
|
|
\begin{center}
|
|
\leavevmode
|
|
\includegraphics[width=312pt]{bsp__flash_8h_a45549058e1315d29263c0b26816bcffb_cgraph}
|
|
\end{center}
|
|
\end{figure}
|
|
\mbox{\Hypertarget{bsp__flash_8h_aa1a1ff74b284a19aa3872b6f3d6abd11}\label{bsp__flash_8h_aa1a1ff74b284a19aa3872b6f3d6abd11}}
|
|
\index{bsp\_flash.h@{bsp\_flash.h}!bsp\_WriteFlash\_Pack@{bsp\_WriteFlash\_Pack}}
|
|
\index{bsp\_WriteFlash\_Pack@{bsp\_WriteFlash\_Pack}!bsp\_flash.h@{bsp\_flash.h}}
|
|
\doxysubsubsection{\texorpdfstring{bsp\_WriteFlash\_Pack()}{bsp\_WriteFlash\_Pack()}}
|
|
{\footnotesize\ttfamily void bsp\+\_\+\+Write\+Flash\+\_\+\+Pack (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
|
|
|
|
|
|
|
|
将一包数据存入\+Flash
|
|
|
|
\begin{DoxyReturn}{返回}
|
|
无返回
|
|
\end{DoxyReturn}
|
|
|
|
|
|
在文件 \mbox{\hyperlink{bsp__flash_8c_source}{bsp\+\_\+flash.\+c}} 第 \mbox{\hyperlink{bsp__flash_8c_source_l00083}{83}} 行定义.
|
|
|
|
函数调用图\+:\nopagebreak
|
|
\begin{figure}[H]
|
|
\begin{center}
|
|
\leavevmode
|
|
\includegraphics[width=350pt]{bsp__flash_8h_aa1a1ff74b284a19aa3872b6f3d6abd11_cgraph}
|
|
\end{center}
|
|
\end{figure}
|
|
\mbox{\Hypertarget{bsp__flash_8h_af1304997d797af3400074bdb68e5de1c}\label{bsp__flash_8h_af1304997d797af3400074bdb68e5de1c}}
|
|
\index{bsp\_flash.h@{bsp\_flash.h}!bsp\_WriteFlashOnePage@{bsp\_WriteFlashOnePage}}
|
|
\index{bsp\_WriteFlashOnePage@{bsp\_WriteFlashOnePage}!bsp\_flash.h@{bsp\_flash.h}}
|
|
\doxysubsubsection{\texorpdfstring{bsp\_WriteFlashOnePage()}{bsp\_WriteFlashOnePage()}}
|
|
{\footnotesize\ttfamily uint32\+\_\+t bsp\+\_\+\+Write\+Flash\+One\+Page (\begin{DoxyParamCaption}\item[{uint32\+\_\+t $\ast$}]{dat, }\item[{uint32\+\_\+t}]{num }\end{DoxyParamCaption})}
|
|
|
|
|
|
|
|
写入一页\+Flash空间
|
|
|
|
|
|
\begin{DoxyParams}{参数}
|
|
{\em $\ast$dat} & 要写入的数据 \\
|
|
\hline
|
|
{\em num} & 要写入的数量 \\
|
|
\hline
|
|
\end{DoxyParams}
|
|
\begin{DoxyReturn}{返回}
|
|
返回0则成功
|
|
\end{DoxyReturn}
|
|
|
|
|
|
在文件 \mbox{\hyperlink{bsp__flash_8c_source}{bsp\+\_\+flash.\+c}} 第 \mbox{\hyperlink{bsp__flash_8c_source_l00056}{56}} 行定义.
|
|
|
|
这是这个函数的调用关系图\+:\nopagebreak
|
|
\begin{figure}[H]
|
|
\begin{center}
|
|
\leavevmode
|
|
\includegraphics[width=350pt]{bsp__flash_8h_af1304997d797af3400074bdb68e5de1c_icgraph}
|
|
\end{center}
|
|
\end{figure}
|