205 lines
7.6 KiB
XML
205 lines
7.6 KiB
XML
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
|
|
<section xmlns="http://docbook.org/ns/docbook" version="5.0" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="_bsp__flash_8h" xml:lang="zh">
|
|
<title>D:/gitt/MicrochipFor32/bsp_Device/bsp_flash.h 文件参考</title>
|
|
<indexterm><primary>D:/gitt/MicrochipFor32/bsp_Device/bsp_flash.h</primary></indexterm>
|
|
<para>
|
|
|
|
<para>写STM32的Flash库 </para>
|
|
|
|
</para>
|
|
<programlisting linenumbering="unnumbered">#include "main.h"<?linebreak?></programlisting>bsp_flash.h 的引用(Include)关系图:<para>
|
|
<informalfigure>
|
|
<mediaobject>
|
|
<imageobject>
|
|
<imagedata width="50%" align="center" valign="middle" scalefit="0" fileref="bsp__flash_8h__incl.png"></imagedata>
|
|
</imageobject>
|
|
</mediaobject>
|
|
</informalfigure>
|
|
</para>
|
|
<simplesect>
|
|
<title>函数 </title>
|
|
<itemizedlist>
|
|
<listitem><para>uint32_t <link linkend="_bsp__flash_8h_1af1304997d797af3400074bdb68e5de1c">bsp_WriteFlashOnePage</link> (uint32_t *dat, uint32_t num)</para>
|
|
|
|
<para>写入一页Flash空间 </para>
|
|
</listitem>
|
|
<listitem><para>void <link linkend="_bsp__flash_8h_1a734a679e19a8af2c7ddfa86f4310a13d">bsp_ReadFlash</link> (uint32_t *dat, uint32_t num)</para>
|
|
|
|
<para>读取一页Flash空间 </para>
|
|
</listitem>
|
|
<listitem><para>void <link linkend="_bsp__flash_8h_1aa1a1ff74b284a19aa3872b6f3d6abd11">bsp_WriteFlash_Pack</link> (void)</para>
|
|
|
|
<para>将一包数据存入Flash </para>
|
|
</listitem>
|
|
<listitem><para>void <link linkend="_bsp__flash_8h_1a45549058e1315d29263c0b26816bcffb">bsp_ReadFlash_Pack</link> (void)</para>
|
|
|
|
<para>从Flash读取一包数据 </para>
|
|
</listitem>
|
|
</itemizedlist>
|
|
</simplesect>
|
|
<section>
|
|
<title>详细描述</title>
|
|
|
|
<para>写STM32的Flash库 </para>
|
|
<para>
|
|
在文件 <link linkend="_bsp__flash_8h_source">bsp_flash.h</link> 中定义.</para>
|
|
</section>
|
|
<section>
|
|
<title>函数说明</title>
|
|
<anchor xml:id="_bsp__flash_8h_1a734a679e19a8af2c7ddfa86f4310a13d"/><section>
|
|
<title>bsp_ReadFlash()</title>
|
|
<indexterm><primary>bsp_ReadFlash</primary><secondary>bsp_flash.h</secondary></indexterm>
|
|
<indexterm><primary>bsp_flash.h</primary><secondary>bsp_ReadFlash</secondary></indexterm>
|
|
<para><computeroutput>void bsp_ReadFlash (uint32_t * dat, uint32_t num)</computeroutput></para><para>
|
|
|
|
<para>读取一页Flash空间 </para>
|
|
</para>
|
|
|
|
<para>
|
|
<formalpara>
|
|
<title>
|
|
参数</title>
|
|
<para>
|
|
<table frame="all">
|
|
<tgroup cols="2" align="left" colsep="1" rowsep="1">
|
|
<colspec colwidth="1*"/>
|
|
<colspec colwidth="4*"/>
|
|
<tbody>
|
|
<row>
|
|
<entry>*dat</entry><entry>
|
|
<para>读取数据的缓冲区 </para>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>num</entry><entry>
|
|
<para>读取数量 </para>
|
|
</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</table>
|
|
</para>
|
|
</formalpara>
|
|
<formalpara><title>返回</title>
|
|
|
|
<para>无返回 </para>
|
|
</formalpara>
|
|
</para>
|
|
<para>
|
|
在文件 <link linkend="_bsp__flash_8c_source">bsp_flash.c</link> 第 <link linkend="_bsp__flash_8c_source_1l00075">75</link> 行定义.</para>
|
|
这是这个函数的调用关系图:<para>
|
|
<informalfigure>
|
|
<mediaobject>
|
|
<imageobject>
|
|
<imagedata width="50%" align="center" valign="middle" scalefit="0" fileref="bsp__flash_8h_a734a679e19a8af2c7ddfa86f4310a13d_icgraph.png"></imagedata>
|
|
</imageobject>
|
|
</mediaobject>
|
|
</informalfigure>
|
|
</para>
|
|
</section>
|
|
<anchor xml:id="_bsp__flash_8h_1a45549058e1315d29263c0b26816bcffb"/><section>
|
|
<title>bsp_ReadFlash_Pack()</title>
|
|
<indexterm><primary>bsp_ReadFlash_Pack</primary><secondary>bsp_flash.h</secondary></indexterm>
|
|
<indexterm><primary>bsp_flash.h</primary><secondary>bsp_ReadFlash_Pack</secondary></indexterm>
|
|
<para><computeroutput>void bsp_ReadFlash_Pack (void )</computeroutput></para><para>
|
|
|
|
<para>从Flash读取一包数据 </para>
|
|
</para>
|
|
|
|
<para><formalpara><title>返回</title>
|
|
|
|
<para>无返回 </para>
|
|
</formalpara>
|
|
</para>
|
|
<para>
|
|
在文件 <link linkend="_bsp__flash_8c_source">bsp_flash.c</link> 第 <link linkend="_bsp__flash_8c_source_1l00091">91</link> 行定义.</para>
|
|
函数调用图:<para>
|
|
<informalfigure>
|
|
<mediaobject>
|
|
<imageobject>
|
|
<imagedata width="50%" align="center" valign="middle" scalefit="0" fileref="bsp__flash_8h_a45549058e1315d29263c0b26816bcffb_cgraph.png"></imagedata>
|
|
</imageobject>
|
|
</mediaobject>
|
|
</informalfigure>
|
|
</para>
|
|
</section>
|
|
<anchor xml:id="_bsp__flash_8h_1aa1a1ff74b284a19aa3872b6f3d6abd11"/><section>
|
|
<title>bsp_WriteFlash_Pack()</title>
|
|
<indexterm><primary>bsp_WriteFlash_Pack</primary><secondary>bsp_flash.h</secondary></indexterm>
|
|
<indexterm><primary>bsp_flash.h</primary><secondary>bsp_WriteFlash_Pack</secondary></indexterm>
|
|
<para><computeroutput>void bsp_WriteFlash_Pack (void )</computeroutput></para><para>
|
|
|
|
<para>将一包数据存入Flash </para>
|
|
</para>
|
|
|
|
<para><formalpara><title>返回</title>
|
|
|
|
<para>无返回 </para>
|
|
</formalpara>
|
|
</para>
|
|
<para>
|
|
在文件 <link linkend="_bsp__flash_8c_source">bsp_flash.c</link> 第 <link linkend="_bsp__flash_8c_source_1l00083">83</link> 行定义.</para>
|
|
函数调用图:<para>
|
|
<informalfigure>
|
|
<mediaobject>
|
|
<imageobject>
|
|
<imagedata width="50%" align="center" valign="middle" scalefit="0" fileref="bsp__flash_8h_aa1a1ff74b284a19aa3872b6f3d6abd11_cgraph.png"></imagedata>
|
|
</imageobject>
|
|
</mediaobject>
|
|
</informalfigure>
|
|
</para>
|
|
</section>
|
|
<anchor xml:id="_bsp__flash_8h_1af1304997d797af3400074bdb68e5de1c"/><section>
|
|
<title>bsp_WriteFlashOnePage()</title>
|
|
<indexterm><primary>bsp_WriteFlashOnePage</primary><secondary>bsp_flash.h</secondary></indexterm>
|
|
<indexterm><primary>bsp_flash.h</primary><secondary>bsp_WriteFlashOnePage</secondary></indexterm>
|
|
<para><computeroutput>uint32_t bsp_WriteFlashOnePage (uint32_t * dat, uint32_t num)</computeroutput></para><para>
|
|
|
|
<para>写入一页Flash空间 </para>
|
|
</para>
|
|
|
|
<para>
|
|
<formalpara>
|
|
<title>
|
|
参数</title>
|
|
<para>
|
|
<table frame="all">
|
|
<tgroup cols="2" align="left" colsep="1" rowsep="1">
|
|
<colspec colwidth="1*"/>
|
|
<colspec colwidth="4*"/>
|
|
<tbody>
|
|
<row>
|
|
<entry>*dat</entry><entry>
|
|
<para>要写入的数据 </para>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>num</entry><entry>
|
|
<para>要写入的数量 </para>
|
|
</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</table>
|
|
</para>
|
|
</formalpara>
|
|
<formalpara><title>返回</title>
|
|
|
|
<para>返回0则成功 </para>
|
|
</formalpara>
|
|
</para>
|
|
<para>
|
|
在文件 <link linkend="_bsp__flash_8c_source">bsp_flash.c</link> 第 <link linkend="_bsp__flash_8c_source_1l00056">56</link> 行定义.</para>
|
|
这是这个函数的调用关系图:<para>
|
|
<informalfigure>
|
|
<mediaobject>
|
|
<imageobject>
|
|
<imagedata width="50%" align="center" valign="middle" scalefit="0" fileref="bsp__flash_8h_af1304997d797af3400074bdb68e5de1c_icgraph.png"></imagedata>
|
|
</imageobject>
|
|
</mediaobject>
|
|
</informalfigure>
|
|
</para>
|
|
</section>
|
|
</section>
|
|
</section>
|