184 lines
7.4 KiB
TeX
184 lines
7.4 KiB
TeX
\hypertarget{bsp__flash_8c}{}\doxysection{D\+:/gitt/\+Microchip\+For32/bsp\+\_\+\+Device/bsp\+\_\+flash.c 文件参考}
|
|
\label{bsp__flash_8c}\index{D:/gitt/MicrochipFor32/bsp\_Device/bsp\_flash.c@{D:/gitt/MicrochipFor32/bsp\_Device/bsp\_flash.c}}
|
|
|
|
|
|
写\+STM32的\+Flash库
|
|
|
|
|
|
{\ttfamily \#include \char`\"{}main.\+h\char`\"{}}\newline
|
|
bsp\+\_\+flash.\+c 的引用(Include)关系图\+:\nopagebreak
|
|
\begin{figure}[H]
|
|
\begin{center}
|
|
\leavevmode
|
|
\includegraphics[width=202pt]{bsp__flash_8c__incl}
|
|
\end{center}
|
|
\end{figure}
|
|
\doxysubsection*{类}
|
|
\begin{DoxyCompactItemize}
|
|
\item
|
|
struct \mbox{\hyperlink{structstruct__bsp___flash___pack}{struct\+\_\+bsp\+\_\+\+Flash\+\_\+\+Pack}}
|
|
\begin{DoxyCompactList}\small\item\em 一包数据的内容 \end{DoxyCompactList}\end{DoxyCompactItemize}
|
|
\doxysubsection*{函数}
|
|
\begin{DoxyCompactItemize}
|
|
\item
|
|
uint32\+\_\+t \mbox{\hyperlink{bsp__flash_8c_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_8c_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_8c_aa1a1ff74b284a19aa3872b6f3d6abd11}{bsp\+\_\+\+Write\+Flash\+\_\+\+Pack}} (void)
|
|
\begin{DoxyCompactList}\small\item\em 将一包数据存入\+Flash \end{DoxyCompactList}\item
|
|
void \mbox{\hyperlink{bsp__flash_8c_a45549058e1315d29263c0b26816bcffb}{bsp\+\_\+\+Read\+Flash\+\_\+\+Pack}} (void)
|
|
\begin{DoxyCompactList}\small\item\em 从\+Flash读取一包数据 \end{DoxyCompactList}\end{DoxyCompactItemize}
|
|
\doxysubsection*{变量}
|
|
\begin{DoxyCompactItemize}
|
|
\item
|
|
uint32\+\_\+t \mbox{\hyperlink{bsp__flash_8c_a37cd1b57193a374f9a86b6cf1277cd0a}{Flash\+Addr}} = 0x08010000
|
|
\begin{DoxyCompactList}\small\item\em 读写\+Flash起始地址,跳过程序部分 \end{DoxyCompactList}\item
|
|
struct \mbox{\hyperlink{structstruct__bsp___flash___pack}{struct\+\_\+bsp\+\_\+\+Flash\+\_\+\+Pack}} \mbox{\hyperlink{bsp__flash_8c_a2c0639c4d50bba3762a4295a56a06af8}{bsp\+\_\+\+Flash\+\_\+\+Pack}} =\{0,0,0\}
|
|
\end{DoxyCompactItemize}
|
|
|
|
|
|
\doxysubsection{详细描述}
|
|
写\+STM32的\+Flash库
|
|
|
|
|
|
|
|
在文件 \mbox{\hyperlink{bsp__flash_8c_source}{bsp\+\_\+flash.\+c}} 中定义.
|
|
|
|
|
|
|
|
\doxysubsection{函数说明}
|
|
\mbox{\Hypertarget{bsp__flash_8c_a734a679e19a8af2c7ddfa86f4310a13d}\label{bsp__flash_8c_a734a679e19a8af2c7ddfa86f4310a13d}}
|
|
\index{bsp\_flash.c@{bsp\_flash.c}!bsp\_ReadFlash@{bsp\_ReadFlash}}
|
|
\index{bsp\_ReadFlash@{bsp\_ReadFlash}!bsp\_flash.c@{bsp\_flash.c}}
|
|
\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_8c_a734a679e19a8af2c7ddfa86f4310a13d_icgraph}
|
|
\end{center}
|
|
\end{figure}
|
|
\mbox{\Hypertarget{bsp__flash_8c_a45549058e1315d29263c0b26816bcffb}\label{bsp__flash_8c_a45549058e1315d29263c0b26816bcffb}}
|
|
\index{bsp\_flash.c@{bsp\_flash.c}!bsp\_ReadFlash\_Pack@{bsp\_ReadFlash\_Pack}}
|
|
\index{bsp\_ReadFlash\_Pack@{bsp\_ReadFlash\_Pack}!bsp\_flash.c@{bsp\_flash.c}}
|
|
\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_8c_a45549058e1315d29263c0b26816bcffb_cgraph}
|
|
\end{center}
|
|
\end{figure}
|
|
\mbox{\Hypertarget{bsp__flash_8c_aa1a1ff74b284a19aa3872b6f3d6abd11}\label{bsp__flash_8c_aa1a1ff74b284a19aa3872b6f3d6abd11}}
|
|
\index{bsp\_flash.c@{bsp\_flash.c}!bsp\_WriteFlash\_Pack@{bsp\_WriteFlash\_Pack}}
|
|
\index{bsp\_WriteFlash\_Pack@{bsp\_WriteFlash\_Pack}!bsp\_flash.c@{bsp\_flash.c}}
|
|
\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_8c_aa1a1ff74b284a19aa3872b6f3d6abd11_cgraph}
|
|
\end{center}
|
|
\end{figure}
|
|
\mbox{\Hypertarget{bsp__flash_8c_af1304997d797af3400074bdb68e5de1c}\label{bsp__flash_8c_af1304997d797af3400074bdb68e5de1c}}
|
|
\index{bsp\_flash.c@{bsp\_flash.c}!bsp\_WriteFlashOnePage@{bsp\_WriteFlashOnePage}}
|
|
\index{bsp\_WriteFlashOnePage@{bsp\_WriteFlashOnePage}!bsp\_flash.c@{bsp\_flash.c}}
|
|
\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_8c_af1304997d797af3400074bdb68e5de1c_icgraph}
|
|
\end{center}
|
|
\end{figure}
|
|
|
|
|
|
\doxysubsection{变量说明}
|
|
\mbox{\Hypertarget{bsp__flash_8c_a2c0639c4d50bba3762a4295a56a06af8}\label{bsp__flash_8c_a2c0639c4d50bba3762a4295a56a06af8}}
|
|
\index{bsp\_flash.c@{bsp\_flash.c}!bsp\_Flash\_Pack@{bsp\_Flash\_Pack}}
|
|
\index{bsp\_Flash\_Pack@{bsp\_Flash\_Pack}!bsp\_flash.c@{bsp\_flash.c}}
|
|
\doxysubsubsection{\texorpdfstring{bsp\_Flash\_Pack}{bsp\_Flash\_Pack}}
|
|
{\footnotesize\ttfamily struct \mbox{\hyperlink{structstruct__bsp___flash___pack}{struct\+\_\+bsp\+\_\+\+Flash\+\_\+\+Pack}} bsp\+\_\+\+Flash\+\_\+\+Pack =\{0,0,0\}}
|
|
|
|
\mbox{\Hypertarget{bsp__flash_8c_a37cd1b57193a374f9a86b6cf1277cd0a}\label{bsp__flash_8c_a37cd1b57193a374f9a86b6cf1277cd0a}}
|
|
\index{bsp\_flash.c@{bsp\_flash.c}!FlashAddr@{FlashAddr}}
|
|
\index{FlashAddr@{FlashAddr}!bsp\_flash.c@{bsp\_flash.c}}
|
|
\doxysubsubsection{\texorpdfstring{FlashAddr}{FlashAddr}}
|
|
{\footnotesize\ttfamily uint32\+\_\+t Flash\+Addr = 0x08010000}
|
|
|
|
|
|
|
|
读写\+Flash起始地址,跳过程序部分
|
|
|
|
|
|
|
|
在文件 \mbox{\hyperlink{bsp__flash_8c_source}{bsp\+\_\+flash.\+c}} 第 \mbox{\hyperlink{bsp__flash_8c_source_l00036}{36}} 行定义.
|
|
|