加入BMP库,加入常见位操作

This commit is contained in:
XerolySkinner
2022-11-24 23:56:57 +08:00
parent f6b6ac1329
commit 01324e987e
709 changed files with 17019 additions and 2341 deletions

View File

@@ -1 +1 @@
e7b7448de58aa8208e7960fb60ae7b2e
5bab8e68f70fe52778862a603056e696

View File

@@ -53,7 +53,7 @@
</note>
</para>
<para><para><link linkend="_todo_1_todo000004">待办事项</link>
<para><para><link linkend="_todo_1_todo000005">待办事项</link>
<para>在此处填写初始化程序 </para>
</para></para>
<para>
@@ -74,7 +74,7 @@
</note>
</para>
<para><para><link linkend="_todo_1_todo000005">待办事项</link>
<para><para><link linkend="_todo_1_todo000006">待办事项</link>
<para>在此处填写主进程程序 </para>
</para></para>
<para>

View File

@@ -1 +1 @@
67d0e1b885952c083a9768e4b37b1985
f25aa9f7b8ab9d88a2fc41212e3aa10d

View File

@@ -1 +1 @@
90af04557dc9c56e2f6a6cc134d1cec3
7805f3714805f8d591903a61a333fb2b

View File

@@ -1 +1 @@
6334a3d6ac3689685a982fa2c33b6afc
7b91003566bc6c92539fcff6b97182e8

View File

@@ -1 +1 @@
025cc28edebf45961573d7ca05741fae
1a58c98eea298b03785002ed51d8cb9f

View File

@@ -1 +1 @@
51bfe6773d4708df113f1d8bc5c490a3
1b18a3f52c5dfd8576e55b5632f8ab5c

View File

@@ -1,10 +1,22 @@
<?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="_annotated" xml:lang="zh">
<title>类列表</title>
这里列出了所有类、结构、联合以及接口定义等,并附带简要说明:<link linkend="_struct__l_queue">_lQueue</link>
这里列出了所有类、结构、联合以及接口定义等,并附带简要说明:<link linkend="_struct___b_i_t_m_a_p_f_i_l_e_h_e_a_d_e_r">_BITMAPFILEHEADER</link>
<para>位图文件头 </para>
<link linkend="_struct___b_i_t_m_a_p_i_n_f_o">_BITMAPINFO</link>
<para>BMP文件头 </para>
<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r">_BITMAPINFOHEADER</link>
<para>位图信息头 </para>
<link linkend="_struct__l_queue">_lQueue</link>
<para>链表方式队列的节点 </para>
<link linkend="_struct__l_stack">_lStack</link>
<para>链表方式栈的节点 </para>
<link linkend="_struct___r_g_b_q_u_a_d">_RGBQUAD</link>
<para>调色板 </para>
<link linkend="_classbsp___b_m_p">bsp_BMP</link>
<para>构建一个BMP类 </para>
<link linkend="_classbsp___differential">bsp_Differential</link>
<para>一个微分对象 </para>
<link linkend="_classbsp___digit">bsp_Digit</link>
<para>一个面向数码管的类,使用级联的HC595 </para>
<link linkend="_classbsp___i_i_c">bsp_IIC</link>
@@ -13,6 +25,8 @@
<para>STM32版本的软件IIC 需要使用构造函数初始化 </para>
<link linkend="_classbsp___increment___p_i_d">bsp_Increment_PID</link>
<para>增量法为基础的PID算法 </para>
<link linkend="_classbsp___integral">bsp_Integral</link>
<para>一个积分对象 </para>
<link linkend="_classbsp___m_a_x6675">bsp_MAX6675</link>
<para>MAX6675的一个对象类 </para>
<link linkend="_classbsp___mod_bus___rx">bsp_ModBus_Rx</link>
@@ -37,4 +51,6 @@
<para>一个队列的类 </para>
<link linkend="_class_s_t_l__r_stack">STL_rStack</link>
<para>一个栈的类 </para>
<link linkend="_structstruct__bsp___flash___pack">struct_bsp_Flash_Pack</link>
<para>一包数据的内容 </para>
</section>

View File

@@ -1 +1 @@
d61ffd2905d340d645e707b5a5ccb2ab
fa6d9bad0974502bf315402daec889e6

View File

@@ -1 +1 @@
4ccbfa877159501e44b1eb20e3802283
d507a468f35921a28d8c0eab99251a9e

View File

@@ -0,0 +1,26 @@
<?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___b_m_p_8cpp" xml:lang="zh">
<title>D:/gitt/MicrochipFor32/bsp_Device/bsp_BMP.cpp 文件参考</title>
<indexterm><primary>D:/gitt/MicrochipFor32/bsp_Device/bsp_BMP.cpp</primary></indexterm>
<para>
<para>用来构造BMP图片 </para>
</para>
<programlisting linenumbering="unnumbered">#include &quot;bsp_BMP.h&quot;<?linebreak?></programlisting>bsp_BMP.cpp 的引用(Include)关系图:<para>
<informalfigure>
<mediaobject>
<imageobject>
<imagedata width="50%" align="center" valign="middle" scalefit="0" fileref="bsp___b_m_p_8cpp__incl.png"></imagedata>
</imageobject>
</mediaobject>
</informalfigure>
</para>
<section>
<title>详细描述</title>
<para>用来构造BMP图片 </para>
<para>
在文件 <link linkend="_bsp___b_m_p_8cpp_source">bsp_BMP.cpp</link> 中定义.</para>
</section>
</section>

View File

@@ -0,0 +1 @@
062ea6b48affc70ad7d3050fce0d2429

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

View File

@@ -0,0 +1,86 @@
<?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___b_m_p_8cpp_source" xml:lang="zh">
<title>bsp_BMP.cpp</title>
<indexterm><primary>D:/gitt/MicrochipFor32/bsp_Device/bsp_BMP.cpp</primary></indexterm>
浏览该文件的文档.<programlisting linenumbering="unnumbered"><anchor xml:id="_bsp___b_m_p_8cpp_source_1l00001"/>00001 <emphasis role="comment">/*----------------------------------------------------------------------------------------------------</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00002"/>00002 <emphasis role="comment">&#32;#</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00003"/>00003 <emphasis role="comment">&#32;#&#32;&#32;Copyright&#32;(c)&#32;2022&#32;Yuankang&#32;Liang(XerolySkinner)</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00004"/>00004 <emphasis role="comment">&#32;#</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00005"/>00005 <emphasis role="comment">&#32;#&#32;&#32;本软件按原样提供,无任何明示或暗示</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00006"/>00006 <emphasis role="comment">&#32;#&#32;&#32;在任何情况下,作者都不承担任何损害赔偿责任</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00007"/>00007 <emphasis role="comment">&#32;#</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00008"/>00008 <emphasis role="comment">&#32;#&#32;&#32;使用的许可声明:</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00009"/>00009 <emphasis role="comment">&#32;#&#32;&#32;1.&#32;&#32;不得歪曲本软件的来源,你不能声称你编写了原始软件.</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00010"/>00010 <emphasis role="comment">&#32;#&#32;&#32;2.&#32;&#32;免费授予以任何目的,前提是版权声明出现在所有副本中.</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00011"/>00011 <emphasis role="comment">&#32;#&#32;&#32;&#32;&#32;&#32;&#32;并且版权声明和许可声明同时出现.</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00012"/>00012 <emphasis role="comment">&#32;#&#32;&#32;3.&#32;&#32;你有使用,复制,修改,分发,和销售本软件的许可.</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00013"/>00013 <emphasis role="comment">&#32;#&#32;&#32;4.&#32;&#32;如果你在产品中使用,产品文档中的声明是赞赏的但不是必须的.</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00014"/>00014 <emphasis role="comment">&#32;#&#32;&#32;5.&#32;&#32;本通知不得从任何来源删除或更改.</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00015"/>00015 <emphasis role="comment">&#32;#</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00016"/>00016 <emphasis role="comment">&#32;#&#32;&#32;Yuankang&#32;Liang(XerolySkinner)</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00017"/>00017 <emphasis role="comment">&#32;#&#32;&#32;&#32;&#32;&#32;&#32;E-mail:zabbcccbbaz@163.com</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00018"/>00018 <emphasis role="comment">&#32;#&#32;&#32;&#32;&#32;&#32;&#32;QQ:2715099320</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00019"/>00019 <emphasis role="comment">&#32;#&#32;&#32;&#32;&#32;&#32;&#32;Mobile&#32;Phone:13005636215</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00020"/>00020 <emphasis role="comment">&#32;#</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00021"/>00021 <emphasis role="comment">&#32;#&#32;&#32;All&#32;rights&#32;reserved.</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00022"/>00022 <emphasis role="comment">&#32;*/</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00023"/>00023
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00034"/>00034 <emphasis role="comment">//----------------------------------------------------------------------------------------------------</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00035"/>00035 <emphasis role="comment">//&#32;&#32;头文件</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00036"/>00036 <emphasis role="preprocessor">#include&#32;&quot;<link linkend="_bsp___b_m_p_8h">bsp_BMP.h</link>&quot;</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00038"/>00038 <emphasis role="comment">//----------------------------------------------------------------------------------------------------</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00039"/>00039 <emphasis role="comment">//&#32;&#32;类函数</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00045"/><link linkend="_classbsp___b_m_p_1a4aaa5a2ea2f5b3c07c8e16009984766e">00045</link> <emphasis role="comment"></emphasis><emphasis role="keywordtype">void</emphasis>&#32;<link linkend="_classbsp___b_m_p_1a4aaa5a2ea2f5b3c07c8e16009984766e">bsp_BMP::pels</link>(<link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link>&#32;x,&#32;<link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link>&#32;y)&#32;{
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00046"/>00046 &#32;&#32;&#32;&#32;<link linkend="_classbsp___b_m_p_1a64dcf31f5722327336d87794b873a335">bsp_BMP::BITMAPINFO</link>.<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_1a7d9eafe9a3374cd06dc22fda1af98b6d">bmiHeader</link>.<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a6a7eb9da9dfb7790486523dac6c4b6c2">biXPelsPerMeter</link>&#32;=&#32;x;
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00047"/>00047 &#32;&#32;&#32;&#32;<link linkend="_classbsp___b_m_p_1a64dcf31f5722327336d87794b873a335">bsp_BMP::BITMAPINFO</link>.<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_1a7d9eafe9a3374cd06dc22fda1af98b6d">bmiHeader</link>.<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a0c830c96c45441edc35a5397bc86ace0">biYPelsPerMeter</link>&#32;=&#32;y;}
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00052"/><link linkend="_classbsp___b_m_p_1ae0e2551a06b8ad966a86b2c8324da25c">00052</link> <link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link>&#32;<link linkend="_classbsp___b_m_p_1ae0e2551a06b8ad966a86b2c8324da25c">bsp_BMP::giveData</link>(<emphasis role="keywordtype">void</emphasis>)&#32;{
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00053"/>00053 &#32;&#32;&#32;&#32;free(<link linkend="_classbsp___b_m_p_1a2023aceaef140268a12bc61b81d410ca">dat</link>);
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00054"/>00054 &#32;&#32;&#32;&#32;<link linkend="_classbsp___b_m_p_1a2023aceaef140268a12bc61b81d410ca">dat</link>&#32;=&#32;(<link linkend="_varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca">u8</link>*)malloc(<link linkend="_classbsp___b_m_p_1a8a1c31ee70ed4061ad8bea4254959b83">Size</link>);
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00055"/>00055 &#32;&#32;&#32;&#32;<emphasis role="keywordflow">return</emphasis>&#32;(<link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link>)<link linkend="_classbsp___b_m_p_1a2023aceaef140268a12bc61b81d410ca">dat</link>;}
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00059"/><link linkend="_classbsp___b_m_p_1abe5d545dea1090a228843f140650f573">00059</link> <emphasis role="keywordtype">void</emphasis>&#32;<link linkend="_classbsp___b_m_p_1abe5d545dea1090a228843f140650f573">bsp_BMP::delData</link>(<emphasis role="keywordtype">void</emphasis>)&#32;{
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00060"/>00060 &#32;&#32;&#32;&#32;free(<link linkend="_classbsp___b_m_p_1a2023aceaef140268a12bc61b81d410ca">dat</link>);}
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00068"/><link linkend="_classbsp___b_m_p_1a17c0c014ef6ce7d09a5dd81c5d2c5d57">00068</link> <emphasis role="keywordtype">void</emphasis>&#32;<link linkend="_classbsp___b_m_p_1a17c0c014ef6ce7d09a5dd81c5d2c5d57">bsp_BMP::ColorsSet</link>(<link linkend="_varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca">u8</link>&#32;R,&#32;<link linkend="_varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca">u8</link>&#32;G,&#32;<link linkend="_varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca">u8</link>&#32;B,<link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link>&#32;i)&#32;{
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00069"/>00069 &#32;&#32;&#32;&#32;<link linkend="_classbsp___b_m_p_1a64dcf31f5722327336d87794b873a335">BITMAPINFO</link>.<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_1ab5fe5744a8fe46833743bc6b5cf72a49">bmiColors</link>[i].<link linkend="_struct___r_g_b_q_u_a_d_1ad26ba005b107e31a81b9e3e981ca9f1d">rgbBlue</link>&#32;=&#32;B;
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00070"/>00070 &#32;&#32;&#32;&#32;<link linkend="_classbsp___b_m_p_1a64dcf31f5722327336d87794b873a335">BITMAPINFO</link>.<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_1ab5fe5744a8fe46833743bc6b5cf72a49">bmiColors</link>[i].<link linkend="_struct___r_g_b_q_u_a_d_1a2e445545aae97ebab36603942d3780d1">rgbGreen</link>&#32;=&#32;G;
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00071"/>00071 &#32;&#32;&#32;&#32;<link linkend="_classbsp___b_m_p_1a64dcf31f5722327336d87794b873a335">BITMAPINFO</link>.<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_1ab5fe5744a8fe46833743bc6b5cf72a49">bmiColors</link>[i].<link linkend="_struct___r_g_b_q_u_a_d_1a9756faed264a45ead4f89567e807247f">rgbRed</link>&#32;=&#32;R;
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00072"/>00072 &#32;&#32;&#32;&#32;<link linkend="_classbsp___b_m_p_1a64dcf31f5722327336d87794b873a335">BITMAPINFO</link>.<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_1ab5fe5744a8fe46833743bc6b5cf72a49">bmiColors</link>[i].<link linkend="_struct___r_g_b_q_u_a_d_1a742c7421feef58afb68308d3643bd924">rgbReserved</link>&#32;=&#32;0;}
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00078"/><link linkend="_classbsp___b_m_p_1a535cd9bfe5e49ba97ff9c4a1dd8ebb51">00078</link> <emphasis role="keywordtype">void</emphasis>&#32;<link linkend="_classbsp___b_m_p_1a535cd9bfe5e49ba97ff9c4a1dd8ebb51">bsp_BMP::sizeSet</link>(<link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link>&#32;x,&#32;<link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link>&#32;y)&#32;{
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00079"/>00079 &#32;&#32;&#32;&#32;free(<link linkend="_classbsp___b_m_p_1a2023aceaef140268a12bc61b81d410ca">dat</link>);
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00080"/>00080 &#32;&#32;&#32;&#32;<link linkend="_classbsp___b_m_p_1a8a1c31ee70ed4061ad8bea4254959b83">Size</link>&#32;=&#32;x&#32;*&#32;y;
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00081"/>00081 &#32;&#32;&#32;&#32;<link linkend="_classbsp___b_m_p_1a64dcf31f5722327336d87794b873a335">BITMAPINFO</link>.<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_1a7d9eafe9a3374cd06dc22fda1af98b6d">bmiHeader</link>.<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a28dd4e1f56936b64f6e01db9b2d171f2">biWidth</link>&#32;=&#32;x;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//&#32;&#32;色彩宽度</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00082"/>00082 &#32;&#32;&#32;&#32;<link linkend="_classbsp___b_m_p_1a64dcf31f5722327336d87794b873a335">BITMAPINFO</link>.<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_1a7d9eafe9a3374cd06dc22fda1af98b6d">bmiHeader</link>.<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a9f6c38749a3b5f8b261be7a6556cf97a">biHeight</link>&#32;=&#32;y;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//&#32;&#32;色彩高度</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00083"/>00083 &#32;&#32;&#32;&#32;<link linkend="_classbsp___b_m_p_1a64dcf31f5722327336d87794b873a335">BITMAPINFO</link>.<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_1a3356c2aeed730cf31d05fd09244ecbce">bmfHeader</link>.<link linkend="_struct___b_i_t_m_a_p_f_i_l_e_h_e_a_d_e_r_1af53728df68db96b9decc5100bc1bf7e0">bfOffBits</link>&#32;=
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00084"/>00084 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="keyword">sizeof</emphasis>(<link linkend="_struct___b_i_t_m_a_p_i_n_f_o">_BITMAPINFO</link>);&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//&#32;&#32;位图数据偏倚</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00085"/>00085 &#32;&#32;&#32;&#32;<link linkend="_classbsp___b_m_p_1a64dcf31f5722327336d87794b873a335">BITMAPINFO</link>.<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_1a3356c2aeed730cf31d05fd09244ecbce">bmfHeader</link>.<link linkend="_struct___b_i_t_m_a_p_f_i_l_e_h_e_a_d_e_r_1a1bd9726a58f87d278efa58d6d7c70a81">bfSize</link>&#32;=
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00086"/>00086 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;x&#32;*&#32;y&#32;+
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00087"/>00087 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<link linkend="_classbsp___b_m_p_1a64dcf31f5722327336d87794b873a335">BITMAPINFO</link>.<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_1a3356c2aeed730cf31d05fd09244ecbce">bmfHeader</link>.<link linkend="_struct___b_i_t_m_a_p_f_i_l_e_h_e_a_d_e_r_1af53728df68db96b9decc5100bc1bf7e0">bfOffBits</link>;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//&#32;&#32;文件大小</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00088"/>00088 &#32;&#32;&#32;&#32;}
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00090"/>00090 <emphasis role="comment">//----------------------------------------------------------------------------------------------------</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00091"/>00091 <emphasis role="comment">//&#32;&#32;构造函数</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00097"/><link linkend="_classbsp___b_m_p_1a27d05488822dc9548e0783d46808a1db">00097</link> <emphasis role="comment"></emphasis><link linkend="_classbsp___b_m_p_1a27d05488822dc9548e0783d46808a1db">bsp_BMP::bsp_BMP</link>(<link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link>&#32;Width,&#32;<link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link>&#32;Height)&#32;{
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00098"/>00098 &#32;&#32;&#32;&#32;<link linkend="_classbsp___b_m_p_1a2023aceaef140268a12bc61b81d410ca">bsp_BMP::dat</link>&#32;=&#32;NULL;
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00099"/>00099 &#32;&#32;&#32;&#32;<link linkend="_classbsp___b_m_p_1a8a1c31ee70ed4061ad8bea4254959b83">bsp_BMP::Size</link>&#32;=&#32;Width&#32;*&#32;Height;
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00100"/>00100 &#32;&#32;&#32;&#32;<link linkend="_classbsp___b_m_p_1a64dcf31f5722327336d87794b873a335">BITMAPINFO</link>.<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_1a7d9eafe9a3374cd06dc22fda1af98b6d">bmiHeader</link>.<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a28dd4e1f56936b64f6e01db9b2d171f2">biWidth</link>&#32;=&#32;Width;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//&#32;&#32;色彩宽度</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00101"/>00101 &#32;&#32;&#32;&#32;<link linkend="_classbsp___b_m_p_1a64dcf31f5722327336d87794b873a335">BITMAPINFO</link>.<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_1a7d9eafe9a3374cd06dc22fda1af98b6d">bmiHeader</link>.<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a9f6c38749a3b5f8b261be7a6556cf97a">biHeight</link>&#32;=&#32;Height;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//&#32;&#32;色彩高度</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00102"/>00102 &#32;&#32;&#32;&#32;<link linkend="_classbsp___b_m_p_1a64dcf31f5722327336d87794b873a335">BITMAPINFO</link>.<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_1a3356c2aeed730cf31d05fd09244ecbce">bmfHeader</link>.<link linkend="_struct___b_i_t_m_a_p_f_i_l_e_h_e_a_d_e_r_1a6810e258839bc4345e2036af20e607db">bfType</link>&#32;=&#32;0x4D42;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//&#32;&#32;恒为保护字</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00103"/>00103 &#32;&#32;&#32;&#32;<link linkend="_classbsp___b_m_p_1a64dcf31f5722327336d87794b873a335">BITMAPINFO</link>.<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_1a3356c2aeed730cf31d05fd09244ecbce">bmfHeader</link>.<link linkend="_struct___b_i_t_m_a_p_f_i_l_e_h_e_a_d_e_r_1a71c78132cda5e8b032fb4f549ec9a14a">bfReserved1</link>&#32;=&#32;0;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//&#32;&#32;保留字</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00104"/>00104 &#32;&#32;&#32;&#32;<link linkend="_classbsp___b_m_p_1a64dcf31f5722327336d87794b873a335">BITMAPINFO</link>.<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_1a3356c2aeed730cf31d05fd09244ecbce">bmfHeader</link>.<link linkend="_struct___b_i_t_m_a_p_f_i_l_e_h_e_a_d_e_r_1a3f69e4551c8fee241e5a4cd224c64f50">bfReserved2</link>&#32;=&#32;0;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//&#32;&#32;保留字</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00105"/>00105 &#32;&#32;&#32;&#32;<link linkend="_classbsp___b_m_p_1a64dcf31f5722327336d87794b873a335">BITMAPINFO</link>.<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_1a7d9eafe9a3374cd06dc22fda1af98b6d">bmiHeader</link>.<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1aef77b295d3a4b6540873c9e0d2ef53d2">biCompression</link>&#32;=&#32;0;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//&#32;&#32;无压缩</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00106"/>00106 &#32;&#32;&#32;&#32;<link linkend="_classbsp___b_m_p_1a64dcf31f5722327336d87794b873a335">BITMAPINFO</link>.<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_1a7d9eafe9a3374cd06dc22fda1af98b6d">bmiHeader</link>.<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a0fa85188799eb931e2a03c887751a89e">biSizeImage</link>&#32;=&#32;0;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//&#32;&#32;无压缩下为0</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00107"/>00107 &#32;&#32;&#32;&#32;<link linkend="_classbsp___b_m_p_1a64dcf31f5722327336d87794b873a335">BITMAPINFO</link>.<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_1a7d9eafe9a3374cd06dc22fda1af98b6d">bmiHeader</link>.<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a42d10de030492301ff4a3d5cfb91c2dd">biPlanes</link>&#32;=&#32;1;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//&#32;&#32;恒为保护字</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00108"/>00108 &#32;&#32;&#32;&#32;<link linkend="_classbsp___b_m_p_1a64dcf31f5722327336d87794b873a335">BITMAPINFO</link>.<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_1a7d9eafe9a3374cd06dc22fda1af98b6d">bmiHeader</link>.<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a1bb27f668cbed1ce6523e7042962a0e7">biClrUsed</link>&#32;=&#32;0;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//&#32;&#32;使用全部颜色</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00109"/>00109 &#32;&#32;&#32;&#32;<link linkend="_classbsp___b_m_p_1a64dcf31f5722327336d87794b873a335">BITMAPINFO</link>.<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_1a7d9eafe9a3374cd06dc22fda1af98b6d">bmiHeader</link>.<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a4ee52fd1ab5c173a6e54444d1ec61dab">biClrImportant</link>&#32;=&#32;0;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//&#32;&#32;全部颜色都重要</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00110"/>00110 &#32;&#32;&#32;&#32;<link linkend="_classbsp___b_m_p_1a64dcf31f5722327336d87794b873a335">BITMAPINFO</link>.<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_1a7d9eafe9a3374cd06dc22fda1af98b6d">bmiHeader</link>.<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a6a7eb9da9dfb7790486523dac6c4b6c2">biXPelsPerMeter</link>&#32;=&#32;0;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//&#32;&#32;像素-不太重要</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00111"/>00111 &#32;&#32;&#32;&#32;<link linkend="_classbsp___b_m_p_1a64dcf31f5722327336d87794b873a335">BITMAPINFO</link>.<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_1a7d9eafe9a3374cd06dc22fda1af98b6d">bmiHeader</link>.<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a0c830c96c45441edc35a5397bc86ace0">biYPelsPerMeter</link>&#32;=&#32;0;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//&#32;&#32;像素-不太重要</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00112"/>00112 &#32;&#32;&#32;&#32;<link linkend="_classbsp___b_m_p_1a64dcf31f5722327336d87794b873a335">BITMAPINFO</link>.<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_1a7d9eafe9a3374cd06dc22fda1af98b6d">bmiHeader</link>.<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a750a301fb5962c5fc2b7fac173d96bdf">biSize</link>&#32;=&#32;40;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//&#32;&#32;信息头大小</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00113"/>00113 &#32;&#32;&#32;&#32;<link linkend="_classbsp___b_m_p_1a64dcf31f5722327336d87794b873a335">BITMAPINFO</link>.<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_1a3356c2aeed730cf31d05fd09244ecbce">bmfHeader</link>.<link linkend="_struct___b_i_t_m_a_p_f_i_l_e_h_e_a_d_e_r_1af53728df68db96b9decc5100bc1bf7e0">bfOffBits</link>&#32;=&#32;
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00114"/>00114 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="keyword">sizeof</emphasis>(<link linkend="_struct___b_i_t_m_a_p_i_n_f_o">_BITMAPINFO</link>);&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//&#32;&#32;位图数据偏倚</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00115"/>00115 &#32;&#32;&#32;&#32;<link linkend="_classbsp___b_m_p_1a64dcf31f5722327336d87794b873a335">BITMAPINFO</link>.<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_1a3356c2aeed730cf31d05fd09244ecbce">bmfHeader</link>.<link linkend="_struct___b_i_t_m_a_p_f_i_l_e_h_e_a_d_e_r_1a1bd9726a58f87d278efa58d6d7c70a81">bfSize</link>&#32;=&#32;
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00116"/>00116 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;Width&#32;*&#32;Height+&#32;
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00117"/>00117 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<link linkend="_classbsp___b_m_p_1a64dcf31f5722327336d87794b873a335">BITMAPINFO</link>.<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_1a3356c2aeed730cf31d05fd09244ecbce">bmfHeader</link>.<link linkend="_struct___b_i_t_m_a_p_f_i_l_e_h_e_a_d_e_r_1af53728df68db96b9decc5100bc1bf7e0">bfOffBits</link>;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//&#32;&#32;文件大小</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00118"/>00118 &#32;&#32;&#32;&#32;<link linkend="_classbsp___b_m_p_1a64dcf31f5722327336d87794b873a335">BITMAPINFO</link>.<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_1a7d9eafe9a3374cd06dc22fda1af98b6d">bmiHeader</link>.<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a98f05ea6cc8388d3ca701a834b04a286">biBitCount</link>&#32;=&#32;8;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//&#32;&#32;色彩深度</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00119"/>00119 &#32;&#32;&#32;&#32;}
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00120"/>00120 <emphasis role="comment">//----------------------------------------------------------------------------------------------------</emphasis>
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00121"/><link linkend="_classbsp___b_m_p_1a604d7e5683da37be890672aa690c2ff2">00121</link> <link linkend="_classbsp___b_m_p_1a604d7e5683da37be890672aa690c2ff2">bsp_BMP::~bsp_BMP</link>(<emphasis role="keywordtype">void</emphasis>)&#32;{
<anchor xml:id="_bsp___b_m_p_8cpp_source_1l00122"/>00122 &#32;&#32;&#32;&#32;free(<link linkend="_classbsp___b_m_p_1a2023aceaef140268a12bc61b81d410ca">dat</link>);}
</programlisting></section>

View File

@@ -0,0 +1,60 @@
<?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___b_m_p_8h" xml:lang="zh">
<title>D:/gitt/MicrochipFor32/bsp_Device/bsp_BMP.h 文件参考</title>
<indexterm><primary>D:/gitt/MicrochipFor32/bsp_Device/bsp_BMP.h</primary></indexterm>
<para>
<para>用来构造BMP图片 </para>
</para>
<programlisting linenumbering="unnumbered">#include &quot;varint.h&quot;<?linebreak?>#include &lt;stdlib.h&gt;<?linebreak?></programlisting>bsp_BMP.h 的引用(Include)关系图:<para>
<informalfigure>
<mediaobject>
<imageobject>
<imagedata width="50%" align="center" valign="middle" scalefit="0" fileref="bsp___b_m_p_8h__incl.png"></imagedata>
</imageobject>
</mediaobject>
</informalfigure>
</para>
此图展示该文件直接或间接的被哪些文件引用了:<para>
<informalfigure>
<mediaobject>
<imageobject>
<imagedata width="50%" align="center" valign="middle" scalefit="0" fileref="bsp___b_m_p_8h__dep__incl.png"></imagedata>
</imageobject>
</mediaobject>
</informalfigure>
</para>
<simplesect>
<title></title>
<itemizedlist>
<listitem><para>struct <link linkend="_struct___b_i_t_m_a_p_f_i_l_e_h_e_a_d_e_r">_BITMAPFILEHEADER</link></para>
<para>位图文件头 </para>
</listitem>
<listitem><para>struct <link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r">_BITMAPINFOHEADER</link></para>
<para>位图信息头 </para>
</listitem>
<listitem><para>struct <link linkend="_struct___r_g_b_q_u_a_d">_RGBQUAD</link></para>
<para>调色板 </para>
</listitem>
<listitem><para>struct <link linkend="_struct___b_i_t_m_a_p_i_n_f_o">_BITMAPINFO</link></para>
<para>BMP文件头 </para>
</listitem>
<listitem><para>class <link linkend="_classbsp___b_m_p">bsp_BMP</link></para>
<para>构建一个BMP类 </para>
</listitem>
</itemizedlist>
</simplesect>
<section>
<title>详细描述</title>
<para>用来构造BMP图片 </para>
<para>
在文件 <link linkend="_bsp___b_m_p_8h_source">bsp_BMP.h</link> 中定义.</para>
</section>
</section>

View File

@@ -0,0 +1 @@
076f3757130d37bc7a9e16d5c2a0ac69

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@@ -0,0 +1 @@
ba2603077eea24df840880690636543c

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

@@ -0,0 +1,91 @@
<?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___b_m_p_8h_source" xml:lang="zh">
<title>bsp_BMP.h</title>
<indexterm><primary>D:/gitt/MicrochipFor32/bsp_Device/bsp_BMP.h</primary></indexterm>
浏览该文件的文档.<programlisting linenumbering="unnumbered"><anchor xml:id="_bsp___b_m_p_8h_source_1l00001"/>00001 <emphasis role="comment">/*----------------------------------------------------------------------------------------------------</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00002"/>00002 <emphasis role="comment">&#32;#</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00003"/>00003 <emphasis role="comment">&#32;#&#32;&#32;Copyright&#32;(c)&#32;2022&#32;Yuankang&#32;Liang(XerolySkinner)</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00004"/>00004 <emphasis role="comment">&#32;#</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00005"/>00005 <emphasis role="comment">&#32;#&#32;&#32;本软件按原样提供,无任何明示或暗示</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00006"/>00006 <emphasis role="comment">&#32;#&#32;&#32;在任何情况下,作者都不承担任何损害赔偿责任</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00007"/>00007 <emphasis role="comment">&#32;#</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00008"/>00008 <emphasis role="comment">&#32;#&#32;&#32;使用的许可声明:</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00009"/>00009 <emphasis role="comment">&#32;#&#32;&#32;1.&#32;&#32;不得歪曲本软件的来源,你不能声称你编写了原始软件.</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00010"/>00010 <emphasis role="comment">&#32;#&#32;&#32;2.&#32;&#32;免费授予以任何目的,前提是版权声明出现在所有副本中.</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00011"/>00011 <emphasis role="comment">&#32;#&#32;&#32;&#32;&#32;&#32;&#32;并且版权声明和许可声明同时出现.</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00012"/>00012 <emphasis role="comment">&#32;#&#32;&#32;3.&#32;&#32;你有使用,复制,修改,分发,和销售本软件的许可.</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00013"/>00013 <emphasis role="comment">&#32;#&#32;&#32;4.&#32;&#32;如果你在产品中使用,产品文档中的声明是赞赏的但不是必须的.</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00014"/>00014 <emphasis role="comment">&#32;#&#32;&#32;5.&#32;&#32;本通知不得从任何来源删除或更改.</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00015"/>00015 <emphasis role="comment">&#32;#</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00016"/>00016 <emphasis role="comment">&#32;#&#32;&#32;Yuankang&#32;Liang(XerolySkinner)</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00017"/>00017 <emphasis role="comment">&#32;#&#32;&#32;&#32;&#32;&#32;&#32;E-mail:zabbcccbbaz@163.com</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00018"/>00018 <emphasis role="comment">&#32;#&#32;&#32;&#32;&#32;&#32;&#32;QQ:2715099320</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00019"/>00019 <emphasis role="comment">&#32;#&#32;&#32;&#32;&#32;&#32;&#32;Mobile&#32;Phone:13005636215</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00020"/>00020 <emphasis role="comment">&#32;#</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00021"/>00021 <emphasis role="comment">&#32;#&#32;&#32;All&#32;rights&#32;reserved.</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00022"/>00022 <emphasis role="comment">&#32;*/</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00023"/>00023
<anchor xml:id="_bsp___b_m_p_8h_source_1l00033"/>00033 <emphasis role="preprocessor">#pragma&#32;once</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00034"/>00034 <emphasis role="preprocessor">#ifdef&#32;__cplusplus</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00035"/>00035 <emphasis role="preprocessor">#include&#32;&quot;<link linkend="_varint_8h">varint.h</link>&quot;</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00036"/>00036 <emphasis role="preprocessor">#include&#32;&lt;stdlib.h&gt;</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00038"/>00038 <emphasis role="comment">//----------------------------------------------------------------------------------------------------</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00039"/>00039 <emphasis role="comment">//&#32;&#32;文件头</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00040"/>00040 <emphasis role="preprocessor">#pragma&#32;pack(1)</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00044"/><link linkend="_struct___b_i_t_m_a_p_f_i_l_e_h_e_a_d_e_r">00044</link> <emphasis role="keyword">typedef</emphasis>&#32;<emphasis role="keyword">struct</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00045"/>00045 {
<anchor xml:id="_bsp___b_m_p_8h_source_1l00046"/><link linkend="_struct___b_i_t_m_a_p_f_i_l_e_h_e_a_d_e_r_1a6810e258839bc4345e2036af20e607db">00046</link> &#32;&#32;&#32;&#32;<link linkend="_varint_8h_1ace9d960e74685e2cd84b36132dbbf8aa">u16</link>&#32;<link linkend="_struct___b_i_t_m_a_p_f_i_l_e_h_e_a_d_e_r_1a6810e258839bc4345e2036af20e607db">bfType</link>;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//文件标志.固定为&apos;BM&apos;,用来识别BMP位图类型</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00047"/><link linkend="_struct___b_i_t_m_a_p_f_i_l_e_h_e_a_d_e_r_1a1bd9726a58f87d278efa58d6d7c70a81">00047</link> &#32;&#32;&#32;&#32;<link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link>&#32;<link linkend="_struct___b_i_t_m_a_p_f_i_l_e_h_e_a_d_e_r_1a1bd9726a58f87d278efa58d6d7c70a81">bfSize</link>;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//文件大小,占四个字节</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00048"/><link linkend="_struct___b_i_t_m_a_p_f_i_l_e_h_e_a_d_e_r_1a71c78132cda5e8b032fb4f549ec9a14a">00048</link> &#32;&#32;&#32;&#32;<link linkend="_varint_8h_1ace9d960e74685e2cd84b36132dbbf8aa">u16</link>&#32;<link linkend="_struct___b_i_t_m_a_p_f_i_l_e_h_e_a_d_e_r_1a71c78132cda5e8b032fb4f549ec9a14a">bfReserved1</link>;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//保留总为0</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00049"/><link linkend="_struct___b_i_t_m_a_p_f_i_l_e_h_e_a_d_e_r_1a3f69e4551c8fee241e5a4cd224c64f50">00049</link> &#32;&#32;&#32;&#32;<link linkend="_varint_8h_1ace9d960e74685e2cd84b36132dbbf8aa">u16</link>&#32;<link linkend="_struct___b_i_t_m_a_p_f_i_l_e_h_e_a_d_e_r_1a3f69e4551c8fee241e5a4cd224c64f50">bfReserved2</link>;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//保留总为0</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00050"/><link linkend="_struct___b_i_t_m_a_p_f_i_l_e_h_e_a_d_e_r_1af53728df68db96b9decc5100bc1bf7e0">00050</link> &#32;&#32;&#32;&#32;<link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link>&#32;<link linkend="_struct___b_i_t_m_a_p_f_i_l_e_h_e_a_d_e_r_1af53728df68db96b9decc5100bc1bf7e0">bfOffBits</link>;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//从文件开始到位图数据(bitmap&#32;data)开始之间的的偏移量</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00051"/>00051 }<link linkend="_struct___b_i_t_m_a_p_f_i_l_e_h_e_a_d_e_r">_BITMAPFILEHEADER</link>;
<anchor xml:id="_bsp___b_m_p_8h_source_1l00055"/><link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r">00055</link> <emphasis role="keyword">typedef</emphasis>&#32;<emphasis role="keyword">struct&#32;</emphasis>{
<anchor xml:id="_bsp___b_m_p_8h_source_1l00056"/><link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a750a301fb5962c5fc2b7fac173d96bdf">00056</link> &#32;&#32;&#32;&#32;<link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link>&#32;<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a750a301fb5962c5fc2b7fac173d96bdf">biSize</link>;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//BITMAPINFOHEADER结构所需要的字数。</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00057"/><link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a28dd4e1f56936b64f6e01db9b2d171f2">00057</link> &#32;&#32;&#32;&#32;<link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link>&#32;<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a28dd4e1f56936b64f6e01db9b2d171f2">biWidth</link>;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//图象的宽度,以象素为单位&#32;</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00058"/><link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a9f6c38749a3b5f8b261be7a6556cf97a">00058</link> &#32;&#32;&#32;&#32;<link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link>&#32;<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a9f6c38749a3b5f8b261be7a6556cf97a">biHeight</link>;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//图象的高度,以象素为单位&#32;</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00059"/><link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a42d10de030492301ff4a3d5cfb91c2dd">00059</link> &#32;&#32;&#32;&#32;<link linkend="_varint_8h_1ace9d960e74685e2cd84b36132dbbf8aa">u16</link>&#32;<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a42d10de030492301ff4a3d5cfb91c2dd">biPlanes</link>;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//为目标设备说明位面数其值将总是被设为1&#32;</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00060"/><link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a98f05ea6cc8388d3ca701a834b04a286">00060</link> &#32;&#32;&#32;&#32;<link linkend="_varint_8h_1ace9d960e74685e2cd84b36132dbbf8aa">u16</link>&#32;<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a98f05ea6cc8388d3ca701a834b04a286">biBitCount</link>;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//比特数/象素其值为1、4、8、16、24、或32</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00061"/><link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1aef77b295d3a4b6540873c9e0d2ef53d2">00061</link> &#32;&#32;&#32;&#32;<link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link>&#32;<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1aef77b295d3a4b6540873c9e0d2ef53d2">biCompression</link>;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//图象数据压缩的类型。其值可以是下述值之一:</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00062"/>00062 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//BI_RGB没有压缩</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00063"/>00063 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//BI_RLE8每个象素8比特的RLE压缩编码压缩格式由2字节组成(重复象素计数和颜色索引)</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00064"/>00064 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//BI_RLE4每个象素4比特的RLE压缩编码压缩格式由2字节组成</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00065"/>00065 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//BI_BITFIELDS每个象素的比特由指定的掩码决定。</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00066"/><link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a0fa85188799eb931e2a03c887751a89e">00066</link> &#32;&#32;&#32;&#32;<link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link>&#32;<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a0fa85188799eb931e2a03c887751a89e">biSizeImage</link>;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//图象的大小以字节为单位。当用BI_RGB格式时可设置为0</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00067"/><link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a6a7eb9da9dfb7790486523dac6c4b6c2">00067</link> &#32;&#32;&#32;&#32;<link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link>&#32;<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a6a7eb9da9dfb7790486523dac6c4b6c2">biXPelsPerMeter</link>;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//水平分辨率,用象素/米表示</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00068"/><link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a0c830c96c45441edc35a5397bc86ace0">00068</link> &#32;&#32;&#32;&#32;<link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link>&#32;<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a0c830c96c45441edc35a5397bc86ace0">biYPelsPerMeter</link>;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//垂直分辨率,用象素/米表示</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00069"/><link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a1bb27f668cbed1ce6523e7042962a0e7">00069</link> &#32;&#32;&#32;&#32;<link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link>&#32;<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a1bb27f668cbed1ce6523e7042962a0e7">biClrUsed</link>;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//位图实际使用的彩色表中的颜色索引数</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00070"/><link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a4ee52fd1ab5c173a6e54444d1ec61dab">00070</link> &#32;&#32;&#32;&#32;<link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link>&#32;<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a4ee52fd1ab5c173a6e54444d1ec61dab">biClrImportant</link>;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//对图象显示有重要影响的颜色索引的数目如果是0表示都重要。</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00071"/>00071 }<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r">_BITMAPINFOHEADER</link>;
<anchor xml:id="_bsp___b_m_p_8h_source_1l00075"/><link linkend="_struct___r_g_b_q_u_a_d">00075</link> <emphasis role="keyword">typedef</emphasis>&#32;<emphasis role="keyword">struct</emphasis>{
<anchor xml:id="_bsp___b_m_p_8h_source_1l00076"/><link linkend="_struct___r_g_b_q_u_a_d_1ad26ba005b107e31a81b9e3e981ca9f1d">00076</link> &#32;&#32;&#32;&#32;<link linkend="_varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca">u8</link>&#32;<link linkend="_struct___r_g_b_q_u_a_d_1ad26ba005b107e31a81b9e3e981ca9f1d">rgbBlue</link>;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//指定蓝色强度</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00077"/><link linkend="_struct___r_g_b_q_u_a_d_1a2e445545aae97ebab36603942d3780d1">00077</link> &#32;&#32;&#32;&#32;<link linkend="_varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca">u8</link>&#32;<link linkend="_struct___r_g_b_q_u_a_d_1a2e445545aae97ebab36603942d3780d1">rgbGreen</link>;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//指定绿色强度&#32;</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00078"/><link linkend="_struct___r_g_b_q_u_a_d_1a9756faed264a45ead4f89567e807247f">00078</link> &#32;&#32;&#32;&#32;<link linkend="_varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca">u8</link>&#32;<link linkend="_struct___r_g_b_q_u_a_d_1a9756faed264a45ead4f89567e807247f">rgbRed</link>;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//指定红色强度&#32;</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00079"/><link linkend="_struct___r_g_b_q_u_a_d_1a742c7421feef58afb68308d3643bd924">00079</link> &#32;&#32;&#32;&#32;<link linkend="_varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca">u8</link>&#32;<link linkend="_struct___r_g_b_q_u_a_d_1a742c7421feef58afb68308d3643bd924">rgbReserved</link>;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//保留设置为0&#32;</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00080"/>00080 &#32;&#32;&#32;&#32;}<link linkend="_struct___r_g_b_q_u_a_d">_RGBQUAD</link>;
<anchor xml:id="_bsp___b_m_p_8h_source_1l00084"/><link linkend="_struct___b_i_t_m_a_p_i_n_f_o">00084</link> <emphasis role="keyword">typedef</emphasis>&#32;<emphasis role="keyword">struct</emphasis>{
<anchor xml:id="_bsp___b_m_p_8h_source_1l00085"/><link linkend="_struct___b_i_t_m_a_p_i_n_f_o_1a3356c2aeed730cf31d05fd09244ecbce">00085</link> &#32;&#32;&#32;&#32;<link linkend="_struct___b_i_t_m_a_p_f_i_l_e_h_e_a_d_e_r">_BITMAPFILEHEADER</link>&#32;<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_1a3356c2aeed730cf31d05fd09244ecbce">bmfHeader</link>;&#32;&#32;&#32;&#32;<emphasis role="comment">//位图文件头</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00086"/><link linkend="_struct___b_i_t_m_a_p_i_n_f_o_1a7d9eafe9a3374cd06dc22fda1af98b6d">00086</link> &#32;&#32;&#32;&#32;<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r">_BITMAPINFOHEADER</link>&#32;<link linkend="_struct___b_i_t_m_a_p_i_n_f_o_1a7d9eafe9a3374cd06dc22fda1af98b6d">bmiHeader</link>;&#32;&#32;&#32;&#32;<emphasis role="comment">//位图信息头&#32;</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00087"/><link linkend="_struct___b_i_t_m_a_p_i_n_f_o_1ab5fe5744a8fe46833743bc6b5cf72a49">00087</link> &#32;&#32;&#32;&#32;<link linkend="_struct___r_g_b_q_u_a_d">_RGBQUAD</link>&#32;bmiColors[256];&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//调色板</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00088"/>00088 }<link linkend="_struct___b_i_t_m_a_p_i_n_f_o">_BITMAPINFO</link>;
<anchor xml:id="_bsp___b_m_p_8h_source_1l00089"/>00089 <emphasis role="preprocessor">#pragma&#32;pack()</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00091"/>00091 <emphasis role="comment">//----------------------------------------------------------------------------------------------------</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00092"/>00092 <emphasis role="comment">//&#32;&#32;头文件</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00093"/>00093 <emphasis role="preprocessor">#pragma&#32;once</emphasis>
<anchor xml:id="_bsp___b_m_p_8h_source_1l00097"/><link linkend="_classbsp___b_m_p">00097</link> <emphasis role="keyword">class&#32;</emphasis><link linkend="_classbsp___b_m_p">bsp_BMP</link>&#32;{
<anchor xml:id="_bsp___b_m_p_8h_source_1l00098"/>00098 &#32;&#32;&#32;&#32;<emphasis role="keyword">public</emphasis>:
<anchor xml:id="_bsp___b_m_p_8h_source_1l00099"/>00099 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<link linkend="_classbsp___b_m_p">bsp_BMP</link>(<link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link>&#32;Width,&#32;<link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link>&#32;Height);
<anchor xml:id="_bsp___b_m_p_8h_source_1l00100"/>00100 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<link linkend="_classbsp___b_m_p_1a604d7e5683da37be890672aa690c2ff2">~bsp_BMP</link>(<emphasis role="keywordtype">void</emphasis>);
<anchor xml:id="_bsp___b_m_p_8h_source_1l00101"/>00101 &#32;&#32;&#32;&#32;<emphasis role="keyword">public</emphasis>:
<anchor xml:id="_bsp___b_m_p_8h_source_1l00102"/>00102 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="keywordtype">void</emphasis>&#32;&#32;&#32;&#32;<link linkend="_classbsp___b_m_p_1a4aaa5a2ea2f5b3c07c8e16009984766e">pels</link>(<link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link>&#32;x,&#32;<link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link>&#32;y);
<anchor xml:id="_bsp___b_m_p_8h_source_1l00103"/>00103 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link>&#32;&#32;&#32;&#32;&#32;<link linkend="_classbsp___b_m_p_1ae0e2551a06b8ad966a86b2c8324da25c">giveData</link>(<emphasis role="keywordtype">void</emphasis>);
<anchor xml:id="_bsp___b_m_p_8h_source_1l00104"/>00104 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="keywordtype">void</emphasis>&#32;&#32;&#32;&#32;<link linkend="_classbsp___b_m_p_1abe5d545dea1090a228843f140650f573">delData</link>(<emphasis role="keywordtype">void</emphasis>);
<anchor xml:id="_bsp___b_m_p_8h_source_1l00105"/>00105 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="keywordtype">void</emphasis>&#32;&#32;&#32;&#32;<link linkend="_classbsp___b_m_p_1a17c0c014ef6ce7d09a5dd81c5d2c5d57">ColorsSet</link>(<link linkend="_varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca">u8</link>&#32;R,&#32;<link linkend="_varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca">u8</link>&#32;G,&#32;<link linkend="_varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca">u8</link>&#32;B,<link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link>&#32;i);
<anchor xml:id="_bsp___b_m_p_8h_source_1l00106"/>00106 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="keywordtype">void</emphasis>&#32;&#32;&#32;&#32;<link linkend="_classbsp___b_m_p_1a535cd9bfe5e49ba97ff9c4a1dd8ebb51">sizeSet</link>(<link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link>&#32;x,&#32;<link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link>&#32;y);
<anchor xml:id="_bsp___b_m_p_8h_source_1l00107"/>00107 &#32;&#32;&#32;&#32;<emphasis role="keyword">public</emphasis>:
<anchor xml:id="_bsp___b_m_p_8h_source_1l00108"/><link linkend="_classbsp___b_m_p_1a64dcf31f5722327336d87794b873a335">00108</link> &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<link linkend="_struct___b_i_t_m_a_p_i_n_f_o">_BITMAPINFO</link>&#32;<link linkend="_classbsp___b_m_p_1a64dcf31f5722327336d87794b873a335">BITMAPINFO</link>;&#32;&#32;&#32;&#32;&#32;
<anchor xml:id="_bsp___b_m_p_8h_source_1l00109"/><link linkend="_classbsp___b_m_p_1a8a1c31ee70ed4061ad8bea4254959b83">00109</link> &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link>&#32;<link linkend="_classbsp___b_m_p_1a8a1c31ee70ed4061ad8bea4254959b83">Size</link>;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;
<anchor xml:id="_bsp___b_m_p_8h_source_1l00110"/><link linkend="_classbsp___b_m_p_1a2023aceaef140268a12bc61b81d410ca">00110</link> &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<link linkend="_varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca">u8</link>*&#32;<link linkend="_classbsp___b_m_p_1a2023aceaef140268a12bc61b81d410ca">dat</link>;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;
<anchor xml:id="_bsp___b_m_p_8h_source_1l00111"/>00111 &#32;&#32;&#32;&#32;};
<anchor xml:id="_bsp___b_m_p_8h_source_1l00113"/>00113 <emphasis role="preprocessor">#endif</emphasis>
</programlisting></section>

View File

@@ -1 +1 @@
1c13e627ea18cebdeca90e28952b2549
378a5be4b791bf720a7460767abe1117

View File

@@ -1 +1 @@
9bca80e74187dabc56e9d2ac38ab4110
aee28dc06f0158f8d6b147aafe8bb9a1

View File

@@ -0,0 +1,26 @@
<?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___calculus_8cpp" xml:lang="zh">
<title>D:/gitt/MicrochipFor32/bsp_Device/bsp_Calculus.cpp 文件参考</title>
<indexterm><primary>D:/gitt/MicrochipFor32/bsp_Device/bsp_Calculus.cpp</primary></indexterm>
<para>
<para>离散微积分 </para>
</para>
<programlisting linenumbering="unnumbered">#include &quot;bsp_Calculus.h&quot;<?linebreak?></programlisting>bsp_Calculus.cpp 的引用(Include)关系图:<para>
<informalfigure>
<mediaobject>
<imageobject>
<imagedata width="50%" align="center" valign="middle" scalefit="0" fileref="bsp___calculus_8cpp__incl.png"></imagedata>
</imageobject>
</mediaobject>
</informalfigure>
</para>
<section>
<title>详细描述</title>
<para>离散微积分 </para>
<para>
在文件 <link linkend="_bsp___calculus_8cpp_source">bsp_Calculus.cpp</link> 中定义.</para>
</section>
</section>

View File

@@ -0,0 +1 @@
55d6117803837208a63d5e074f58ac23

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

View File

@@ -0,0 +1,78 @@
<?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___calculus_8cpp_source" xml:lang="zh">
<title>bsp_Calculus.cpp</title>
<indexterm><primary>D:/gitt/MicrochipFor32/bsp_Device/bsp_Calculus.cpp</primary></indexterm>
浏览该文件的文档.<programlisting linenumbering="unnumbered"><anchor xml:id="_bsp___calculus_8cpp_source_1l00001"/>00001 <emphasis role="comment">/*----------------------------------------------------------------------------------------------------</emphasis>
<anchor xml:id="_bsp___calculus_8cpp_source_1l00002"/>00002 <emphasis role="comment">&#32;#</emphasis>
<anchor xml:id="_bsp___calculus_8cpp_source_1l00003"/>00003 <emphasis role="comment">&#32;#&#32;&#32;Copyright&#32;(c)&#32;2022&#32;Yuankang&#32;Liang(XerolySkinner)</emphasis>
<anchor xml:id="_bsp___calculus_8cpp_source_1l00004"/>00004 <emphasis role="comment">&#32;#</emphasis>
<anchor xml:id="_bsp___calculus_8cpp_source_1l00005"/>00005 <emphasis role="comment">&#32;#&#32;&#32;本软件按原样提供,无任何明示或暗示</emphasis>
<anchor xml:id="_bsp___calculus_8cpp_source_1l00006"/>00006 <emphasis role="comment">&#32;#&#32;&#32;在任何情况下,作者都不承担任何损害赔偿责任</emphasis>
<anchor xml:id="_bsp___calculus_8cpp_source_1l00007"/>00007 <emphasis role="comment">&#32;#</emphasis>
<anchor xml:id="_bsp___calculus_8cpp_source_1l00008"/>00008 <emphasis role="comment">&#32;#&#32;&#32;使用的许可声明:</emphasis>
<anchor xml:id="_bsp___calculus_8cpp_source_1l00009"/>00009 <emphasis role="comment">&#32;#&#32;&#32;1.&#32;&#32;不得歪曲本软件的来源,你不能声称你编写了原始软件.</emphasis>
<anchor xml:id="_bsp___calculus_8cpp_source_1l00010"/>00010 <emphasis role="comment">&#32;#&#32;&#32;2.&#32;&#32;免费授予以任何目的,前提是版权声明出现在所有副本中.</emphasis>
<anchor xml:id="_bsp___calculus_8cpp_source_1l00011"/>00011 <emphasis role="comment">&#32;#&#32;&#32;&#32;&#32;&#32;&#32;并且版权声明和许可声明同时出现.</emphasis>
<anchor xml:id="_bsp___calculus_8cpp_source_1l00012"/>00012 <emphasis role="comment">&#32;#&#32;&#32;3.&#32;&#32;你有使用,复制,修改,分发,和销售本软件的许可.</emphasis>
<anchor xml:id="_bsp___calculus_8cpp_source_1l00013"/>00013 <emphasis role="comment">&#32;#&#32;&#32;4.&#32;&#32;如果你在产品中使用,产品文档中的声明是赞赏的但不是必须的.</emphasis>
<anchor xml:id="_bsp___calculus_8cpp_source_1l00014"/>00014 <emphasis role="comment">&#32;#&#32;&#32;5.&#32;&#32;本通知不得从任何来源删除或更改.</emphasis>
<anchor xml:id="_bsp___calculus_8cpp_source_1l00015"/>00015 <emphasis role="comment">&#32;#</emphasis>
<anchor xml:id="_bsp___calculus_8cpp_source_1l00016"/>00016 <emphasis role="comment">&#32;#&#32;&#32;Yuankang&#32;Liang(XerolySkinner)</emphasis>
<anchor xml:id="_bsp___calculus_8cpp_source_1l00017"/>00017 <emphasis role="comment">&#32;#&#32;&#32;&#32;&#32;&#32;&#32;E-mail:zabbcccbbaz@163.com</emphasis>
<anchor xml:id="_bsp___calculus_8cpp_source_1l00018"/>00018 <emphasis role="comment">&#32;#&#32;&#32;&#32;&#32;&#32;&#32;QQ:2715099320</emphasis>
<anchor xml:id="_bsp___calculus_8cpp_source_1l00019"/>00019 <emphasis role="comment">&#32;#&#32;&#32;&#32;&#32;&#32;&#32;Mobile&#32;Phone:13005636215</emphasis>
<anchor xml:id="_bsp___calculus_8cpp_source_1l00020"/>00020 <emphasis role="comment">&#32;#</emphasis>
<anchor xml:id="_bsp___calculus_8cpp_source_1l00021"/>00021 <emphasis role="comment">&#32;#&#32;&#32;All&#32;rights&#32;reserved.</emphasis>
<anchor xml:id="_bsp___calculus_8cpp_source_1l00022"/>00022 <emphasis role="comment">&#32;*/</emphasis>
<anchor xml:id="_bsp___calculus_8cpp_source_1l00023"/>00023
<anchor xml:id="_bsp___calculus_8cpp_source_1l00035"/>00035 <emphasis role="comment">//----------------------------------------------------------------------------------------------------</emphasis>
<anchor xml:id="_bsp___calculus_8cpp_source_1l00036"/>00036 <emphasis role="comment">//&#32;&#32;头文件</emphasis>
<anchor xml:id="_bsp___calculus_8cpp_source_1l00037"/>00037 <emphasis role="preprocessor">#include&#32;&quot;<link linkend="_bsp___calculus_8h">bsp_Calculus.h</link>&quot;</emphasis>
<anchor xml:id="_bsp___calculus_8cpp_source_1l00039"/>00039 <emphasis role="comment">//----------------------------------------------------------------------------------------------------</emphasis>
<anchor xml:id="_bsp___calculus_8cpp_source_1l00040"/>00040 <emphasis role="comment">//&#32;&#32;类函数</emphasis>
<anchor xml:id="_bsp___calculus_8cpp_source_1l00046"/><link linkend="_classbsp___differential_1a46536b15be29d856b09dd7d261a12ab1">00046</link> <emphasis role="comment"></emphasis><emphasis role="keywordtype">float</emphasis>&#32;<link linkend="_classbsp___differential_1a46536b15be29d856b09dd7d261a12ab1">bsp_Differential::Differential</link>(<emphasis role="keywordtype">float</emphasis>&#32;var)&#32;{
<anchor xml:id="_bsp___calculus_8cpp_source_1l00047"/>00047 &#32;&#32;&#32;&#32;<emphasis role="keyword">static</emphasis>&#32;<emphasis role="keywordtype">float</emphasis>&#32;old=var;
<anchor xml:id="_bsp___calculus_8cpp_source_1l00048"/>00048 &#32;&#32;&#32;&#32;<emphasis role="keywordtype">float</emphasis>&#32;result=&#32;(var&#32;-&#32;old)&#32;/&#32;<link linkend="_classbsp___differential_1ab25588868059974b8356e975c6e96992">dt</link>;
<anchor xml:id="_bsp___calculus_8cpp_source_1l00049"/>00049 &#32;&#32;&#32;&#32;old&#32;=&#32;var;
<anchor xml:id="_bsp___calculus_8cpp_source_1l00050"/>00050 &#32;&#32;&#32;&#32;<emphasis role="keywordflow">return</emphasis>&#32;result;}
<anchor xml:id="_bsp___calculus_8cpp_source_1l00052"/>00052 <emphasis role="comment">//----------------------------------------------------------------------------------------------------</emphasis>
<anchor xml:id="_bsp___calculus_8cpp_source_1l00053"/>00053 <emphasis role="comment">//&#32;&#32;类函数</emphasis>
<anchor xml:id="_bsp___calculus_8cpp_source_1l00059"/><link linkend="_classbsp___integral_1ade46f89bfdc6dd778c045a51c76c1839">00059</link> <emphasis role="comment"></emphasis><emphasis role="keywordtype">float</emphasis>&#32;<link linkend="_classbsp___integral_1ade46f89bfdc6dd778c045a51c76c1839">bsp_Integral::Integral</link>(<emphasis role="keywordtype">float</emphasis>&#32;var)&#32;{
<anchor xml:id="_bsp___calculus_8cpp_source_1l00060"/>00060 &#32;&#32;&#32;&#32;<link linkend="_classbsp___integral_1a910f1f3faa2b4963e00718472b8389bc">results</link>&#32;+=&#32;var&#32;*&#32;<link linkend="_classbsp___integral_1a4494cf9fc2873d457ed3bf8618b68045">dt</link>;
<anchor xml:id="_bsp___calculus_8cpp_source_1l00061"/>00061 &#32;&#32;&#32;&#32;<emphasis role="keywordflow">return</emphasis>&#32;<link linkend="_classbsp___integral_1a910f1f3faa2b4963e00718472b8389bc">results</link>;}
<anchor xml:id="_bsp___calculus_8cpp_source_1l00062"/>00062 <emphasis role="comment">//----------------------------------------------------------------------------------------------------</emphasis>
<anchor xml:id="_bsp___calculus_8cpp_source_1l00067"/><link linkend="_classbsp___integral_1aaf7474301ed76ca9ce2b1884ae870019">00067</link> <emphasis role="comment"></emphasis><emphasis role="keywordtype">void</emphasis>&#32;<link linkend="_classbsp___integral_1aaf7474301ed76ca9ce2b1884ae870019">bsp_Integral::Integral_set</link>(<emphasis role="keywordtype">float</emphasis>&#32;results)&#32;{
<anchor xml:id="_bsp___calculus_8cpp_source_1l00068"/>00068 &#32;&#32;&#32;&#32;<link linkend="_classbsp___integral_1a910f1f3faa2b4963e00718472b8389bc">bsp_Integral::results</link>&#32;=&#32;<link linkend="_classbsp___integral_1a910f1f3faa2b4963e00718472b8389bc">results</link>;}
<anchor xml:id="_bsp___calculus_8cpp_source_1l00069"/>00069 <emphasis role="comment">//----------------------------------------------------------------------------------------------------</emphasis>
<anchor xml:id="_bsp___calculus_8cpp_source_1l00075"/><link linkend="_classbsp___integral_1a86d9e02d1146744fe80ebab69070abb4">00075</link> <emphasis role="comment"></emphasis><link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link>&#32;<link linkend="_classbsp___integral_1a86d9e02d1146744fe80ebab69070abb4">bsp_Integral::Integral_makelist</link>(<link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link>&#32;len)&#32;{
<anchor xml:id="_bsp___calculus_8cpp_source_1l00076"/>00076 &#32;&#32;&#32;&#32;<link linkend="_classbsp___integral_1a656d90c5a713abf0665f1dcbf1a5101a">result_list</link>&#32;=&#32;(<emphasis role="keywordtype">float</emphasis>*)malloc(<emphasis role="keyword">sizeof</emphasis>(<emphasis role="keywordtype">float</emphasis>)*&#32;len);
<anchor xml:id="_bsp___calculus_8cpp_source_1l00077"/>00077 &#32;&#32;&#32;&#32;<link linkend="_classbsp___integral_1a662c735b9432a46e48a642ebb9c0e8fa">result_len</link>&#32;=&#32;len;
<anchor xml:id="_bsp___calculus_8cpp_source_1l00078"/>00078 &#32;&#32;&#32;&#32;<link linkend="_classbsp___integral_1aae2b6143ca39861a83b77befc131bf5e">Integral_clslist</link>();
<anchor xml:id="_bsp___calculus_8cpp_source_1l00079"/>00079 &#32;&#32;&#32;&#32;<emphasis role="keywordflow">return</emphasis>&#32;(<link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link>)<link linkend="_classbsp___integral_1a656d90c5a713abf0665f1dcbf1a5101a">result_list</link>;}
<anchor xml:id="_bsp___calculus_8cpp_source_1l00080"/>00080 <emphasis role="comment">//----------------------------------------------------------------------------------------------------</emphasis>
<anchor xml:id="_bsp___calculus_8cpp_source_1l00086"/><link linkend="_classbsp___integral_1a80693e18b9b9509bdec0ebfd72f84072">00086</link> <emphasis role="comment"></emphasis><emphasis role="keywordtype">float</emphasis>&#32;<link linkend="_classbsp___integral_1a80693e18b9b9509bdec0ebfd72f84072">bsp_Integral::Integral_list</link>(<emphasis role="keywordtype">float</emphasis>&#32;var)&#32;{
<anchor xml:id="_bsp___calculus_8cpp_source_1l00087"/>00087 &#32;&#32;&#32;&#32;<emphasis role="keyword">static</emphasis>&#32;<link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link>&#32;len=0;
<anchor xml:id="_bsp___calculus_8cpp_source_1l00088"/>00088 &#32;&#32;&#32;&#32;<link linkend="_classbsp___integral_1a910f1f3faa2b4963e00718472b8389bc">results</link>&#32;+=&#32;var&#32;*&#32;<link linkend="_classbsp___integral_1a4494cf9fc2873d457ed3bf8618b68045">dt</link>;
<anchor xml:id="_bsp___calculus_8cpp_source_1l00089"/>00089 &#32;&#32;&#32;&#32;<emphasis role="comment">//&#32;&#32;保存历史</emphasis>
<anchor xml:id="_bsp___calculus_8cpp_source_1l00090"/>00090 &#32;&#32;&#32;&#32;<link linkend="_classbsp___integral_1a656d90c5a713abf0665f1dcbf1a5101a">result_list</link>[len]&#32;=&#32;var&#32;*&#32;<link linkend="_classbsp___integral_1a4494cf9fc2873d457ed3bf8618b68045">dt</link>;
<anchor xml:id="_bsp___calculus_8cpp_source_1l00091"/>00091 &#32;&#32;&#32;&#32;<emphasis role="comment">//&#32;&#32;轮盘转</emphasis>
<anchor xml:id="_bsp___calculus_8cpp_source_1l00092"/>00092 &#32;&#32;&#32;&#32;++len;
<anchor xml:id="_bsp___calculus_8cpp_source_1l00093"/>00093 &#32;&#32;&#32;&#32;<emphasis role="keywordflow">if</emphasis>&#32;(len&#32;==&#32;<link linkend="_classbsp___integral_1a662c735b9432a46e48a642ebb9c0e8fa">result_len</link>)len&#32;=&#32;0;
<anchor xml:id="_bsp___calculus_8cpp_source_1l00094"/>00094 &#32;&#32;&#32;&#32;<emphasis role="comment">//&#32;&#32;去除尾值</emphasis>
<anchor xml:id="_bsp___calculus_8cpp_source_1l00095"/>00095 &#32;&#32;&#32;&#32;<emphasis role="keywordflow">if</emphasis>&#32;(len&#32;&lt;&#32;<link linkend="_classbsp___integral_1a662c735b9432a46e48a642ebb9c0e8fa">result_len</link>&#32;-&#32;1)
<anchor xml:id="_bsp___calculus_8cpp_source_1l00096"/>00096 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<link linkend="_classbsp___integral_1a910f1f3faa2b4963e00718472b8389bc">results</link>&#32;-=&#32;<link linkend="_classbsp___integral_1a656d90c5a713abf0665f1dcbf1a5101a">result_list</link>[len&#32;+&#32;1];
<anchor xml:id="_bsp___calculus_8cpp_source_1l00097"/>00097 &#32;&#32;&#32;&#32;<emphasis role="keywordflow">else</emphasis>
<anchor xml:id="_bsp___calculus_8cpp_source_1l00098"/>00098 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<link linkend="_classbsp___integral_1a910f1f3faa2b4963e00718472b8389bc">results</link>&#32;-=&#32;<link linkend="_classbsp___integral_1a656d90c5a713abf0665f1dcbf1a5101a">result_list</link>[0];
<anchor xml:id="_bsp___calculus_8cpp_source_1l00099"/>00099 &#32;&#32;&#32;&#32;<emphasis role="comment">//&#32;&#32;</emphasis>
<anchor xml:id="_bsp___calculus_8cpp_source_1l00100"/>00100 &#32;&#32;&#32;&#32;<emphasis role="keywordflow">return</emphasis>&#32;<link linkend="_classbsp___integral_1a910f1f3faa2b4963e00718472b8389bc">results</link>;}
<anchor xml:id="_bsp___calculus_8cpp_source_1l00101"/>00101 <emphasis role="comment">//----------------------------------------------------------------------------------------------------</emphasis>
<anchor xml:id="_bsp___calculus_8cpp_source_1l00105"/><link linkend="_classbsp___integral_1a47307ddf418d2686245b118dcf61a199">00105</link> <emphasis role="comment"></emphasis><emphasis role="keywordtype">void</emphasis>&#32;<link linkend="_classbsp___integral_1a47307ddf418d2686245b118dcf61a199">bsp_Integral::Integral_dellist</link>(<emphasis role="keywordtype">void</emphasis>)&#32;{
<anchor xml:id="_bsp___calculus_8cpp_source_1l00106"/>00106 &#32;&#32;&#32;&#32;free(<link linkend="_classbsp___integral_1a656d90c5a713abf0665f1dcbf1a5101a">result_list</link>);
<anchor xml:id="_bsp___calculus_8cpp_source_1l00107"/>00107 &#32;&#32;&#32;&#32;<link linkend="_classbsp___integral_1a662c735b9432a46e48a642ebb9c0e8fa">result_len</link>&#32;=&#32;0;
<anchor xml:id="_bsp___calculus_8cpp_source_1l00108"/>00108 &#32;&#32;&#32;&#32;<link linkend="_classbsp___integral_1a656d90c5a713abf0665f1dcbf1a5101a">result_list</link>&#32;=&#32;NULL;}
<anchor xml:id="_bsp___calculus_8cpp_source_1l00109"/>00109 <emphasis role="comment">//----------------------------------------------------------------------------------------------------</emphasis>
<anchor xml:id="_bsp___calculus_8cpp_source_1l00113"/><link linkend="_classbsp___integral_1aae2b6143ca39861a83b77befc131bf5e">00113</link> <emphasis role="comment"></emphasis><emphasis role="keywordtype">void</emphasis>&#32;<link linkend="_classbsp___integral_1aae2b6143ca39861a83b77befc131bf5e">bsp_Integral::Integral_clslist</link>(<emphasis role="keywordtype">void</emphasis>)&#32;{
<anchor xml:id="_bsp___calculus_8cpp_source_1l00114"/>00114 &#32;&#32;&#32;&#32;<emphasis role="keywordflow">if</emphasis>&#32;(<link linkend="_classbsp___integral_1a656d90c5a713abf0665f1dcbf1a5101a">result_list</link>&#32;==&#32;NULL)<emphasis role="keywordflow">return</emphasis>;
<anchor xml:id="_bsp___calculus_8cpp_source_1l00115"/>00115 &#32;&#32;&#32;&#32;<emphasis role="keywordflow">for</emphasis>&#32;(<link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link>&#32;i&#32;=&#32;0;&#32;i&#32;&lt;&#32;<link linkend="_classbsp___integral_1a662c735b9432a46e48a642ebb9c0e8fa">result_len</link>;&#32;i++)
<anchor xml:id="_bsp___calculus_8cpp_source_1l00116"/>00116 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<link linkend="_classbsp___integral_1a656d90c5a713abf0665f1dcbf1a5101a">result_list</link>[i]&#32;=&#32;0;}
</programlisting></section>

View File

@@ -0,0 +1,48 @@
<?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___calculus_8h" xml:lang="zh">
<title>D:/gitt/MicrochipFor32/bsp_Device/bsp_Calculus.h 文件参考</title>
<indexterm><primary>D:/gitt/MicrochipFor32/bsp_Device/bsp_Calculus.h</primary></indexterm>
<para>
<para>离散微积分 </para>
</para>
<programlisting linenumbering="unnumbered">#include &lt;stdlib.h&gt;<?linebreak?>#include &quot;varint.h&quot;<?linebreak?></programlisting>bsp_Calculus.h 的引用(Include)关系图:<para>
<informalfigure>
<mediaobject>
<imageobject>
<imagedata width="50%" align="center" valign="middle" scalefit="0" fileref="bsp___calculus_8h__incl.png"></imagedata>
</imageobject>
</mediaobject>
</informalfigure>
</para>
此图展示该文件直接或间接的被哪些文件引用了:<para>
<informalfigure>
<mediaobject>
<imageobject>
<imagedata width="50%" align="center" valign="middle" scalefit="0" fileref="bsp___calculus_8h__dep__incl.png"></imagedata>
</imageobject>
</mediaobject>
</informalfigure>
</para>
<simplesect>
<title></title>
<itemizedlist>
<listitem><para>class <link linkend="_classbsp___differential">bsp_Differential</link></para>
<para>一个微分对象 </para>
</listitem>
<listitem><para>class <link linkend="_classbsp___integral">bsp_Integral</link></para>
<para>一个积分对象 </para>
</listitem>
</itemizedlist>
</simplesect>
<section>
<title>详细描述</title>
<para>离散微积分 </para>
<para>
在文件 <link linkend="_bsp___calculus_8h_source">bsp_Calculus.h</link> 中定义.</para>
</section>
</section>

View File

@@ -0,0 +1 @@
3595893eb2f98cb9b95a064c9c342fb5

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@@ -0,0 +1 @@
701e6fece90a228d26b32443744f7b56

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

View File

@@ -0,0 +1,68 @@
<?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___calculus_8h_source" xml:lang="zh">
<title>bsp_Calculus.h</title>
<indexterm><primary>D:/gitt/MicrochipFor32/bsp_Device/bsp_Calculus.h</primary></indexterm>
浏览该文件的文档.<programlisting linenumbering="unnumbered"><anchor xml:id="_bsp___calculus_8h_source_1l00001"/>00001 <emphasis role="comment">/*----------------------------------------------------------------------------------------------------</emphasis>
<anchor xml:id="_bsp___calculus_8h_source_1l00002"/>00002 <emphasis role="comment">&#32;#</emphasis>
<anchor xml:id="_bsp___calculus_8h_source_1l00003"/>00003 <emphasis role="comment">&#32;#&#32;&#32;Copyright&#32;(c)&#32;2022&#32;Yuankang&#32;Liang(XerolySkinner)</emphasis>
<anchor xml:id="_bsp___calculus_8h_source_1l00004"/>00004 <emphasis role="comment">&#32;#</emphasis>
<anchor xml:id="_bsp___calculus_8h_source_1l00005"/>00005 <emphasis role="comment">&#32;#&#32;&#32;本软件按原样提供,无任何明示或暗示</emphasis>
<anchor xml:id="_bsp___calculus_8h_source_1l00006"/>00006 <emphasis role="comment">&#32;#&#32;&#32;在任何情况下,作者都不承担任何损害赔偿责任</emphasis>
<anchor xml:id="_bsp___calculus_8h_source_1l00007"/>00007 <emphasis role="comment">&#32;#</emphasis>
<anchor xml:id="_bsp___calculus_8h_source_1l00008"/>00008 <emphasis role="comment">&#32;#&#32;&#32;使用的许可声明:</emphasis>
<anchor xml:id="_bsp___calculus_8h_source_1l00009"/>00009 <emphasis role="comment">&#32;#&#32;&#32;1.&#32;&#32;不得歪曲本软件的来源,你不能声称你编写了原始软件.</emphasis>
<anchor xml:id="_bsp___calculus_8h_source_1l00010"/>00010 <emphasis role="comment">&#32;#&#32;&#32;2.&#32;&#32;免费授予以任何目的,前提是版权声明出现在所有副本中.</emphasis>
<anchor xml:id="_bsp___calculus_8h_source_1l00011"/>00011 <emphasis role="comment">&#32;#&#32;&#32;&#32;&#32;&#32;&#32;并且版权声明和许可声明同时出现.</emphasis>
<anchor xml:id="_bsp___calculus_8h_source_1l00012"/>00012 <emphasis role="comment">&#32;#&#32;&#32;3.&#32;&#32;你有使用,复制,修改,分发,和销售本软件的许可.</emphasis>
<anchor xml:id="_bsp___calculus_8h_source_1l00013"/>00013 <emphasis role="comment">&#32;#&#32;&#32;4.&#32;&#32;如果你在产品中使用,产品文档中的声明是赞赏的但不是必须的.</emphasis>
<anchor xml:id="_bsp___calculus_8h_source_1l00014"/>00014 <emphasis role="comment">&#32;#&#32;&#32;5.&#32;&#32;本通知不得从任何来源删除或更改.</emphasis>
<anchor xml:id="_bsp___calculus_8h_source_1l00015"/>00015 <emphasis role="comment">&#32;#</emphasis>
<anchor xml:id="_bsp___calculus_8h_source_1l00016"/>00016 <emphasis role="comment">&#32;#&#32;&#32;Yuankang&#32;Liang(XerolySkinner)</emphasis>
<anchor xml:id="_bsp___calculus_8h_source_1l00017"/>00017 <emphasis role="comment">&#32;#&#32;&#32;&#32;&#32;&#32;&#32;E-mail:zabbcccbbaz@163.com</emphasis>
<anchor xml:id="_bsp___calculus_8h_source_1l00018"/>00018 <emphasis role="comment">&#32;#&#32;&#32;&#32;&#32;&#32;&#32;QQ:2715099320</emphasis>
<anchor xml:id="_bsp___calculus_8h_source_1l00019"/>00019 <emphasis role="comment">&#32;#&#32;&#32;&#32;&#32;&#32;&#32;Mobile&#32;Phone:13005636215</emphasis>
<anchor xml:id="_bsp___calculus_8h_source_1l00020"/>00020 <emphasis role="comment">&#32;#</emphasis>
<anchor xml:id="_bsp___calculus_8h_source_1l00021"/>00021 <emphasis role="comment">&#32;#&#32;&#32;All&#32;rights&#32;reserved.</emphasis>
<anchor xml:id="_bsp___calculus_8h_source_1l00022"/>00022 <emphasis role="comment">&#32;*/</emphasis>
<anchor xml:id="_bsp___calculus_8h_source_1l00023"/>00023
<anchor xml:id="_bsp___calculus_8h_source_1l00033"/>00033 <emphasis role="preprocessor">#pragma&#32;once</emphasis>
<anchor xml:id="_bsp___calculus_8h_source_1l00034"/>00034 <emphasis role="preprocessor">#ifdef&#32;__cplusplus</emphasis>
<anchor xml:id="_bsp___calculus_8h_source_1l00035"/>00035 <emphasis role="preprocessor">#include&#32;&lt;stdlib.h&gt;</emphasis>
<anchor xml:id="_bsp___calculus_8h_source_1l00036"/>00036 <emphasis role="preprocessor">#include&#32;&quot;<link linkend="_varint_8h">varint.h</link>&quot;</emphasis>
<anchor xml:id="_bsp___calculus_8h_source_1l00038"/>00038 <emphasis role="comment">//----------------------------------------------------------------------------------------------------</emphasis>
<anchor xml:id="_bsp___calculus_8h_source_1l00039"/>00039 <emphasis role="comment">//&#32;&#32;类目</emphasis>
<anchor xml:id="_bsp___calculus_8h_source_1l00043"/><link linkend="_classbsp___differential">00043</link> <emphasis role="comment"></emphasis><emphasis role="keyword">class&#32;</emphasis><link linkend="_classbsp___differential">bsp_Differential</link>{
<anchor xml:id="_bsp___calculus_8h_source_1l00044"/>00044 &#32;&#32;&#32;&#32;<emphasis role="keyword">public</emphasis>:
<anchor xml:id="_bsp___calculus_8h_source_1l00045"/><link linkend="_classbsp___differential_1a16a19c803e2f1a3bbba98a2ef529206b">00045</link> &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<link linkend="_classbsp___differential_1a16a19c803e2f1a3bbba98a2ef529206b">bsp_Differential</link>(<emphasis role="keywordtype">float</emphasis>&#32;<link linkend="_classbsp___differential_1ab25588868059974b8356e975c6e96992">dt</link>)&#32;{
<anchor xml:id="_bsp___calculus_8h_source_1l00046"/>00046 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<link linkend="_classbsp___differential_1ab25588868059974b8356e975c6e96992">bsp_Differential::dt</link>&#32;=&#32;<link linkend="_classbsp___differential_1ab25588868059974b8356e975c6e96992">dt</link>;}
<anchor xml:id="_bsp___calculus_8h_source_1l00047"/>00047 &#32;&#32;&#32;&#32;<emphasis role="keyword">public</emphasis>:
<anchor xml:id="_bsp___calculus_8h_source_1l00048"/>00048 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="keywordtype">float</emphasis>&#32;<link linkend="_classbsp___differential_1a46536b15be29d856b09dd7d261a12ab1">Differential</link>(<emphasis role="keywordtype">float</emphasis>&#32;var);
<anchor xml:id="_bsp___calculus_8h_source_1l00049"/>00049 &#32;&#32;&#32;&#32;<emphasis role="keyword">public</emphasis>:
<anchor xml:id="_bsp___calculus_8h_source_1l00050"/><link linkend="_classbsp___differential_1ab25588868059974b8356e975c6e96992">00050</link> &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="keywordtype">float</emphasis>&#32;<link linkend="_classbsp___differential_1ab25588868059974b8356e975c6e96992">dt</link>;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;
<anchor xml:id="_bsp___calculus_8h_source_1l00051"/>00051 &#32;&#32;&#32;&#32;};
<anchor xml:id="_bsp___calculus_8h_source_1l00052"/>00052 <emphasis role="comment">//----------------------------------------------------------------------------------------------------</emphasis>
<anchor xml:id="_bsp___calculus_8h_source_1l00059"/><link linkend="_classbsp___integral">00059</link> <emphasis role="comment"></emphasis><emphasis role="keyword">class&#32;</emphasis><link linkend="_classbsp___integral">bsp_Integral</link>&#32;{
<anchor xml:id="_bsp___calculus_8h_source_1l00060"/>00060 &#32;&#32;&#32;&#32;<emphasis role="keyword">public</emphasis>:
<anchor xml:id="_bsp___calculus_8h_source_1l00061"/><link linkend="_classbsp___integral_1af274273b399f4da855646921f3ae31ba">00061</link> &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<link linkend="_classbsp___integral_1af274273b399f4da855646921f3ae31ba">bsp_Integral</link>(<emphasis role="keywordtype">float</emphasis>&#32;<link linkend="_classbsp___integral_1a4494cf9fc2873d457ed3bf8618b68045">dt</link>)&#32;{
<anchor xml:id="_bsp___calculus_8h_source_1l00062"/>00062 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<link linkend="_classbsp___integral_1a656d90c5a713abf0665f1dcbf1a5101a">bsp_Integral::result_list</link>&#32;=&#32;NULL;
<anchor xml:id="_bsp___calculus_8h_source_1l00063"/>00063 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<link linkend="_classbsp___integral_1a4494cf9fc2873d457ed3bf8618b68045">bsp_Integral::dt</link>&#32;=&#32;<link linkend="_classbsp___integral_1a4494cf9fc2873d457ed3bf8618b68045">dt</link>;
<anchor xml:id="_bsp___calculus_8h_source_1l00064"/>00064 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<link linkend="_classbsp___integral_1a910f1f3faa2b4963e00718472b8389bc">bsp_Integral::results</link>&#32;=&#32;0;}
<anchor xml:id="_bsp___calculus_8h_source_1l00065"/><link linkend="_classbsp___integral_1a3f190eb273b4d6492fb39e2573ec37a1">00065</link> &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<link linkend="_classbsp___integral_1a3f190eb273b4d6492fb39e2573ec37a1">~bsp_Integral</link>(<emphasis role="keywordtype">void</emphasis>)&#32;{
<anchor xml:id="_bsp___calculus_8h_source_1l00066"/>00066 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;free(<link linkend="_classbsp___integral_1a656d90c5a713abf0665f1dcbf1a5101a">result_list</link>);
<anchor xml:id="_bsp___calculus_8h_source_1l00067"/>00067 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<link linkend="_classbsp___integral_1a656d90c5a713abf0665f1dcbf1a5101a">result_list</link>&#32;=&#32;NULL;}
<anchor xml:id="_bsp___calculus_8h_source_1l00068"/>00068 &#32;&#32;&#32;&#32;<emphasis role="keyword">public</emphasis>:
<anchor xml:id="_bsp___calculus_8h_source_1l00069"/>00069 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="keywordtype">float</emphasis>&#32;<link linkend="_classbsp___integral_1ade46f89bfdc6dd778c045a51c76c1839">Integral</link>(<emphasis role="keywordtype">float</emphasis>&#32;var);
<anchor xml:id="_bsp___calculus_8h_source_1l00070"/>00070 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="keywordtype">void</emphasis>&#32;<link linkend="_classbsp___integral_1aaf7474301ed76ca9ce2b1884ae870019">Integral_set</link>(<emphasis role="keywordtype">float</emphasis>&#32;<link linkend="_classbsp___integral_1a910f1f3faa2b4963e00718472b8389bc">results</link>);
<anchor xml:id="_bsp___calculus_8h_source_1l00071"/>00071
<anchor xml:id="_bsp___calculus_8h_source_1l00072"/>00072 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="keywordtype">float</emphasis>&#32;<link linkend="_classbsp___integral_1a80693e18b9b9509bdec0ebfd72f84072">Integral_list</link>(<emphasis role="keywordtype">float</emphasis>&#32;var);
<anchor xml:id="_bsp___calculus_8h_source_1l00073"/>00073 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link>&#32;<link linkend="_classbsp___integral_1a86d9e02d1146744fe80ebab69070abb4">Integral_makelist</link>(<link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link>&#32;len);
<anchor xml:id="_bsp___calculus_8h_source_1l00074"/>00074 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="keywordtype">void</emphasis>&#32;<link linkend="_classbsp___integral_1a47307ddf418d2686245b118dcf61a199">Integral_dellist</link>(<emphasis role="keywordtype">void</emphasis>);
<anchor xml:id="_bsp___calculus_8h_source_1l00075"/>00075 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="keywordtype">void</emphasis>&#32;<link linkend="_classbsp___integral_1aae2b6143ca39861a83b77befc131bf5e">Integral_clslist</link>(<emphasis role="keywordtype">void</emphasis>);
<anchor xml:id="_bsp___calculus_8h_source_1l00076"/>00076 &#32;&#32;&#32;&#32;<emphasis role="keyword">public</emphasis>:
<anchor xml:id="_bsp___calculus_8h_source_1l00077"/><link linkend="_classbsp___integral_1a656d90c5a713abf0665f1dcbf1a5101a">00077</link> &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="keywordtype">float</emphasis>&#32;&#32;&#32;*<link linkend="_classbsp___integral_1a656d90c5a713abf0665f1dcbf1a5101a">result_list</link>;&#32;&#32;&#32;
<anchor xml:id="_bsp___calculus_8h_source_1l00078"/><link linkend="_classbsp___integral_1a662c735b9432a46e48a642ebb9c0e8fa">00078</link> &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link>&#32;&#32;&#32;&#32;&#32;<link linkend="_classbsp___integral_1a662c735b9432a46e48a642ebb9c0e8fa">result_len</link>;&#32;&#32;&#32;&#32;&#32;
<anchor xml:id="_bsp___calculus_8h_source_1l00079"/><link linkend="_classbsp___integral_1a910f1f3faa2b4963e00718472b8389bc">00079</link> &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="keywordtype">float</emphasis>&#32;&#32;&#32;<link linkend="_classbsp___integral_1a910f1f3faa2b4963e00718472b8389bc">results</link>;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;
<anchor xml:id="_bsp___calculus_8h_source_1l00080"/><link linkend="_classbsp___integral_1a4494cf9fc2873d457ed3bf8618b68045">00080</link> &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="keywordtype">float</emphasis>&#32;&#32;&#32;<link linkend="_classbsp___integral_1a4494cf9fc2873d457ed3bf8618b68045">dt</link>;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;
<anchor xml:id="_bsp___calculus_8h_source_1l00081"/>00081 &#32;&#32;&#32;&#32;};
<anchor xml:id="_bsp___calculus_8h_source_1l00083"/>00083 <emphasis role="preprocessor">#endif</emphasis>
</programlisting></section>

View File

@@ -1 +1 @@
042549b4c70be9512963c51b667a26c0
77705ff73775d9305def5b688629e2bf

View File

@@ -1 +1 @@
20ec23eb07beb642f39e5abcdfcd6068
5a2dd6c40815bfe731cf1667f129a274

View File

@@ -1 +1 @@
7a6a93f355491cd0f137e8e3f87c9c83
4cfab8bdd4e849699970e4e09d30f5b4

View File

@@ -1 +1 @@
610e9a8f2c0ec7b8e152d816a0343cac
972b83dc156c6576e84f65cfba424ab7

View File

@@ -1 +1 @@
a32b121090453bd1ba787e9592915435
99ec78978e193eea555b179de975dcae

View File

@@ -53,15 +53,15 @@
<anchor xml:id="_bsp___i_i_c___s_t_m32_8cpp_source_1l00080"/>00080 &#32;&#32;&#32;&#32;<emphasis role="keywordflow">else</emphasis>&#32;{
<anchor xml:id="_bsp___i_i_c___s_t_m32_8cpp_source_1l00081"/>00081 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="keywordflow">return</emphasis>&#32;HAL_GPIO_ReadPin(<link linkend="_classbsp___i_i_c___s_t_m32_1a6258aaa53e12f5502333f4440cdba352">GPIOx_SCK</link>,&#32;<link linkend="_classbsp___i_i_c___s_t_m32_1a7a5b57552741573a65114014a146bd5e">GPIO_Pin_SCK</link>);
<anchor xml:id="_bsp___i_i_c___s_t_m32_8cpp_source_1l00082"/>00082 &#32;&#32;&#32;&#32;}}
<anchor xml:id="_bsp___i_i_c___s_t_m32_8cpp_source_1l00089"/><link linkend="_classbsp___i_i_c___s_t_m32_1a8e703fab0f20578492ff23cb185b1a8d">00089</link> <link linkend="_varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca">u8</link>&#32;<link linkend="_classbsp___i_i_c___s_t_m32_1a8e703fab0f20578492ff23cb185b1a8d">bsp_IIC_STM32::IIC_SDA</link>(<link linkend="_varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca">u8</link>&#32;var)&#32;{
<anchor xml:id="_bsp___i_i_c___s_t_m32_8cpp_source_1l00090"/>00090 &#32;&#32;&#32;&#32;<emphasis role="keywordflow">if</emphasis>&#32;(var&#32;==&#32;<link linkend="_bsp___i_i_c_8h_1adf764cbdea00d65edcd07bb9953ad2b7a048bbf954430bbc34fa11280165ed534">IIC_RESET</link>)&#32;{
<anchor xml:id="_bsp___i_i_c___s_t_m32_8cpp_source_1l00091"/>00091 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;HAL_GPIO_WritePin(<link linkend="_classbsp___i_i_c___s_t_m32_1aae22b18b9aa61649c4abd31f79fa7a82">GPIOx_SDA</link>,&#32;<link linkend="_classbsp___i_i_c___s_t_m32_1a73c8aa1aef1ed9e4ff8d46e5c7755272">GPIO_Pin_SDA</link>,&#32;GPIO_PIN_RESET);
<anchor xml:id="_bsp___i_i_c___s_t_m32_8cpp_source_1l00092"/>00092 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="keywordflow">return</emphasis>&#32;2;}
<anchor xml:id="_bsp___i_i_c___s_t_m32_8cpp_source_1l00093"/>00093 &#32;&#32;&#32;&#32;<emphasis role="keywordflow">else</emphasis>&#32;<emphasis role="keywordflow">if</emphasis>&#32;(var&#32;==&#32;<link linkend="_bsp___i_i_c_8h_1adf764cbdea00d65edcd07bb9953ad2b7a9e128b73c7beb33be6b4e953a7fddc66">IIC_SET</link>)&#32;{
<anchor xml:id="_bsp___i_i_c___s_t_m32_8cpp_source_1l00094"/>00094 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;HAL_GPIO_WritePin(<link linkend="_classbsp___i_i_c___s_t_m32_1aae22b18b9aa61649c4abd31f79fa7a82">GPIOx_SDA</link>,&#32;<link linkend="_classbsp___i_i_c___s_t_m32_1a73c8aa1aef1ed9e4ff8d46e5c7755272">GPIO_Pin_SDA</link>,&#32;GPIO_PIN_SET);
<anchor xml:id="_bsp___i_i_c___s_t_m32_8cpp_source_1l00095"/>00095 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="keywordflow">return</emphasis>&#32;2;}
<anchor xml:id="_bsp___i_i_c___s_t_m32_8cpp_source_1l00096"/>00096 &#32;&#32;&#32;&#32;<emphasis role="keywordflow">else</emphasis>&#32;{
<anchor xml:id="_bsp___i_i_c___s_t_m32_8cpp_source_1l00097"/>00097 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="keywordflow">return</emphasis>&#32;HAL_GPIO_ReadPin(<link linkend="_classbsp___i_i_c___s_t_m32_1aae22b18b9aa61649c4abd31f79fa7a82">GPIOx_SDA</link>,&#32;<link linkend="_classbsp___i_i_c___s_t_m32_1a73c8aa1aef1ed9e4ff8d46e5c7755272">GPIO_Pin_SDA</link>);
<anchor xml:id="_bsp___i_i_c___s_t_m32_8cpp_source_1l00098"/>00098 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;}}
<anchor xml:id="_bsp___i_i_c___s_t_m32_8cpp_source_1l00100"/>00100
<anchor xml:id="_bsp___i_i_c___s_t_m32_8cpp_source_1l00088"/><link linkend="_classbsp___i_i_c___s_t_m32_1a8e703fab0f20578492ff23cb185b1a8d">00088</link> <link linkend="_varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca">u8</link>&#32;<link linkend="_classbsp___i_i_c___s_t_m32_1a8e703fab0f20578492ff23cb185b1a8d">bsp_IIC_STM32::IIC_SDA</link>(<link linkend="_varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca">u8</link>&#32;var)&#32;{
<anchor xml:id="_bsp___i_i_c___s_t_m32_8cpp_source_1l00089"/>00089 &#32;&#32;&#32;&#32;<emphasis role="keywordflow">if</emphasis>&#32;(var&#32;==&#32;<link linkend="_bsp___i_i_c_8h_1adf764cbdea00d65edcd07bb9953ad2b7a048bbf954430bbc34fa11280165ed534">IIC_RESET</link>)&#32;{
<anchor xml:id="_bsp___i_i_c___s_t_m32_8cpp_source_1l00090"/>00090 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;HAL_GPIO_WritePin(<link linkend="_classbsp___i_i_c___s_t_m32_1aae22b18b9aa61649c4abd31f79fa7a82">GPIOx_SDA</link>,&#32;<link linkend="_classbsp___i_i_c___s_t_m32_1a73c8aa1aef1ed9e4ff8d46e5c7755272">GPIO_Pin_SDA</link>,&#32;GPIO_PIN_RESET);
<anchor xml:id="_bsp___i_i_c___s_t_m32_8cpp_source_1l00091"/>00091 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="keywordflow">return</emphasis>&#32;2;}
<anchor xml:id="_bsp___i_i_c___s_t_m32_8cpp_source_1l00092"/>00092 &#32;&#32;&#32;&#32;<emphasis role="keywordflow">else</emphasis>&#32;<emphasis role="keywordflow">if</emphasis>&#32;(var&#32;==&#32;<link linkend="_bsp___i_i_c_8h_1adf764cbdea00d65edcd07bb9953ad2b7a9e128b73c7beb33be6b4e953a7fddc66">IIC_SET</link>)&#32;{
<anchor xml:id="_bsp___i_i_c___s_t_m32_8cpp_source_1l00093"/>00093 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;HAL_GPIO_WritePin(<link linkend="_classbsp___i_i_c___s_t_m32_1aae22b18b9aa61649c4abd31f79fa7a82">GPIOx_SDA</link>,&#32;<link linkend="_classbsp___i_i_c___s_t_m32_1a73c8aa1aef1ed9e4ff8d46e5c7755272">GPIO_Pin_SDA</link>,&#32;GPIO_PIN_SET);
<anchor xml:id="_bsp___i_i_c___s_t_m32_8cpp_source_1l00094"/>00094 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="keywordflow">return</emphasis>&#32;2;}
<anchor xml:id="_bsp___i_i_c___s_t_m32_8cpp_source_1l00095"/>00095 &#32;&#32;&#32;&#32;<emphasis role="keywordflow">else</emphasis>&#32;{
<anchor xml:id="_bsp___i_i_c___s_t_m32_8cpp_source_1l00096"/>00096 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="keywordflow">return</emphasis>&#32;HAL_GPIO_ReadPin(<link linkend="_classbsp___i_i_c___s_t_m32_1aae22b18b9aa61649c4abd31f79fa7a82">GPIOx_SDA</link>,&#32;<link linkend="_classbsp___i_i_c___s_t_m32_1a73c8aa1aef1ed9e4ff8d46e5c7755272">GPIO_Pin_SDA</link>);
<anchor xml:id="_bsp___i_i_c___s_t_m32_8cpp_source_1l00097"/>00097 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;}}
<anchor xml:id="_bsp___i_i_c___s_t_m32_8cpp_source_1l00099"/>00099
</programlisting></section>

View File

@@ -1 +1 @@
434d1ac463c09204629681b9859e90e5
d93573a6061a468cee600bcb26da56c0

View File

@@ -1 +1 @@
c3412ba50491fb15b2e98d622a058257
edece428a1865e9468bf81418d1c614d

View File

@@ -1 +1 @@
c7878948260ba41829bba5fa91f57c35
e94bd0298a4a163f1850dfb7bc77d139

View File

@@ -1 +1 @@
7e507556509e9083d59516b0ca7d0e53
95ef4392359a3ed19f5792653ca66da9

View File

@@ -1 +1 @@
ed0f49f916ae094198ae0f7fe42942c7
87f408f1a881a8f9ffc46b5873fa5e1f

View File

@@ -1 +1 @@
25ce0e9308f678af72fe2e4cd7bac92d
62ce250af195cf0621767371adf7a71a

View File

@@ -1 +1 @@
6a8961a100923169530083bf0b917641
c6f39345e90191cd2ff70821a6ad15ba

View File

@@ -1 +1 @@
27ea151070e5815d5c45816e67ed464b
284238da4c9efdbbbde5e601ed6bcb96

View File

@@ -1 +1 @@
ea1261db9a114170f97b9ede4db83279
ebc85e246f2da1d131078b4684307bbe

View File

@@ -1 +1 @@
5c3df41c0e696701837b806e77c69d98
2ab85af796eaf36eee108f8cccd60e15

View File

@@ -1 +1 @@
0963e028120e6ec1f2f7050575e37c26
cf82af814320311898cbfce219375707

View File

@@ -1 +1 @@
ba83b3acb6835f6281fb9befa8f81c7d
d276001320b370d74ffd90fc9d28f0d0

View File

@@ -2,6 +2,11 @@
<section xmlns="http://docbook.org/ns/docbook" version="5.0" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="_bsp___s_d_8h" xml:lang="zh">
<title>D:/gitt/MicrochipFor32/bsp_Device/bsp_SD.h 文件参考</title>
<indexterm><primary>D:/gitt/MicrochipFor32/bsp_Device/bsp_SD.h</primary></indexterm>
<para>
<para>操作SD卡的库 </para>
</para>
<programlisting linenumbering="unnumbered">#include &quot;spi.h&quot;<?linebreak?>#include &quot;varint.h&quot;<?linebreak?></programlisting>bsp_SD.h 的引用(Include)关系图:<para>
<informalfigure>
<mediaobject>
@@ -136,6 +141,13 @@
</itemizedlist>
</simplesect>
<section>
<title>详细描述</title>
<para>操作SD卡的库 </para>
<para>
在文件 <link linkend="_bsp___s_d_8h_source">bsp_SD.h</link> 中定义.</para>
</section>
<section>
<title>宏定义说明</title>
<anchor xml:id="_bsp___s_d_8h_1a938c1466755f12fb04ac0d1b775584d1"/><section>
<title>CMD0</title>

View File

@@ -1 +1 @@
a352825c2443e2cffaad52cb43e5ed6c
38f535b42a8225f3b3512882fc587218

View File

@@ -1 +1 @@
2d80c37534916ebc9695572cc5b08873
2942098228a949bc0cbeb671e9019831

View File

@@ -0,0 +1,243 @@
<?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_8c" xml:lang="zh">
<title>D:/gitt/MicrochipFor32/bsp_Device/bsp_flash.c 文件参考</title>
<indexterm><primary>D:/gitt/MicrochipFor32/bsp_Device/bsp_flash.c</primary></indexterm>
<para>
<para>写STM32的Flash库 </para>
</para>
<programlisting linenumbering="unnumbered">#include &quot;main.h&quot;<?linebreak?></programlisting>bsp_flash.c 的引用(Include)关系图:<para>
<informalfigure>
<mediaobject>
<imageobject>
<imagedata width="50%" align="center" valign="middle" scalefit="0" fileref="bsp__flash_8c__incl.png"></imagedata>
</imageobject>
</mediaobject>
</informalfigure>
</para>
<simplesect>
<title></title>
<itemizedlist>
<listitem><para>struct <link linkend="_structstruct__bsp___flash___pack">struct_bsp_Flash_Pack</link></para>
<para>一包数据的内容 </para>
</listitem>
</itemizedlist>
</simplesect>
<simplesect>
<title>函数 </title>
<itemizedlist>
<listitem><para>uint32_t <link linkend="_bsp__flash_8c_1af1304997d797af3400074bdb68e5de1c">bsp_WriteFlashOnePage</link> (uint32_t *dat, uint32_t num)</para>
<para>写入一页Flash空间 </para>
</listitem>
<listitem><para>void <link linkend="_bsp__flash_8c_1a734a679e19a8af2c7ddfa86f4310a13d">bsp_ReadFlash</link> (uint32_t *dat, uint32_t num)</para>
<para>读取一页Flash空间 </para>
</listitem>
<listitem><para>void <link linkend="_bsp__flash_8c_1aa1a1ff74b284a19aa3872b6f3d6abd11">bsp_WriteFlash_Pack</link> (void)</para>
<para>将一包数据存入Flash </para>
</listitem>
<listitem><para>void <link linkend="_bsp__flash_8c_1a45549058e1315d29263c0b26816bcffb">bsp_ReadFlash_Pack</link> (void)</para>
<para>从Flash读取一包数据 </para>
</listitem>
</itemizedlist>
</simplesect>
<simplesect>
<title>变量 </title>
<itemizedlist>
<listitem><para>uint32_t <link linkend="_bsp__flash_8c_1a37cd1b57193a374f9a86b6cf1277cd0a">FlashAddr</link> = 0x08010000</para>
<para>读写Flash起始地址,跳过程序部分 </para>
</listitem>
<listitem><para>struct <link linkend="_structstruct__bsp___flash___pack">struct_bsp_Flash_Pack</link> <link linkend="_bsp__flash_8c_1a2c0639c4d50bba3762a4295a56a06af8">bsp_Flash_Pack</link> ={0,0,0}</para>
</listitem>
</itemizedlist>
</simplesect>
<section>
<title>详细描述</title>
<para>写STM32的Flash库 </para>
<para>
在文件 <link linkend="_bsp__flash_8c_source">bsp_flash.c</link> 中定义.</para>
</section>
<section>
<title>函数说明</title>
<anchor xml:id="_bsp__flash_8c_1a734a679e19a8af2c7ddfa86f4310a13d"/><section>
<title>bsp_ReadFlash()</title>
<indexterm><primary>bsp_ReadFlash</primary><secondary>bsp_flash.c</secondary></indexterm>
<indexterm><primary>bsp_flash.c</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_8c_a734a679e19a8af2c7ddfa86f4310a13d_icgraph.png"></imagedata>
</imageobject>
</mediaobject>
</informalfigure>
</para>
</section>
<anchor xml:id="_bsp__flash_8c_1a45549058e1315d29263c0b26816bcffb"/><section>
<title>bsp_ReadFlash_Pack()</title>
<indexterm><primary>bsp_ReadFlash_Pack</primary><secondary>bsp_flash.c</secondary></indexterm>
<indexterm><primary>bsp_flash.c</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_8c_a45549058e1315d29263c0b26816bcffb_cgraph.png"></imagedata>
</imageobject>
</mediaobject>
</informalfigure>
</para>
</section>
<anchor xml:id="_bsp__flash_8c_1aa1a1ff74b284a19aa3872b6f3d6abd11"/><section>
<title>bsp_WriteFlash_Pack()</title>
<indexterm><primary>bsp_WriteFlash_Pack</primary><secondary>bsp_flash.c</secondary></indexterm>
<indexterm><primary>bsp_flash.c</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_8c_aa1a1ff74b284a19aa3872b6f3d6abd11_cgraph.png"></imagedata>
</imageobject>
</mediaobject>
</informalfigure>
</para>
</section>
<anchor xml:id="_bsp__flash_8c_1af1304997d797af3400074bdb68e5de1c"/><section>
<title>bsp_WriteFlashOnePage()</title>
<indexterm><primary>bsp_WriteFlashOnePage</primary><secondary>bsp_flash.c</secondary></indexterm>
<indexterm><primary>bsp_flash.c</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_8c_af1304997d797af3400074bdb68e5de1c_icgraph.png"></imagedata>
</imageobject>
</mediaobject>
</informalfigure>
</para>
</section>
</section>
<section>
<title>变量说明</title>
<anchor xml:id="_bsp__flash_8c_1a2c0639c4d50bba3762a4295a56a06af8"/><section>
<title>bsp_Flash_Pack</title>
<indexterm><primary>bsp_Flash_Pack</primary><secondary>bsp_flash.c</secondary></indexterm>
<indexterm><primary>bsp_flash.c</primary><secondary>bsp_Flash_Pack</secondary></indexterm>
<para><computeroutput>struct <link linkend="_structstruct__bsp___flash___pack">struct_bsp_Flash_Pack</link> bsp_Flash_Pack ={0,0,0}</computeroutput></para></section>
<anchor xml:id="_bsp__flash_8c_1a37cd1b57193a374f9a86b6cf1277cd0a"/><section>
<title>FlashAddr</title>
<indexterm><primary>FlashAddr</primary><secondary>bsp_flash.c</secondary></indexterm>
<indexterm><primary>bsp_flash.c</primary><secondary>FlashAddr</secondary></indexterm>
<para><computeroutput>uint32_t FlashAddr = 0x08010000</computeroutput></para><para>
<para>读写Flash起始地址,跳过程序部分 </para>
</para>
<para>
在文件 <link linkend="_bsp__flash_8c_source">bsp_flash.c</link><link linkend="_bsp__flash_8c_source_1l00036">36</link> 行定义.</para>
</section>
</section>
</section>

View File

@@ -0,0 +1 @@
fb2ed090a154415f6c01daed1e15d25d

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@@ -0,0 +1 @@
ab5ff94308626c322cbbe1936391c29b

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@@ -0,0 +1 @@
b0ff8295d0b038b5ca8bf7e04a6b7c30

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@@ -0,0 +1 @@
0abb31e8446137b0899ce5b453a691cc

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@@ -0,0 +1 @@
54426b90b818acb7f5333a62b45c8205

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@@ -0,0 +1,63 @@
<?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_8c_source" xml:lang="zh">
<title>bsp_flash.c</title>
<indexterm><primary>D:/gitt/MicrochipFor32/bsp_Device/bsp_flash.c</primary></indexterm>
浏览该文件的文档.<programlisting linenumbering="unnumbered"><anchor xml:id="_bsp__flash_8c_source_1l00001"/>00001 <emphasis role="comment">/*----------------------------------------------------------------------------------------------------</emphasis>
<anchor xml:id="_bsp__flash_8c_source_1l00002"/>00002 <emphasis role="comment">&#32;#</emphasis>
<anchor xml:id="_bsp__flash_8c_source_1l00003"/>00003 <emphasis role="comment">&#32;#&#32;&#32;Copyright&#32;(c)&#32;2022&#32;Yuankang&#32;Liang(XerolySkinner)</emphasis>
<anchor xml:id="_bsp__flash_8c_source_1l00004"/>00004 <emphasis role="comment">&#32;#</emphasis>
<anchor xml:id="_bsp__flash_8c_source_1l00005"/>00005 <emphasis role="comment">&#32;#&#32;&#32;本软件按原样提供,无任何明示或暗示</emphasis>
<anchor xml:id="_bsp__flash_8c_source_1l00006"/>00006 <emphasis role="comment">&#32;#&#32;&#32;在任何情况下,作者都不承担任何损害赔偿责任</emphasis>
<anchor xml:id="_bsp__flash_8c_source_1l00007"/>00007 <emphasis role="comment">&#32;#</emphasis>
<anchor xml:id="_bsp__flash_8c_source_1l00008"/>00008 <emphasis role="comment">&#32;#&#32;&#32;使用的许可声明:</emphasis>
<anchor xml:id="_bsp__flash_8c_source_1l00009"/>00009 <emphasis role="comment">&#32;#&#32;&#32;1.&#32;&#32;不得歪曲本软件的来源,你不能声称你编写了原始软件.</emphasis>
<anchor xml:id="_bsp__flash_8c_source_1l00010"/>00010 <emphasis role="comment">&#32;#&#32;&#32;2.&#32;&#32;免费授予以任何目的,前提是版权声明出现在所有副本中.</emphasis>
<anchor xml:id="_bsp__flash_8c_source_1l00011"/>00011 <emphasis role="comment">&#32;#&#32;&#32;&#32;&#32;&#32;&#32;并且版权声明和许可声明同时出现.</emphasis>
<anchor xml:id="_bsp__flash_8c_source_1l00012"/>00012 <emphasis role="comment">&#32;#&#32;&#32;3.&#32;&#32;你有使用,复制,修改,分发,和销售本软件的许可.</emphasis>
<anchor xml:id="_bsp__flash_8c_source_1l00013"/>00013 <emphasis role="comment">&#32;#&#32;&#32;4.&#32;&#32;如果你在产品中使用,产品文档中的声明是赞赏的但不是必须的.</emphasis>
<anchor xml:id="_bsp__flash_8c_source_1l00014"/>00014 <emphasis role="comment">&#32;#&#32;&#32;5.&#32;&#32;本通知不得从任何来源删除或更改.</emphasis>
<anchor xml:id="_bsp__flash_8c_source_1l00015"/>00015 <emphasis role="comment">&#32;#</emphasis>
<anchor xml:id="_bsp__flash_8c_source_1l00016"/>00016 <emphasis role="comment">&#32;#&#32;&#32;Yuankang&#32;Liang(XerolySkinner)</emphasis>
<anchor xml:id="_bsp__flash_8c_source_1l00017"/>00017 <emphasis role="comment">&#32;#&#32;&#32;&#32;&#32;&#32;&#32;E-mail:zabbcccbbaz@163.com</emphasis>
<anchor xml:id="_bsp__flash_8c_source_1l00018"/>00018 <emphasis role="comment">&#32;#&#32;&#32;&#32;&#32;&#32;&#32;QQ:2715099320</emphasis>
<anchor xml:id="_bsp__flash_8c_source_1l00019"/>00019 <emphasis role="comment">&#32;#&#32;&#32;&#32;&#32;&#32;&#32;Mobile&#32;Phone:13005636215</emphasis>
<anchor xml:id="_bsp__flash_8c_source_1l00020"/>00020 <emphasis role="comment">&#32;#</emphasis>
<anchor xml:id="_bsp__flash_8c_source_1l00021"/>00021 <emphasis role="comment">&#32;#&#32;&#32;All&#32;rights&#32;reserved.</emphasis>
<anchor xml:id="_bsp__flash_8c_source_1l00022"/>00022 <emphasis role="comment">&#32;*/</emphasis>
<anchor xml:id="_bsp__flash_8c_source_1l00023"/>00023
<anchor xml:id="_bsp__flash_8c_source_1l00035"/>00035 <emphasis role="preprocessor">#include&#32;&quot;main.h&quot;</emphasis>
<anchor xml:id="_bsp__flash_8c_source_1l00036"/><link linkend="_bsp__flash_8c_1a37cd1b57193a374f9a86b6cf1277cd0a">00036</link> uint32_t&#32;<link linkend="_bsp__flash_8c_1a37cd1b57193a374f9a86b6cf1277cd0a">FlashAddr</link>&#32;=&#32;0x08010000;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;
<anchor xml:id="_bsp__flash_8c_source_1l00037"/>00037 <emphasis role="comment">//----------------------------------------------------------------------------------------------------</emphasis>
<anchor xml:id="_bsp__flash_8c_source_1l00038"/>00038 <emphasis role="preprocessor">#pragma&#32;pack(4)</emphasis>
<anchor xml:id="_bsp__flash_8c_source_1l00043"/><link linkend="_structstruct__bsp___flash___pack">00043</link> <emphasis role="keyword">struct&#32;</emphasis><link linkend="_structstruct__bsp___flash___pack">struct_bsp_Flash_Pack</link>{
<anchor xml:id="_bsp__flash_8c_source_1l00044"/><link linkend="_structstruct__bsp___flash___pack_1aea6e531775263f158f23d2295f759dd7">00044</link> &#32;&#32;&#32;&#32;<emphasis role="keywordtype">char</emphasis>&#32;&#32;&#32;&#32;<link linkend="_structstruct__bsp___flash___pack_1aea6e531775263f158f23d2295f759dd7">Var0</link>;
<anchor xml:id="_bsp__flash_8c_source_1l00045"/><link linkend="_structstruct__bsp___flash___pack_1aff73ebf1f2eaf5930d7187aa5f502075">00045</link> &#32;&#32;&#32;&#32;<emphasis role="keywordtype">short</emphasis>&#32;&#32;&#32;<link linkend="_structstruct__bsp___flash___pack_1aff73ebf1f2eaf5930d7187aa5f502075">Var1</link>;
<anchor xml:id="_bsp__flash_8c_source_1l00046"/><link linkend="_structstruct__bsp___flash___pack_1adc2edcdadc2b2be3d18334cd196e049c">00046</link> &#32;&#32;&#32;&#32;<emphasis role="keywordtype">int</emphasis>&#32;&#32;&#32;&#32;&#32;<link linkend="_structstruct__bsp___flash___pack_1adc2edcdadc2b2be3d18334cd196e049c">Var2</link>;
<anchor xml:id="_bsp__flash_8c_source_1l00047"/><link linkend="_bsp__flash_8c_1a2c0639c4d50bba3762a4295a56a06af8">00047</link> }<link linkend="_bsp__flash_8c_1a2c0639c4d50bba3762a4295a56a06af8">bsp_Flash_Pack</link>={0,0,0};
<anchor xml:id="_bsp__flash_8c_source_1l00048"/>00048 <emphasis role="preprocessor">#pragma&#32;pack()</emphasis>
<anchor xml:id="_bsp__flash_8c_source_1l00049"/>00049 <emphasis role="comment">//----------------------------------------------------------------------------------------------------</emphasis>
<anchor xml:id="_bsp__flash_8c_source_1l00056"/><link linkend="_bsp__flash_8c_1af1304997d797af3400074bdb68e5de1c">00056</link> <emphasis role="comment"></emphasis>uint32_t&#32;<link linkend="_bsp__flash_8c_1af1304997d797af3400074bdb68e5de1c">bsp_WriteFlashOnePage</link>(uint32_t&#32;*dat,uint32_t&#32;num){
<anchor xml:id="_bsp__flash_8c_source_1l00057"/>00057 &#32;&#32;&#32;&#32;FLASH_EraseInitTypeDef&#32;f;
<anchor xml:id="_bsp__flash_8c_source_1l00058"/>00058 &#32;&#32;&#32;&#32;uint32_t&#32;PageError&#32;=&#32;0;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//错误号7</emphasis>
<anchor xml:id="_bsp__flash_8c_source_1l00059"/>00059 &#32;&#32;&#32;&#32;HAL_FLASH_Unlock();&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//解锁FLASH</emphasis>
<anchor xml:id="_bsp__flash_8c_source_1l00060"/>00060 &#32;&#32;&#32;&#32;f.TypeErase&#32;=&#32;FLASH_TYPEERASE_PAGES;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//Flash擦除</emphasis>
<anchor xml:id="_bsp__flash_8c_source_1l00061"/>00061 &#32;&#32;&#32;&#32;f.PageAddress&#32;=&#32;<link linkend="_bsp__flash_8c_1a37cd1b57193a374f9a86b6cf1277cd0a">FlashAddr</link>;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//擦除地址(起始页)</emphasis>
<anchor xml:id="_bsp__flash_8c_source_1l00062"/>00062 &#32;&#32;&#32;&#32;f.NbPages&#32;=&#32;1;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//擦除1页</emphasis>
<anchor xml:id="_bsp__flash_8c_source_1l00063"/>00063 &#32;&#32;&#32;&#32;HAL_FLASHEx_Erase(&amp;f,&amp;PageError);&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//调用擦除函数</emphasis>
<anchor xml:id="_bsp__flash_8c_source_1l00064"/>00064 &#32;&#32;&#32;&#32;<emphasis role="keywordflow">for</emphasis>(<emphasis role="keywordtype">int</emphasis>&#32;i=0;i&lt;num;i++)
<anchor xml:id="_bsp__flash_8c_source_1l00065"/>00065 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;HAL_FLASH_Program(TYPEPROGRAM_WORD,<link linkend="_bsp__flash_8c_1a37cd1b57193a374f9a86b6cf1277cd0a">FlashAddr</link>+i*4,dat[i]);&#32;&#32;&#32;<emphasis role="comment">//对FLASH烧写</emphasis>
<anchor xml:id="_bsp__flash_8c_source_1l00066"/>00066 &#32;&#32;&#32;&#32;HAL_FLASH_Lock();&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//锁住FLASH</emphasis>
<anchor xml:id="_bsp__flash_8c_source_1l00067"/>00067 &#32;&#32;&#32;&#32;<emphasis role="keywordflow">return</emphasis>&#32;PageError;}
<anchor xml:id="_bsp__flash_8c_source_1l00068"/>00068 <emphasis role="comment">//----------------------------------------------------------------------------------------------------</emphasis>
<anchor xml:id="_bsp__flash_8c_source_1l00075"/><link linkend="_bsp__flash_8c_1a734a679e19a8af2c7ddfa86f4310a13d">00075</link> <emphasis role="comment"></emphasis><emphasis role="keywordtype">void</emphasis>&#32;<link linkend="_bsp__flash_8c_1a734a679e19a8af2c7ddfa86f4310a13d">bsp_ReadFlash</link>(uint32_t&#32;*dat,uint32_t&#32;num){&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="comment">//读入一串数据</emphasis>
<anchor xml:id="_bsp__flash_8c_source_1l00076"/>00076 &#32;&#32;&#32;&#32;<emphasis role="keywordflow">for</emphasis>(<emphasis role="keywordtype">int</emphasis>&#32;i=0;i&lt;num;i++)
<anchor xml:id="_bsp__flash_8c_source_1l00077"/>00077 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;dat[i]=*(__IO&#32;uint32_t*)(<link linkend="_bsp__flash_8c_1a37cd1b57193a374f9a86b6cf1277cd0a">FlashAddr</link>+i*4);}
<anchor xml:id="_bsp__flash_8c_source_1l00078"/>00078 <emphasis role="comment">//----------------------------------------------------------------------------------------------------</emphasis>
<anchor xml:id="_bsp__flash_8c_source_1l00083"/><link linkend="_bsp__flash_8c_1aa1a1ff74b284a19aa3872b6f3d6abd11">00083</link> <emphasis role="comment"></emphasis><emphasis role="keywordtype">void</emphasis>&#32;<link linkend="_bsp__flash_8c_1aa1a1ff74b284a19aa3872b6f3d6abd11">bsp_WriteFlash_Pack</link>(<emphasis role="keywordtype">void</emphasis>){
<anchor xml:id="_bsp__flash_8c_source_1l00084"/>00084 &#32;&#32;&#32;&#32;<link linkend="_bsp__flash_8c_1af1304997d797af3400074bdb68e5de1c">bsp_WriteFlashOnePage</link>((uint32_t*)(&amp;<link linkend="_bsp__flash_8c_1a2c0639c4d50bba3762a4295a56a06af8">bsp_Flash_Pack</link>),<emphasis role="keyword">sizeof</emphasis>(<emphasis role="keyword">struct</emphasis>&#32;<link linkend="_structstruct__bsp___flash___pack">struct_bsp_Flash_Pack</link>));
<anchor xml:id="_bsp__flash_8c_source_1l00085"/>00085 &#32;&#32;&#32;&#32;<emphasis role="keywordflow">return</emphasis>;}
<anchor xml:id="_bsp__flash_8c_source_1l00086"/>00086 <emphasis role="comment">//----------------------------------------------------------------------------------------------------</emphasis>
<anchor xml:id="_bsp__flash_8c_source_1l00091"/><link linkend="_bsp__flash_8c_1a45549058e1315d29263c0b26816bcffb">00091</link> <emphasis role="comment"></emphasis><emphasis role="keywordtype">void</emphasis>&#32;<link linkend="_bsp__flash_8c_1a45549058e1315d29263c0b26816bcffb">bsp_ReadFlash_Pack</link>(<emphasis role="keywordtype">void</emphasis>){
<anchor xml:id="_bsp__flash_8c_source_1l00092"/>00092 &#32;&#32;&#32;&#32;<link linkend="_bsp__flash_8c_1a734a679e19a8af2c7ddfa86f4310a13d">bsp_ReadFlash</link>((uint32_t*)(&amp;<link linkend="_bsp__flash_8c_1a2c0639c4d50bba3762a4295a56a06af8">bsp_Flash_Pack</link>),<emphasis role="keyword">sizeof</emphasis>(<emphasis role="keyword">struct</emphasis>&#32;<link linkend="_structstruct__bsp___flash___pack">struct_bsp_Flash_Pack</link>));
<anchor xml:id="_bsp__flash_8c_source_1l00093"/>00093 &#32;&#32;&#32;&#32;<emphasis role="keywordflow">return</emphasis>;}
</programlisting></section>

View File

@@ -0,0 +1,204 @@
<?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 &quot;main.h&quot;<?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>

View File

@@ -0,0 +1 @@
f0a077ada558d3a1a1bb4c3258509cbb

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@@ -0,0 +1 @@
ab5ff94308626c322cbbe1936391c29b

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@@ -0,0 +1 @@
b0ff8295d0b038b5ca8bf7e04a6b7c30

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@@ -0,0 +1 @@
0abb31e8446137b0899ce5b453a691cc

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@@ -0,0 +1 @@
54426b90b818acb7f5333a62b45c8205

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@@ -0,0 +1,39 @@
<?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_source" xml:lang="zh">
<title>bsp_flash.h</title>
<indexterm><primary>D:/gitt/MicrochipFor32/bsp_Device/bsp_flash.h</primary></indexterm>
浏览该文件的文档.<programlisting linenumbering="unnumbered"><anchor xml:id="_bsp__flash_8h_source_1l00001"/>00001 <emphasis role="comment">/*----------------------------------------------------------------------------------------------------</emphasis>
<anchor xml:id="_bsp__flash_8h_source_1l00002"/>00002 <emphasis role="comment">&#32;#</emphasis>
<anchor xml:id="_bsp__flash_8h_source_1l00003"/>00003 <emphasis role="comment">&#32;#&#32;&#32;Copyright&#32;(c)&#32;2022&#32;Yuankang&#32;Liang(XerolySkinner)</emphasis>
<anchor xml:id="_bsp__flash_8h_source_1l00004"/>00004 <emphasis role="comment">&#32;#</emphasis>
<anchor xml:id="_bsp__flash_8h_source_1l00005"/>00005 <emphasis role="comment">&#32;#&#32;&#32;本软件按原样提供,无任何明示或暗示</emphasis>
<anchor xml:id="_bsp__flash_8h_source_1l00006"/>00006 <emphasis role="comment">&#32;#&#32;&#32;在任何情况下,作者都不承担任何损害赔偿责任</emphasis>
<anchor xml:id="_bsp__flash_8h_source_1l00007"/>00007 <emphasis role="comment">&#32;#</emphasis>
<anchor xml:id="_bsp__flash_8h_source_1l00008"/>00008 <emphasis role="comment">&#32;#&#32;&#32;使用的许可声明:</emphasis>
<anchor xml:id="_bsp__flash_8h_source_1l00009"/>00009 <emphasis role="comment">&#32;#&#32;&#32;1.&#32;&#32;不得歪曲本软件的来源,你不能声称你编写了原始软件.</emphasis>
<anchor xml:id="_bsp__flash_8h_source_1l00010"/>00010 <emphasis role="comment">&#32;#&#32;&#32;2.&#32;&#32;免费授予以任何目的,前提是版权声明出现在所有副本中.</emphasis>
<anchor xml:id="_bsp__flash_8h_source_1l00011"/>00011 <emphasis role="comment">&#32;#&#32;&#32;&#32;&#32;&#32;&#32;并且版权声明和许可声明同时出现.</emphasis>
<anchor xml:id="_bsp__flash_8h_source_1l00012"/>00012 <emphasis role="comment">&#32;#&#32;&#32;3.&#32;&#32;你有使用,复制,修改,分发,和销售本软件的许可.</emphasis>
<anchor xml:id="_bsp__flash_8h_source_1l00013"/>00013 <emphasis role="comment">&#32;#&#32;&#32;4.&#32;&#32;如果你在产品中使用,产品文档中的声明是赞赏的但不是必须的.</emphasis>
<anchor xml:id="_bsp__flash_8h_source_1l00014"/>00014 <emphasis role="comment">&#32;#&#32;&#32;5.&#32;&#32;本通知不得从任何来源删除或更改.</emphasis>
<anchor xml:id="_bsp__flash_8h_source_1l00015"/>00015 <emphasis role="comment">&#32;#</emphasis>
<anchor xml:id="_bsp__flash_8h_source_1l00016"/>00016 <emphasis role="comment">&#32;#&#32;&#32;Yuankang&#32;Liang(XerolySkinner)</emphasis>
<anchor xml:id="_bsp__flash_8h_source_1l00017"/>00017 <emphasis role="comment">&#32;#&#32;&#32;&#32;&#32;&#32;&#32;E-mail:zabbcccbbaz@163.com</emphasis>
<anchor xml:id="_bsp__flash_8h_source_1l00018"/>00018 <emphasis role="comment">&#32;#&#32;&#32;&#32;&#32;&#32;&#32;QQ:2715099320</emphasis>
<anchor xml:id="_bsp__flash_8h_source_1l00019"/>00019 <emphasis role="comment">&#32;#&#32;&#32;&#32;&#32;&#32;&#32;Mobile&#32;Phone:13005636215</emphasis>
<anchor xml:id="_bsp__flash_8h_source_1l00020"/>00020 <emphasis role="comment">&#32;#</emphasis>
<anchor xml:id="_bsp__flash_8h_source_1l00021"/>00021 <emphasis role="comment">&#32;#&#32;&#32;All&#32;rights&#32;reserved.</emphasis>
<anchor xml:id="_bsp__flash_8h_source_1l00022"/>00022 <emphasis role="comment">&#32;*/</emphasis>
<anchor xml:id="_bsp__flash_8h_source_1l00023"/>00023
<anchor xml:id="_bsp__flash_8h_source_1l00034"/>00034 <emphasis role="preprocessor">#ifndef&#32;_XEROLYSKINNER_BSP_FLASH_H</emphasis>
<anchor xml:id="_bsp__flash_8h_source_1l00035"/>00035 <emphasis role="preprocessor">#define&#32;_XEROLYSKINNER_BSP_FLASH_H</emphasis>
<anchor xml:id="_bsp__flash_8h_source_1l00036"/>00036 <emphasis role="preprocessor">#include&#32;&quot;main.h&quot;</emphasis>
<anchor xml:id="_bsp__flash_8h_source_1l00038"/>00038 <emphasis role="comment">//----------------------------------------------------------------------------------------------------</emphasis>
<anchor xml:id="_bsp__flash_8h_source_1l00039"/>00039 <emphasis role="comment">//&#32;&#32;程序</emphasis>
<anchor xml:id="_bsp__flash_8h_source_1l00040"/>00040 <emphasis role="comment">//&#32;&#32;</emphasis>
<anchor xml:id="_bsp__flash_8h_source_1l00041"/>00041 uint32_t&#32;<link linkend="_bsp__flash_8h_1af1304997d797af3400074bdb68e5de1c">bsp_WriteFlashOnePage</link>(uint32_t&#32;*dat,uint32_t&#32;num);
<anchor xml:id="_bsp__flash_8h_source_1l00042"/>00042 <emphasis role="keywordtype">void</emphasis>&#32;<link linkend="_bsp__flash_8h_1a734a679e19a8af2c7ddfa86f4310a13d">bsp_ReadFlash</link>(uint32_t&#32;*dat,uint32_t&#32;num);
<anchor xml:id="_bsp__flash_8h_source_1l00043"/>00043 <emphasis role="keywordtype">void</emphasis>&#32;<link linkend="_bsp__flash_8h_1aa1a1ff74b284a19aa3872b6f3d6abd11">bsp_WriteFlash_Pack</link>(<emphasis role="keywordtype">void</emphasis>);
<anchor xml:id="_bsp__flash_8h_source_1l00044"/>00044 <emphasis role="keywordtype">void</emphasis>&#32;<link linkend="_bsp__flash_8h_1a45549058e1315d29263c0b26816bcffb">bsp_ReadFlash_Pack</link>(<emphasis role="keywordtype">void</emphasis>);
<anchor xml:id="_bsp__flash_8h_source_1l00046"/>00046 <emphasis role="preprocessor">#endif</emphasis>
</programlisting></section>

View File

@@ -0,0 +1,318 @@
<?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="_classbsp___b_m_p" xml:lang="zh">
<title>bsp_BMP类 参考</title>
<indexterm><primary>bsp_BMP</primary></indexterm>
<para>
<para>构建一个BMP类 </para>
</para>
<para>
<computeroutput>#include &lt;bsp_BMP.h&gt;</computeroutput>
</para>
bsp_BMP 的协作图:<para>
<informalfigure>
<mediaobject>
<imageobject>
<imagedata width="50%" align="center" valign="middle" scalefit="0" fileref="classbsp___b_m_p__coll__graph.png"></imagedata>
</imageobject>
</mediaobject>
</informalfigure>
</para>
<simplesect>
<title>Public 成员函数 </title>
<itemizedlist>
<listitem><para><link linkend="_classbsp___b_m_p_1a27d05488822dc9548e0783d46808a1db">bsp_BMP</link> (<link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link> Width, <link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link> Height)</para>
<para>构造BMP数据头 </para>
</listitem>
<listitem><para><link linkend="_classbsp___b_m_p_1a604d7e5683da37be890672aa690c2ff2">~bsp_BMP</link> (void)</para>
</listitem>
<listitem><para>void <link linkend="_classbsp___b_m_p_1a4aaa5a2ea2f5b3c07c8e16009984766e">pels</link> (<link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link> x, <link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link> y)</para>
<para>设置像素 </para>
</listitem>
<listitem><para><link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link> <link linkend="_classbsp___b_m_p_1ae0e2551a06b8ad966a86b2c8324da25c">giveData</link> (void)</para>
<para>给予数据空间 </para>
</listitem>
<listitem><para>void <link linkend="_classbsp___b_m_p_1abe5d545dea1090a228843f140650f573">delData</link> (void)</para>
<para>释放数据空间 </para>
</listitem>
<listitem><para>void <link linkend="_classbsp___b_m_p_1a17c0c014ef6ce7d09a5dd81c5d2c5d57">ColorsSet</link> (<link linkend="_varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca">u8</link> R, <link linkend="_varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca">u8</link> G, <link linkend="_varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca">u8</link> B, <link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link> i)</para>
<para>设置调色板 </para>
</listitem>
<listitem><para>void <link linkend="_classbsp___b_m_p_1a535cd9bfe5e49ba97ff9c4a1dd8ebb51">sizeSet</link> (<link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link> x, <link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link> y)</para>
<para>设置图片大小 </para>
</listitem>
</itemizedlist>
</simplesect>
<simplesect>
<title>Public 属性 </title>
<itemizedlist>
<listitem><para><link linkend="_struct___b_i_t_m_a_p_i_n_f_o">_BITMAPINFO</link> <link linkend="_classbsp___b_m_p_1a64dcf31f5722327336d87794b873a335">BITMAPINFO</link></para>
<para>文件头 </para>
</listitem>
<listitem><para><link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link> <link linkend="_classbsp___b_m_p_1a8a1c31ee70ed4061ad8bea4254959b83">Size</link></para>
<para>文件大小 </para>
</listitem>
<listitem><para><link linkend="_varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca">u8</link> * <link linkend="_classbsp___b_m_p_1a2023aceaef140268a12bc61b81d410ca">dat</link></para>
<para>数据区 </para>
</listitem>
</itemizedlist>
</simplesect>
<section>
<title>详细描述</title>
<para>构建一个BMP类 </para>
<para>
在文件 <link linkend="_bsp___b_m_p_8h_source">bsp_BMP.h</link><link linkend="_bsp___b_m_p_8h_source_1l00097">97</link> 行定义.</para>
</section>
<section>
<title>构造及析构函数说明</title>
<anchor xml:id="_classbsp___b_m_p_1a27d05488822dc9548e0783d46808a1db"/><section>
<title>bsp_BMP()</title>
<indexterm><primary>bsp_BMP</primary><secondary>bsp_BMP</secondary></indexterm>
<indexterm><primary>bsp_BMP</primary><secondary>bsp_BMP</secondary></indexterm>
<para><computeroutput>bsp_BMP::bsp_BMP (<link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link> Width, <link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link> Height)</computeroutput></para><para>
<para>构造BMP数据头 </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>Width</entry><entry>
<para>图片宽度 </para>
</entry>
</row>
<row>
<entry>Height</entry><entry>
<para>图片高度 </para>
</entry>
</row>
</tbody>
</tgroup>
</table>
</para>
</formalpara>
</para>
<para>
在文件 <link linkend="_bsp___b_m_p_8cpp_source">bsp_BMP.cpp</link><link linkend="_bsp___b_m_p_8cpp_source_1l00097">97</link> 行定义.</para>
</section>
<anchor xml:id="_classbsp___b_m_p_1a604d7e5683da37be890672aa690c2ff2"/><section>
<title>~bsp_BMP()</title>
<indexterm><primary>~bsp_BMP</primary><secondary>bsp_BMP</secondary></indexterm>
<indexterm><primary>bsp_BMP</primary><secondary>~bsp_BMP</secondary></indexterm>
<para><computeroutput>bsp_BMP::~bsp_BMP (void )</computeroutput></para><para>
在文件 <link linkend="_bsp___b_m_p_8cpp_source">bsp_BMP.cpp</link><link linkend="_bsp___b_m_p_8cpp_source_1l00121">121</link> 行定义.</para>
</section>
</section>
<section>
<title>成员函数说明</title>
<anchor xml:id="_classbsp___b_m_p_1a17c0c014ef6ce7d09a5dd81c5d2c5d57"/><section>
<title>ColorsSet()</title>
<indexterm><primary>ColorsSet</primary><secondary>bsp_BMP</secondary></indexterm>
<indexterm><primary>bsp_BMP</primary><secondary>ColorsSet</secondary></indexterm>
<para><computeroutput>void bsp_BMP::ColorsSet (<link linkend="_varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca">u8</link> R, <link linkend="_varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca">u8</link> G, <link linkend="_varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca">u8</link> B, <link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link> i)</computeroutput></para><para>
<para>设置调色板 </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>R</entry><entry>
<para>红色 </para>
</entry>
</row>
<row>
<entry>G</entry><entry>
<para>绿色 </para>
</entry>
</row>
<row>
<entry>B</entry><entry>
<para>蓝色 </para>
</entry>
</row>
<row>
<entry>i</entry><entry>
<para>索引号 </para>
</entry>
</row>
</tbody>
</tgroup>
</table>
</para>
</formalpara>
</para>
<para>
在文件 <link linkend="_bsp___b_m_p_8cpp_source">bsp_BMP.cpp</link><link linkend="_bsp___b_m_p_8cpp_source_1l00068">68</link> 行定义.</para>
</section>
<anchor xml:id="_classbsp___b_m_p_1abe5d545dea1090a228843f140650f573"/><section>
<title>delData()</title>
<indexterm><primary>delData</primary><secondary>bsp_BMP</secondary></indexterm>
<indexterm><primary>bsp_BMP</primary><secondary>delData</secondary></indexterm>
<para><computeroutput>void bsp_BMP::delData (void )</computeroutput></para><para>
<para>释放数据空间 </para>
</para>
<para>
在文件 <link linkend="_bsp___b_m_p_8cpp_source">bsp_BMP.cpp</link><link linkend="_bsp___b_m_p_8cpp_source_1l00059">59</link> 行定义.</para>
</section>
<anchor xml:id="_classbsp___b_m_p_1ae0e2551a06b8ad966a86b2c8324da25c"/><section>
<title>giveData()</title>
<indexterm><primary>giveData</primary><secondary>bsp_BMP</secondary></indexterm>
<indexterm><primary>bsp_BMP</primary><secondary>giveData</secondary></indexterm>
<para><computeroutput><link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link> bsp_BMP::giveData (void )</computeroutput></para><para>
<para>给予数据空间 </para>
</para>
<para><formalpara><title>返回</title>
<para>返回给与的数据头 </para>
</formalpara>
</para>
<para>
在文件 <link linkend="_bsp___b_m_p_8cpp_source">bsp_BMP.cpp</link><link linkend="_bsp___b_m_p_8cpp_source_1l00052">52</link> 行定义.</para>
</section>
<anchor xml:id="_classbsp___b_m_p_1a4aaa5a2ea2f5b3c07c8e16009984766e"/><section>
<title>pels()</title>
<indexterm><primary>pels</primary><secondary>bsp_BMP</secondary></indexterm>
<indexterm><primary>bsp_BMP</primary><secondary>pels</secondary></indexterm>
<para><computeroutput>void bsp_BMP::pels (<link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link> x, <link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link> y)</computeroutput></para><para>
<para>设置像素 </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>x</entry><entry>
<para>x像素 </para>
</entry>
</row>
<row>
<entry>y</entry><entry>
<para>y像素 </para>
</entry>
</row>
</tbody>
</tgroup>
</table>
</para>
</formalpara>
</para>
<para>
在文件 <link linkend="_bsp___b_m_p_8cpp_source">bsp_BMP.cpp</link><link linkend="_bsp___b_m_p_8cpp_source_1l00045">45</link> 行定义.</para>
</section>
<anchor xml:id="_classbsp___b_m_p_1a535cd9bfe5e49ba97ff9c4a1dd8ebb51"/><section>
<title>sizeSet()</title>
<indexterm><primary>sizeSet</primary><secondary>bsp_BMP</secondary></indexterm>
<indexterm><primary>bsp_BMP</primary><secondary>sizeSet</secondary></indexterm>
<para><computeroutput>void bsp_BMP::sizeSet (<link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link> x, <link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link> y)</computeroutput></para><para>
<para>设置图片大小 </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>Width</entry><entry>
<para>图片宽度 </para>
</entry>
</row>
<row>
<entry>Height</entry><entry>
<para>图片高度 </para>
</entry>
</row>
</tbody>
</tgroup>
</table>
</para>
</formalpara>
</para>
<para>
在文件 <link linkend="_bsp___b_m_p_8cpp_source">bsp_BMP.cpp</link><link linkend="_bsp___b_m_p_8cpp_source_1l00078">78</link> 行定义.</para>
</section>
</section>
<section>
<title>类成员变量说明</title>
<anchor xml:id="_classbsp___b_m_p_1a64dcf31f5722327336d87794b873a335"/><section>
<title>BITMAPINFO</title>
<indexterm><primary>BITMAPINFO</primary><secondary>bsp_BMP</secondary></indexterm>
<indexterm><primary>bsp_BMP</primary><secondary>BITMAPINFO</secondary></indexterm>
<para><computeroutput><link linkend="_struct___b_i_t_m_a_p_i_n_f_o">_BITMAPINFO</link> bsp_BMP::BITMAPINFO</computeroutput></para><para>
<para>文件头 </para>
</para>
<para>
在文件 <link linkend="_bsp___b_m_p_8h_source">bsp_BMP.h</link><link linkend="_bsp___b_m_p_8h_source_1l00108">108</link> 行定义.</para>
</section>
<anchor xml:id="_classbsp___b_m_p_1a2023aceaef140268a12bc61b81d410ca"/><section>
<title>dat</title>
<indexterm><primary>dat</primary><secondary>bsp_BMP</secondary></indexterm>
<indexterm><primary>bsp_BMP</primary><secondary>dat</secondary></indexterm>
<para><computeroutput><link linkend="_varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca">u8</link>* bsp_BMP::dat</computeroutput></para><para>
<para>数据区 </para>
</para>
<para>
在文件 <link linkend="_bsp___b_m_p_8h_source">bsp_BMP.h</link><link linkend="_bsp___b_m_p_8h_source_1l00110">110</link> 行定义.</para>
</section>
<anchor xml:id="_classbsp___b_m_p_1a8a1c31ee70ed4061ad8bea4254959b83"/><section>
<title>Size</title>
<indexterm><primary>Size</primary><secondary>bsp_BMP</secondary></indexterm>
<indexterm><primary>bsp_BMP</primary><secondary>Size</secondary></indexterm>
<para><computeroutput><link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link> bsp_BMP::Size</computeroutput></para><para>
<para>文件大小 </para>
</para>
<para>
在文件 <link linkend="_bsp___b_m_p_8h_source">bsp_BMP.h</link><link linkend="_bsp___b_m_p_8h_source_1l00109">109</link> 行定义.</para>
</section>
<para>
该类的文档由以下文件生成:</para>
D:/gitt/MicrochipFor32/bsp_Device/<link linkend="_bsp___b_m_p_8h">bsp_BMP.h</link>D:/gitt/MicrochipFor32/bsp_Device/<link linkend="_bsp___b_m_p_8cpp">bsp_BMP.cpp</link></section>
</section>

View File

@@ -0,0 +1 @@
803dda831830d00e8c7fcd4d37f8b7f3

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

View File

@@ -0,0 +1,106 @@
<?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="_classbsp___differential" xml:lang="zh">
<title>bsp_Differential类 参考</title>
<indexterm><primary>bsp_Differential</primary></indexterm>
<para>
<para>一个微分对象 </para>
</para>
<para>
<computeroutput>#include &lt;bsp_Calculus.h&gt;</computeroutput>
</para>
<simplesect>
<title>Public 成员函数 </title>
<itemizedlist>
<listitem><para><link linkend="_classbsp___differential_1a16a19c803e2f1a3bbba98a2ef529206b">bsp_Differential</link> (float <link linkend="_classbsp___differential_1ab25588868059974b8356e975c6e96992">dt</link>)</para>
</listitem>
<listitem><para>float <link linkend="_classbsp___differential_1a46536b15be29d856b09dd7d261a12ab1">Differential</link> (float var)</para>
<para>对数据微分 </para>
</listitem>
</itemizedlist>
</simplesect>
<simplesect>
<title>Public 属性 </title>
<itemizedlist>
<listitem><para>float <link linkend="_classbsp___differential_1ab25588868059974b8356e975c6e96992">dt</link></para>
<para>时间参数 </para>
</listitem>
</itemizedlist>
</simplesect>
<section>
<title>详细描述</title>
<para>一个微分对象 </para>
<para>
在文件 <link linkend="_bsp___calculus_8h_source">bsp_Calculus.h</link><link linkend="_bsp___calculus_8h_source_1l00043">43</link> 行定义.</para>
</section>
<section>
<title>构造及析构函数说明</title>
<anchor xml:id="_classbsp___differential_1a16a19c803e2f1a3bbba98a2ef529206b"/><section>
<title>bsp_Differential()</title>
<indexterm><primary>bsp_Differential</primary><secondary>bsp_Differential</secondary></indexterm>
<indexterm><primary>bsp_Differential</primary><secondary>bsp_Differential</secondary></indexterm>
<para><computeroutput>bsp_Differential::bsp_Differential (float dt)<computeroutput>[inline]</computeroutput></computeroutput></para><para>
在文件 <link linkend="_bsp___calculus_8h_source">bsp_Calculus.h</link><link linkend="_bsp___calculus_8h_source_1l00045">45</link> 行定义.</para>
</section>
</section>
<section>
<title>成员函数说明</title>
<anchor xml:id="_classbsp___differential_1a46536b15be29d856b09dd7d261a12ab1"/><section>
<title>Differential()</title>
<indexterm><primary>Differential</primary><secondary>bsp_Differential</secondary></indexterm>
<indexterm><primary>bsp_Differential</primary><secondary>Differential</secondary></indexterm>
<para><computeroutput>float bsp_Differential::Differential (float var)</computeroutput></para><para>
<para>对数据微分 </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>var</entry><entry>
<para>此处填入浮点数据 </para>
</entry>
</row>
</tbody>
</tgroup>
</table>
</para>
</formalpara>
<formalpara><title>返回</title>
<para>此时的微分值 </para>
</formalpara>
</para>
<para>
在文件 <link linkend="_bsp___calculus_8cpp_source">bsp_Calculus.cpp</link><link linkend="_bsp___calculus_8cpp_source_1l00046">46</link> 行定义.</para>
</section>
</section>
<section>
<title>类成员变量说明</title>
<anchor xml:id="_classbsp___differential_1ab25588868059974b8356e975c6e96992"/><section>
<title>dt</title>
<indexterm><primary>dt</primary><secondary>bsp_Differential</secondary></indexterm>
<indexterm><primary>bsp_Differential</primary><secondary>dt</secondary></indexterm>
<para><computeroutput>float bsp_Differential::dt</computeroutput></para><para>
<para>时间参数 </para>
</para>
<para>
在文件 <link linkend="_bsp___calculus_8h_source">bsp_Calculus.h</link><link linkend="_bsp___calculus_8h_source_1l00050">50</link> 行定义.</para>
</section>
<para>
该类的文档由以下文件生成:</para>
D:/gitt/MicrochipFor32/bsp_Device/<link linkend="_bsp___calculus_8h">bsp_Calculus.h</link>D:/gitt/MicrochipFor32/bsp_Device/<link linkend="_bsp___calculus_8cpp">bsp_Calculus.cpp</link></section>
</section>

View File

@@ -99,7 +99,7 @@
<para>时序中的延时 在此处短暂延时 </para>
</para>
<para><para><link linkend="_todo_1_todo000003">待办事项</link>
<para><para><link linkend="_todo_1_todo000004">待办事项</link>
<para>需要为其实现才可使用软件IIC </para>
</para></para>
<para>
@@ -312,7 +312,7 @@
<para>当var为IIC_READ时返回管脚状态 </para>
</formalpara>
<para><link linkend="_todo_1_todo000001">待办事项</link>
<para><link linkend="_todo_1_todo000002">待办事项</link>
<para>需要为其实现才可使用软件IIC </para>
</para></para>
<para>
@@ -360,7 +360,7 @@
<para>当var为IIC_READ时返回管脚状态 </para>
</formalpara>
<para><link linkend="_todo_1_todo000002">待办事项</link>
<para><link linkend="_todo_1_todo000003">待办事项</link>
<para>需要为其实现才可使用软件IIC </para>
</para></para>
<para>

View File

@@ -218,7 +218,7 @@ bsp_IIC_STM32 的协作图:<para>
<para>
实现了 <link linkend="_classbsp___i_i_c_1adf1ba1196ef163ab1958747744dd8a14">bsp_IIC</link>.</para>
<para>
在文件 <link linkend="_bsp___i_i_c___s_t_m32_8cpp_source">bsp_IIC_STM32.cpp</link><link linkend="_bsp___i_i_c___s_t_m32_8cpp_source_1l00089">89</link> 行定义.</para>
在文件 <link linkend="_bsp___i_i_c___s_t_m32_8cpp_source">bsp_IIC_STM32.cpp</link><link linkend="_bsp___i_i_c___s_t_m32_8cpp_source_1l00088">88</link> 行定义.</para>
</section>
</section>
<section>

View File

@@ -0,0 +1,339 @@
<?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="_classbsp___integral" xml:lang="zh">
<title>bsp_Integral类 参考</title>
<indexterm><primary>bsp_Integral</primary></indexterm>
<para>
<para>一个积分对象 </para>
</para>
<para>
<computeroutput>#include &lt;bsp_Calculus.h&gt;</computeroutput>
</para>
<simplesect>
<title>Public 成员函数 </title>
<itemizedlist>
<listitem><para><link linkend="_classbsp___integral_1af274273b399f4da855646921f3ae31ba">bsp_Integral</link> (float <link linkend="_classbsp___integral_1a4494cf9fc2873d457ed3bf8618b68045">dt</link>)</para>
</listitem>
<listitem><para><link linkend="_classbsp___integral_1a3f190eb273b4d6492fb39e2573ec37a1">~bsp_Integral</link> (void)</para>
</listitem>
<listitem><para>float <link linkend="_classbsp___integral_1ade46f89bfdc6dd778c045a51c76c1839">Integral</link> (float var)</para>
<para>对数据积分 </para>
</listitem>
<listitem><para>void <link linkend="_classbsp___integral_1aaf7474301ed76ca9ce2b1884ae870019">Integral_set</link> (float <link linkend="_classbsp___integral_1a910f1f3faa2b4963e00718472b8389bc">results</link>)</para>
<para>重设当前积分值 </para>
</listitem>
<listitem><para>float <link linkend="_classbsp___integral_1a80693e18b9b9509bdec0ebfd72f84072">Integral_list</link> (float var)</para>
<para>进行带有缓冲区的积分 </para>
</listitem>
<listitem><para><link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link> <link linkend="_classbsp___integral_1a86d9e02d1146744fe80ebab69070abb4">Integral_makelist</link> (<link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link> len)</para>
<para>赋予历史缓存长度 </para>
</listitem>
<listitem><para>void <link linkend="_classbsp___integral_1a47307ddf418d2686245b118dcf61a199">Integral_dellist</link> (void)</para>
<para>删除并释放历史缓冲区 </para>
</listitem>
<listitem><para>void <link linkend="_classbsp___integral_1aae2b6143ca39861a83b77befc131bf5e">Integral_clslist</link> (void)</para>
<para>清空历史缓存区 </para>
</listitem>
</itemizedlist>
</simplesect>
<simplesect>
<title>Public 属性 </title>
<itemizedlist>
<listitem><para>float * <link linkend="_classbsp___integral_1a656d90c5a713abf0665f1dcbf1a5101a">result_list</link></para>
<para>数据历史 </para>
</listitem>
<listitem><para><link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link> <link linkend="_classbsp___integral_1a662c735b9432a46e48a642ebb9c0e8fa">result_len</link></para>
<para>历史缓冲区长度 </para>
</listitem>
<listitem><para>float <link linkend="_classbsp___integral_1a910f1f3faa2b4963e00718472b8389bc">results</link></para>
<para>积分缓存 </para>
</listitem>
<listitem><para>float <link linkend="_classbsp___integral_1a4494cf9fc2873d457ed3bf8618b68045">dt</link></para>
<para>时间参数 </para>
</listitem>
</itemizedlist>
</simplesect>
<section>
<title>详细描述</title>
<para>一个积分对象 </para>
<para><note><title>注解</title>
<para>不应当混用Integral和Integral_list </para>
<para>选定一种方式(带缓冲区或者不带)后,就不应该更改使用方式 </para>
<para>虽然带缓冲区方式对算法时间影响不大,但是为了避免浪费空间,不建议使用过大的缓冲区 </para>
</note>
</para>
<para>
在文件 <link linkend="_bsp___calculus_8h_source">bsp_Calculus.h</link><link linkend="_bsp___calculus_8h_source_1l00059">59</link> 行定义.</para>
</section>
<section>
<title>构造及析构函数说明</title>
<anchor xml:id="_classbsp___integral_1af274273b399f4da855646921f3ae31ba"/><section>
<title>bsp_Integral()</title>
<indexterm><primary>bsp_Integral</primary><secondary>bsp_Integral</secondary></indexterm>
<indexterm><primary>bsp_Integral</primary><secondary>bsp_Integral</secondary></indexterm>
<para><computeroutput>bsp_Integral::bsp_Integral (float dt)<computeroutput>[inline]</computeroutput></computeroutput></para><para>
在文件 <link linkend="_bsp___calculus_8h_source">bsp_Calculus.h</link><link linkend="_bsp___calculus_8h_source_1l00061">61</link> 行定义.</para>
</section>
<anchor xml:id="_classbsp___integral_1a3f190eb273b4d6492fb39e2573ec37a1"/><section>
<title>~bsp_Integral()</title>
<indexterm><primary>~bsp_Integral</primary><secondary>bsp_Integral</secondary></indexterm>
<indexterm><primary>bsp_Integral</primary><secondary>~bsp_Integral</secondary></indexterm>
<para><computeroutput>bsp_Integral::~bsp_Integral (void )<computeroutput>[inline]</computeroutput></computeroutput></para><para>
在文件 <link linkend="_bsp___calculus_8h_source">bsp_Calculus.h</link><link linkend="_bsp___calculus_8h_source_1l00065">65</link> 行定义.</para>
</section>
</section>
<section>
<title>成员函数说明</title>
<anchor xml:id="_classbsp___integral_1ade46f89bfdc6dd778c045a51c76c1839"/><section>
<title>Integral()</title>
<indexterm><primary>Integral</primary><secondary>bsp_Integral</secondary></indexterm>
<indexterm><primary>bsp_Integral</primary><secondary>Integral</secondary></indexterm>
<para><computeroutput>float bsp_Integral::Integral (float var)</computeroutput></para><para>
<para>对数据积分 </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>var</entry><entry>
<para>此处填入浮点数据 </para>
</entry>
</row>
</tbody>
</tgroup>
</table>
</para>
</formalpara>
<formalpara><title>返回</title>
<para>从开始到现在的总积分值 </para>
</formalpara>
</para>
<para>
在文件 <link linkend="_bsp___calculus_8cpp_source">bsp_Calculus.cpp</link><link linkend="_bsp___calculus_8cpp_source_1l00059">59</link> 行定义.</para>
</section>
<anchor xml:id="_classbsp___integral_1aae2b6143ca39861a83b77befc131bf5e"/><section>
<title>Integral_clslist()</title>
<indexterm><primary>Integral_clslist</primary><secondary>bsp_Integral</secondary></indexterm>
<indexterm><primary>bsp_Integral</primary><secondary>Integral_clslist</secondary></indexterm>
<para><computeroutput>void bsp_Integral::Integral_clslist (void )</computeroutput></para><para>
<para>清空历史缓存区 </para>
</para>
<para>
在文件 <link linkend="_bsp___calculus_8cpp_source">bsp_Calculus.cpp</link><link linkend="_bsp___calculus_8cpp_source_1l00113">113</link> 行定义.</para>
这是这个函数的调用关系图:<para>
<informalfigure>
<mediaobject>
<imageobject>
<imagedata width="50%" align="center" valign="middle" scalefit="0" fileref="classbsp___integral_aae2b6143ca39861a83b77befc131bf5e_icgraph.png"></imagedata>
</imageobject>
</mediaobject>
</informalfigure>
</para>
</section>
<anchor xml:id="_classbsp___integral_1a47307ddf418d2686245b118dcf61a199"/><section>
<title>Integral_dellist()</title>
<indexterm><primary>Integral_dellist</primary><secondary>bsp_Integral</secondary></indexterm>
<indexterm><primary>bsp_Integral</primary><secondary>Integral_dellist</secondary></indexterm>
<para><computeroutput>void bsp_Integral::Integral_dellist (void )</computeroutput></para><para>
<para>删除并释放历史缓冲区 </para>
</para>
<para>
在文件 <link linkend="_bsp___calculus_8cpp_source">bsp_Calculus.cpp</link><link linkend="_bsp___calculus_8cpp_source_1l00105">105</link> 行定义.</para>
</section>
<anchor xml:id="_classbsp___integral_1a80693e18b9b9509bdec0ebfd72f84072"/><section>
<title>Integral_list()</title>
<indexterm><primary>Integral_list</primary><secondary>bsp_Integral</secondary></indexterm>
<indexterm><primary>bsp_Integral</primary><secondary>Integral_list</secondary></indexterm>
<para><computeroutput>float bsp_Integral::Integral_list (float var)</computeroutput></para><para>
<para>进行带有缓冲区的积分 </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>var</entry><entry>
<para>需要积分的数值 </para>
</entry>
</row>
</tbody>
</tgroup>
</table>
</para>
</formalpara>
<formalpara><title>返回</title>
<para>返回积分值 </para>
</formalpara>
</para>
<para>
在文件 <link linkend="_bsp___calculus_8cpp_source">bsp_Calculus.cpp</link><link linkend="_bsp___calculus_8cpp_source_1l00086">86</link> 行定义.</para>
</section>
<anchor xml:id="_classbsp___integral_1a86d9e02d1146744fe80ebab69070abb4"/><section>
<title>Integral_makelist()</title>
<indexterm><primary>Integral_makelist</primary><secondary>bsp_Integral</secondary></indexterm>
<indexterm><primary>bsp_Integral</primary><secondary>Integral_makelist</secondary></indexterm>
<para><computeroutput><link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link> bsp_Integral::Integral_makelist (<link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link> len)</computeroutput></para><para>
<para>赋予历史缓存长度 </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>var</entry><entry>
<para>分配的缓存长度 </para>
</entry>
</row>
</tbody>
</tgroup>
</table>
</para>
</formalpara>
<formalpara><title>返回</title>
<para>返回分配的内存位置,0为分配失败 </para>
</formalpara>
</para>
<para>
在文件 <link linkend="_bsp___calculus_8cpp_source">bsp_Calculus.cpp</link><link linkend="_bsp___calculus_8cpp_source_1l00075">75</link> 行定义.</para>
函数调用图:<para>
<informalfigure>
<mediaobject>
<imageobject>
<imagedata width="50%" align="center" valign="middle" scalefit="0" fileref="classbsp___integral_a86d9e02d1146744fe80ebab69070abb4_cgraph.png"></imagedata>
</imageobject>
</mediaobject>
</informalfigure>
</para>
</section>
<anchor xml:id="_classbsp___integral_1aaf7474301ed76ca9ce2b1884ae870019"/><section>
<title>Integral_set()</title>
<indexterm><primary>Integral_set</primary><secondary>bsp_Integral</secondary></indexterm>
<indexterm><primary>bsp_Integral</primary><secondary>Integral_set</secondary></indexterm>
<para><computeroutput>void bsp_Integral::Integral_set (float results)</computeroutput></para><para>
<para>重设当前积分值 </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>var</entry><entry>
<para>要设置的积分值 </para>
</entry>
</row>
</tbody>
</tgroup>
</table>
</para>
</formalpara>
</para>
<para>
在文件 <link linkend="_bsp___calculus_8cpp_source">bsp_Calculus.cpp</link><link linkend="_bsp___calculus_8cpp_source_1l00067">67</link> 行定义.</para>
</section>
</section>
<section>
<title>类成员变量说明</title>
<anchor xml:id="_classbsp___integral_1a4494cf9fc2873d457ed3bf8618b68045"/><section>
<title>dt</title>
<indexterm><primary>dt</primary><secondary>bsp_Integral</secondary></indexterm>
<indexterm><primary>bsp_Integral</primary><secondary>dt</secondary></indexterm>
<para><computeroutput>float bsp_Integral::dt</computeroutput></para><para>
<para>时间参数 </para>
</para>
<para>
在文件 <link linkend="_bsp___calculus_8h_source">bsp_Calculus.h</link><link linkend="_bsp___calculus_8h_source_1l00080">80</link> 行定义.</para>
</section>
<anchor xml:id="_classbsp___integral_1a662c735b9432a46e48a642ebb9c0e8fa"/><section>
<title>result_len</title>
<indexterm><primary>result_len</primary><secondary>bsp_Integral</secondary></indexterm>
<indexterm><primary>bsp_Integral</primary><secondary>result_len</secondary></indexterm>
<para><computeroutput><link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link> bsp_Integral::result_len</computeroutput></para><para>
<para>历史缓冲区长度 </para>
</para>
<para>
在文件 <link linkend="_bsp___calculus_8h_source">bsp_Calculus.h</link><link linkend="_bsp___calculus_8h_source_1l00078">78</link> 行定义.</para>
</section>
<anchor xml:id="_classbsp___integral_1a656d90c5a713abf0665f1dcbf1a5101a"/><section>
<title>result_list</title>
<indexterm><primary>result_list</primary><secondary>bsp_Integral</secondary></indexterm>
<indexterm><primary>bsp_Integral</primary><secondary>result_list</secondary></indexterm>
<para><computeroutput>float* bsp_Integral::result_list</computeroutput></para><para>
<para>数据历史 </para>
</para>
<para>
在文件 <link linkend="_bsp___calculus_8h_source">bsp_Calculus.h</link><link linkend="_bsp___calculus_8h_source_1l00077">77</link> 行定义.</para>
</section>
<anchor xml:id="_classbsp___integral_1a910f1f3faa2b4963e00718472b8389bc"/><section>
<title>results</title>
<indexterm><primary>results</primary><secondary>bsp_Integral</secondary></indexterm>
<indexterm><primary>bsp_Integral</primary><secondary>results</secondary></indexterm>
<para><computeroutput>float bsp_Integral::results</computeroutput></para><para>
<para>积分缓存 </para>
</para>
<para>
在文件 <link linkend="_bsp___calculus_8h_source">bsp_Calculus.h</link><link linkend="_bsp___calculus_8h_source_1l00079">79</link> 行定义.</para>
</section>
<para>
该类的文档由以下文件生成:</para>
D:/gitt/MicrochipFor32/bsp_Device/<link linkend="_bsp___calculus_8h">bsp_Calculus.h</link>D:/gitt/MicrochipFor32/bsp_Device/<link linkend="_bsp___calculus_8cpp">bsp_Calculus.cpp</link></section>
</section>

View File

@@ -0,0 +1 @@
bc431be81fe6f6dcd10d023829c673df

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@@ -0,0 +1 @@
4227ded100621b26c18e1d1b0df5d390

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@@ -12,6 +12,22 @@
<listitem><para>文件 <link linkend="_bsp___a_t24_c00_8h">bsp_AT24C00.h</link></para>
<para>本类实现AT24C00的通讯 </para>
</listitem>
<listitem><para>文件 <link linkend="_bsp___b_m_p_8cpp">bsp_BMP.cpp</link></para>
<para>用来构造BMP图片 </para>
</listitem>
<listitem><para>文件 <link linkend="_bsp___b_m_p_8h">bsp_BMP.h</link></para>
<para>用来构造BMP图片 </para>
</listitem>
<listitem><para>文件 <link linkend="_bsp___calculus_8cpp">bsp_Calculus.cpp</link></para>
<para>离散微积分 </para>
</listitem>
<listitem><para>文件 <link linkend="_bsp___calculus_8h">bsp_Calculus.h</link></para>
<para>离散微积分 </para>
</listitem>
<listitem><para>文件 <link linkend="_bsp___c_r_c_8cpp">bsp_CRC.cpp</link></para>
@@ -28,6 +44,14 @@
<listitem><para>文件 <link linkend="_bsp___digit_8h">bsp_Digit.h</link></para>
<para>数码管显示类 </para>
</listitem>
<listitem><para>文件 <link linkend="_bsp__flash_8c">bsp_flash.c</link></para>
<para>写STM32的Flash库 </para>
</listitem>
<listitem><para>文件 <link linkend="_bsp__flash_8h">bsp_flash.h</link></para>
<para>写STM32的Flash库 </para>
</listitem>
<listitem><para>文件 <link linkend="_bsp___i_i_c_8cpp">bsp_IIC.cpp</link></para>
@@ -90,8 +114,12 @@
<para>操作SD卡的库 </para>
</listitem>
<listitem><para>文件 <link linkend="_bsp___s_d_8h">bsp_SD.h</link></para>
<para>操作SD卡的库 </para>
</listitem>
<listitem><para>文件 <link linkend="_varint_8h">varint.h</link></para>
<para>全局共用的标准类型表 </para>
</listitem>
</itemizedlist>
</simplesect>

View File

@@ -13,12 +13,19 @@
</chapter>
<chapter>
<title>类说明</title>
<xi:include href="struct___b_i_t_m_a_p_f_i_l_e_h_e_a_d_e_r.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
<xi:include href="struct___b_i_t_m_a_p_i_n_f_o.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
<xi:include href="struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
<xi:include href="struct__l_queue.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
<xi:include href="struct__l_stack.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
<xi:include href="struct___r_g_b_q_u_a_d.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
<xi:include href="classbsp___b_m_p.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
<xi:include href="classbsp___differential.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
<xi:include href="classbsp___digit.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
<xi:include href="classbsp___i_i_c.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
<xi:include href="classbsp___i_i_c___s_t_m32.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
<xi:include href="classbsp___increment___p_i_d.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
<xi:include href="classbsp___integral.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
<xi:include href="classbsp___m_a_x6675.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
<xi:include href="classbsp___mod_bus___rx.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
<xi:include href="classbsp___mod_bus___s_t_m32.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
@@ -34,6 +41,7 @@
<xi:include href="class_s_t_l__l_stack.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
<xi:include href="class_s_t_l__r_queue.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
<xi:include href="class_s_t_l__r_stack.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
<xi:include href="structstruct__bsp___flash___pack.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
</chapter>
<chapter>
<title>文件说明</title>
@@ -41,6 +49,14 @@
<xi:include href="bsp___a_t24_c00_8cpp_source.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
<xi:include href="bsp___a_t24_c00_8h.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
<xi:include href="bsp___a_t24_c00_8h_source.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
<xi:include href="bsp___b_m_p_8cpp.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
<xi:include href="bsp___b_m_p_8cpp_source.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
<xi:include href="bsp___b_m_p_8h.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
<xi:include href="bsp___b_m_p_8h_source.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
<xi:include href="bsp___calculus_8cpp.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
<xi:include href="bsp___calculus_8cpp_source.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
<xi:include href="bsp___calculus_8h.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
<xi:include href="bsp___calculus_8h_source.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
<xi:include href="bsp___c_r_c_8cpp.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
<xi:include href="bsp___c_r_c_8cpp_source.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
<xi:include href="bsp___c_r_c_8h.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
@@ -49,6 +65,10 @@
<xi:include href="bsp___digit_8cpp_source.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
<xi:include href="bsp___digit_8h.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
<xi:include href="bsp___digit_8h_source.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
<xi:include href="bsp__flash_8c.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
<xi:include href="bsp__flash_8c_source.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
<xi:include href="bsp__flash_8h.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
<xi:include href="bsp__flash_8h_source.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
<xi:include href="bsp___i_i_c_8cpp.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
<xi:include href="bsp___i_i_c_8cpp_source.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
<xi:include href="bsp___i_i_c_8h.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>

View File

@@ -1 +1 @@
5366a30f5bc78cfa1964e306ae9d9890
fb370354ae0c6dd3a952dd81266bbd0e

View File

@@ -1 +1 @@
4222ea514debe490f4cbb2f128d0e5b8
d0f145cf7ecf056a3d82c5d4954ea860

View File

@@ -0,0 +1,75 @@
<?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="_struct___b_i_t_m_a_p_f_i_l_e_h_e_a_d_e_r" xml:lang="zh">
<title>_BITMAPFILEHEADER结构体 参考</title>
<indexterm><primary>_BITMAPFILEHEADER</primary></indexterm>
<para>
<para>位图文件头 </para>
</para>
<para>
<computeroutput>#include &lt;bsp_BMP.h&gt;</computeroutput>
</para>
<simplesect>
<title>Public 属性 </title>
<itemizedlist>
<listitem><para><link linkend="_varint_8h_1ace9d960e74685e2cd84b36132dbbf8aa">u16</link> <link linkend="_struct___b_i_t_m_a_p_f_i_l_e_h_e_a_d_e_r_1a6810e258839bc4345e2036af20e607db">bfType</link></para>
</listitem>
<listitem><para><link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link> <link linkend="_struct___b_i_t_m_a_p_f_i_l_e_h_e_a_d_e_r_1a1bd9726a58f87d278efa58d6d7c70a81">bfSize</link></para>
</listitem>
<listitem><para><link linkend="_varint_8h_1ace9d960e74685e2cd84b36132dbbf8aa">u16</link> <link linkend="_struct___b_i_t_m_a_p_f_i_l_e_h_e_a_d_e_r_1a71c78132cda5e8b032fb4f549ec9a14a">bfReserved1</link></para>
</listitem>
<listitem><para><link linkend="_varint_8h_1ace9d960e74685e2cd84b36132dbbf8aa">u16</link> <link linkend="_struct___b_i_t_m_a_p_f_i_l_e_h_e_a_d_e_r_1a3f69e4551c8fee241e5a4cd224c64f50">bfReserved2</link></para>
</listitem>
<listitem><para><link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link> <link linkend="_struct___b_i_t_m_a_p_f_i_l_e_h_e_a_d_e_r_1af53728df68db96b9decc5100bc1bf7e0">bfOffBits</link></para>
</listitem>
</itemizedlist>
</simplesect>
<section>
<title>详细描述</title>
<para>位图文件头 </para>
<para>
在文件 <link linkend="_bsp___b_m_p_8h_source">bsp_BMP.h</link><link linkend="_bsp___b_m_p_8h_source_1l00044">44</link> 行定义.</para>
</section>
<section>
<title>类成员变量说明</title>
<anchor xml:id="_struct___b_i_t_m_a_p_f_i_l_e_h_e_a_d_e_r_1af53728df68db96b9decc5100bc1bf7e0"/><section>
<title>bfOffBits</title>
<indexterm><primary>bfOffBits</primary><secondary>_BITMAPFILEHEADER</secondary></indexterm>
<indexterm><primary>_BITMAPFILEHEADER</primary><secondary>bfOffBits</secondary></indexterm>
<para><computeroutput><link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link> _BITMAPFILEHEADER::bfOffBits</computeroutput></para><para>
在文件 <link linkend="_bsp___b_m_p_8h_source">bsp_BMP.h</link><link linkend="_bsp___b_m_p_8h_source_1l00050">50</link> 行定义.</para>
</section>
<anchor xml:id="_struct___b_i_t_m_a_p_f_i_l_e_h_e_a_d_e_r_1a71c78132cda5e8b032fb4f549ec9a14a"/><section>
<title>bfReserved1</title>
<indexterm><primary>bfReserved1</primary><secondary>_BITMAPFILEHEADER</secondary></indexterm>
<indexterm><primary>_BITMAPFILEHEADER</primary><secondary>bfReserved1</secondary></indexterm>
<para><computeroutput><link linkend="_varint_8h_1ace9d960e74685e2cd84b36132dbbf8aa">u16</link> _BITMAPFILEHEADER::bfReserved1</computeroutput></para><para>
在文件 <link linkend="_bsp___b_m_p_8h_source">bsp_BMP.h</link><link linkend="_bsp___b_m_p_8h_source_1l00048">48</link> 行定义.</para>
</section>
<anchor xml:id="_struct___b_i_t_m_a_p_f_i_l_e_h_e_a_d_e_r_1a3f69e4551c8fee241e5a4cd224c64f50"/><section>
<title>bfReserved2</title>
<indexterm><primary>bfReserved2</primary><secondary>_BITMAPFILEHEADER</secondary></indexterm>
<indexterm><primary>_BITMAPFILEHEADER</primary><secondary>bfReserved2</secondary></indexterm>
<para><computeroutput><link linkend="_varint_8h_1ace9d960e74685e2cd84b36132dbbf8aa">u16</link> _BITMAPFILEHEADER::bfReserved2</computeroutput></para><para>
在文件 <link linkend="_bsp___b_m_p_8h_source">bsp_BMP.h</link><link linkend="_bsp___b_m_p_8h_source_1l00049">49</link> 行定义.</para>
</section>
<anchor xml:id="_struct___b_i_t_m_a_p_f_i_l_e_h_e_a_d_e_r_1a1bd9726a58f87d278efa58d6d7c70a81"/><section>
<title>bfSize</title>
<indexterm><primary>bfSize</primary><secondary>_BITMAPFILEHEADER</secondary></indexterm>
<indexterm><primary>_BITMAPFILEHEADER</primary><secondary>bfSize</secondary></indexterm>
<para><computeroutput><link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link> _BITMAPFILEHEADER::bfSize</computeroutput></para><para>
在文件 <link linkend="_bsp___b_m_p_8h_source">bsp_BMP.h</link><link linkend="_bsp___b_m_p_8h_source_1l00047">47</link> 行定义.</para>
</section>
<anchor xml:id="_struct___b_i_t_m_a_p_f_i_l_e_h_e_a_d_e_r_1a6810e258839bc4345e2036af20e607db"/><section>
<title>bfType</title>
<indexterm><primary>bfType</primary><secondary>_BITMAPFILEHEADER</secondary></indexterm>
<indexterm><primary>_BITMAPFILEHEADER</primary><secondary>bfType</secondary></indexterm>
<para><computeroutput><link linkend="_varint_8h_1ace9d960e74685e2cd84b36132dbbf8aa">u16</link> _BITMAPFILEHEADER::bfType</computeroutput></para><para>
在文件 <link linkend="_bsp___b_m_p_8h_source">bsp_BMP.h</link><link linkend="_bsp___b_m_p_8h_source_1l00046">46</link> 行定义.</para>
</section>
<para>
该结构体的文档由以下文件生成:</para>
D:/gitt/MicrochipFor32/bsp_Device/<link linkend="_bsp___b_m_p_8h">bsp_BMP.h</link></section>
</section>

View File

@@ -0,0 +1,66 @@
<?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="_struct___b_i_t_m_a_p_i_n_f_o" xml:lang="zh">
<title>_BITMAPINFO结构体 参考</title>
<indexterm><primary>_BITMAPINFO</primary></indexterm>
<para>
<para>BMP文件头 </para>
</para>
<para>
<computeroutput>#include &lt;bsp_BMP.h&gt;</computeroutput>
</para>
_BITMAPINFO 的协作图:<para>
<informalfigure>
<mediaobject>
<imageobject>
<imagedata width="50%" align="center" valign="middle" scalefit="0" fileref="struct___b_i_t_m_a_p_i_n_f_o__coll__graph.png"></imagedata>
</imageobject>
</mediaobject>
</informalfigure>
</para>
<simplesect>
<title>Public 属性 </title>
<itemizedlist>
<listitem><para><link linkend="_struct___b_i_t_m_a_p_f_i_l_e_h_e_a_d_e_r">_BITMAPFILEHEADER</link> <link linkend="_struct___b_i_t_m_a_p_i_n_f_o_1a3356c2aeed730cf31d05fd09244ecbce">bmfHeader</link></para>
</listitem>
<listitem><para><link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r">_BITMAPINFOHEADER</link> <link linkend="_struct___b_i_t_m_a_p_i_n_f_o_1a7d9eafe9a3374cd06dc22fda1af98b6d">bmiHeader</link></para>
</listitem>
<listitem><para><link linkend="_struct___r_g_b_q_u_a_d">_RGBQUAD</link> <link linkend="_struct___b_i_t_m_a_p_i_n_f_o_1ab5fe5744a8fe46833743bc6b5cf72a49">bmiColors</link> [256]</para>
</listitem>
</itemizedlist>
</simplesect>
<section>
<title>详细描述</title>
<para>BMP文件头 </para>
<para>
在文件 <link linkend="_bsp___b_m_p_8h_source">bsp_BMP.h</link><link linkend="_bsp___b_m_p_8h_source_1l00084">84</link> 行定义.</para>
</section>
<section>
<title>类成员变量说明</title>
<anchor xml:id="_struct___b_i_t_m_a_p_i_n_f_o_1a3356c2aeed730cf31d05fd09244ecbce"/><section>
<title>bmfHeader</title>
<indexterm><primary>bmfHeader</primary><secondary>_BITMAPINFO</secondary></indexterm>
<indexterm><primary>_BITMAPINFO</primary><secondary>bmfHeader</secondary></indexterm>
<para><computeroutput><link linkend="_struct___b_i_t_m_a_p_f_i_l_e_h_e_a_d_e_r">_BITMAPFILEHEADER</link> _BITMAPINFO::bmfHeader</computeroutput></para><para>
在文件 <link linkend="_bsp___b_m_p_8h_source">bsp_BMP.h</link><link linkend="_bsp___b_m_p_8h_source_1l00085">85</link> 行定义.</para>
</section>
<anchor xml:id="_struct___b_i_t_m_a_p_i_n_f_o_1ab5fe5744a8fe46833743bc6b5cf72a49"/><section>
<title>bmiColors</title>
<indexterm><primary>bmiColors</primary><secondary>_BITMAPINFO</secondary></indexterm>
<indexterm><primary>_BITMAPINFO</primary><secondary>bmiColors</secondary></indexterm>
<para><computeroutput><link linkend="_struct___r_g_b_q_u_a_d">_RGBQUAD</link> _BITMAPINFO::bmiColors[256]</computeroutput></para><para>
在文件 <link linkend="_bsp___b_m_p_8h_source">bsp_BMP.h</link><link linkend="_bsp___b_m_p_8h_source_1l00087">87</link> 行定义.</para>
</section>
<anchor xml:id="_struct___b_i_t_m_a_p_i_n_f_o_1a7d9eafe9a3374cd06dc22fda1af98b6d"/><section>
<title>bmiHeader</title>
<indexterm><primary>bmiHeader</primary><secondary>_BITMAPINFO</secondary></indexterm>
<indexterm><primary>_BITMAPINFO</primary><secondary>bmiHeader</secondary></indexterm>
<para><computeroutput><link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r">_BITMAPINFOHEADER</link> _BITMAPINFO::bmiHeader</computeroutput></para><para>
在文件 <link linkend="_bsp___b_m_p_8h_source">bsp_BMP.h</link><link linkend="_bsp___b_m_p_8h_source_1l00086">86</link> 行定义.</para>
</section>
<para>
该结构体的文档由以下文件生成:</para>
D:/gitt/MicrochipFor32/bsp_Device/<link linkend="_bsp___b_m_p_8h">bsp_BMP.h</link></section>
</section>

View File

@@ -0,0 +1 @@
76d622d89629e99a16a71d8fee6da921

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

View File

@@ -0,0 +1,129 @@
<?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="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r" xml:lang="zh">
<title>_BITMAPINFOHEADER结构体 参考</title>
<indexterm><primary>_BITMAPINFOHEADER</primary></indexterm>
<para>
<para>位图信息头 </para>
</para>
<para>
<computeroutput>#include &lt;bsp_BMP.h&gt;</computeroutput>
</para>
<simplesect>
<title>Public 属性 </title>
<itemizedlist>
<listitem><para><link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link> <link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a750a301fb5962c5fc2b7fac173d96bdf">biSize</link></para>
</listitem>
<listitem><para><link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link> <link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a28dd4e1f56936b64f6e01db9b2d171f2">biWidth</link></para>
</listitem>
<listitem><para><link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link> <link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a9f6c38749a3b5f8b261be7a6556cf97a">biHeight</link></para>
</listitem>
<listitem><para><link linkend="_varint_8h_1ace9d960e74685e2cd84b36132dbbf8aa">u16</link> <link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a42d10de030492301ff4a3d5cfb91c2dd">biPlanes</link></para>
</listitem>
<listitem><para><link linkend="_varint_8h_1ace9d960e74685e2cd84b36132dbbf8aa">u16</link> <link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a98f05ea6cc8388d3ca701a834b04a286">biBitCount</link></para>
</listitem>
<listitem><para><link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link> <link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1aef77b295d3a4b6540873c9e0d2ef53d2">biCompression</link></para>
</listitem>
<listitem><para><link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link> <link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a0fa85188799eb931e2a03c887751a89e">biSizeImage</link></para>
</listitem>
<listitem><para><link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link> <link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a6a7eb9da9dfb7790486523dac6c4b6c2">biXPelsPerMeter</link></para>
</listitem>
<listitem><para><link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link> <link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a0c830c96c45441edc35a5397bc86ace0">biYPelsPerMeter</link></para>
</listitem>
<listitem><para><link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link> <link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a1bb27f668cbed1ce6523e7042962a0e7">biClrUsed</link></para>
</listitem>
<listitem><para><link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link> <link linkend="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a4ee52fd1ab5c173a6e54444d1ec61dab">biClrImportant</link></para>
</listitem>
</itemizedlist>
</simplesect>
<section>
<title>详细描述</title>
<para>位图信息头 </para>
<para>
在文件 <link linkend="_bsp___b_m_p_8h_source">bsp_BMP.h</link><link linkend="_bsp___b_m_p_8h_source_1l00055">55</link> 行定义.</para>
</section>
<section>
<title>类成员变量说明</title>
<anchor xml:id="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a98f05ea6cc8388d3ca701a834b04a286"/><section>
<title>biBitCount</title>
<indexterm><primary>biBitCount</primary><secondary>_BITMAPINFOHEADER</secondary></indexterm>
<indexterm><primary>_BITMAPINFOHEADER</primary><secondary>biBitCount</secondary></indexterm>
<para><computeroutput><link linkend="_varint_8h_1ace9d960e74685e2cd84b36132dbbf8aa">u16</link> _BITMAPINFOHEADER::biBitCount</computeroutput></para><para>
在文件 <link linkend="_bsp___b_m_p_8h_source">bsp_BMP.h</link><link linkend="_bsp___b_m_p_8h_source_1l00060">60</link> 行定义.</para>
</section>
<anchor xml:id="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a4ee52fd1ab5c173a6e54444d1ec61dab"/><section>
<title>biClrImportant</title>
<indexterm><primary>biClrImportant</primary><secondary>_BITMAPINFOHEADER</secondary></indexterm>
<indexterm><primary>_BITMAPINFOHEADER</primary><secondary>biClrImportant</secondary></indexterm>
<para><computeroutput><link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link> _BITMAPINFOHEADER::biClrImportant</computeroutput></para><para>
在文件 <link linkend="_bsp___b_m_p_8h_source">bsp_BMP.h</link><link linkend="_bsp___b_m_p_8h_source_1l00070">70</link> 行定义.</para>
</section>
<anchor xml:id="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a1bb27f668cbed1ce6523e7042962a0e7"/><section>
<title>biClrUsed</title>
<indexterm><primary>biClrUsed</primary><secondary>_BITMAPINFOHEADER</secondary></indexterm>
<indexterm><primary>_BITMAPINFOHEADER</primary><secondary>biClrUsed</secondary></indexterm>
<para><computeroutput><link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link> _BITMAPINFOHEADER::biClrUsed</computeroutput></para><para>
在文件 <link linkend="_bsp___b_m_p_8h_source">bsp_BMP.h</link><link linkend="_bsp___b_m_p_8h_source_1l00069">69</link> 行定义.</para>
</section>
<anchor xml:id="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1aef77b295d3a4b6540873c9e0d2ef53d2"/><section>
<title>biCompression</title>
<indexterm><primary>biCompression</primary><secondary>_BITMAPINFOHEADER</secondary></indexterm>
<indexterm><primary>_BITMAPINFOHEADER</primary><secondary>biCompression</secondary></indexterm>
<para><computeroutput><link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link> _BITMAPINFOHEADER::biCompression</computeroutput></para><para>
在文件 <link linkend="_bsp___b_m_p_8h_source">bsp_BMP.h</link><link linkend="_bsp___b_m_p_8h_source_1l00061">61</link> 行定义.</para>
</section>
<anchor xml:id="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a9f6c38749a3b5f8b261be7a6556cf97a"/><section>
<title>biHeight</title>
<indexterm><primary>biHeight</primary><secondary>_BITMAPINFOHEADER</secondary></indexterm>
<indexterm><primary>_BITMAPINFOHEADER</primary><secondary>biHeight</secondary></indexterm>
<para><computeroutput><link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link> _BITMAPINFOHEADER::biHeight</computeroutput></para><para>
在文件 <link linkend="_bsp___b_m_p_8h_source">bsp_BMP.h</link><link linkend="_bsp___b_m_p_8h_source_1l00058">58</link> 行定义.</para>
</section>
<anchor xml:id="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a42d10de030492301ff4a3d5cfb91c2dd"/><section>
<title>biPlanes</title>
<indexterm><primary>biPlanes</primary><secondary>_BITMAPINFOHEADER</secondary></indexterm>
<indexterm><primary>_BITMAPINFOHEADER</primary><secondary>biPlanes</secondary></indexterm>
<para><computeroutput><link linkend="_varint_8h_1ace9d960e74685e2cd84b36132dbbf8aa">u16</link> _BITMAPINFOHEADER::biPlanes</computeroutput></para><para>
在文件 <link linkend="_bsp___b_m_p_8h_source">bsp_BMP.h</link><link linkend="_bsp___b_m_p_8h_source_1l00059">59</link> 行定义.</para>
</section>
<anchor xml:id="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a750a301fb5962c5fc2b7fac173d96bdf"/><section>
<title>biSize</title>
<indexterm><primary>biSize</primary><secondary>_BITMAPINFOHEADER</secondary></indexterm>
<indexterm><primary>_BITMAPINFOHEADER</primary><secondary>biSize</secondary></indexterm>
<para><computeroutput><link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link> _BITMAPINFOHEADER::biSize</computeroutput></para><para>
在文件 <link linkend="_bsp___b_m_p_8h_source">bsp_BMP.h</link><link linkend="_bsp___b_m_p_8h_source_1l00056">56</link> 行定义.</para>
</section>
<anchor xml:id="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a0fa85188799eb931e2a03c887751a89e"/><section>
<title>biSizeImage</title>
<indexterm><primary>biSizeImage</primary><secondary>_BITMAPINFOHEADER</secondary></indexterm>
<indexterm><primary>_BITMAPINFOHEADER</primary><secondary>biSizeImage</secondary></indexterm>
<para><computeroutput><link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link> _BITMAPINFOHEADER::biSizeImage</computeroutput></para><para>
在文件 <link linkend="_bsp___b_m_p_8h_source">bsp_BMP.h</link><link linkend="_bsp___b_m_p_8h_source_1l00066">66</link> 行定义.</para>
</section>
<anchor xml:id="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a28dd4e1f56936b64f6e01db9b2d171f2"/><section>
<title>biWidth</title>
<indexterm><primary>biWidth</primary><secondary>_BITMAPINFOHEADER</secondary></indexterm>
<indexterm><primary>_BITMAPINFOHEADER</primary><secondary>biWidth</secondary></indexterm>
<para><computeroutput><link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link> _BITMAPINFOHEADER::biWidth</computeroutput></para><para>
在文件 <link linkend="_bsp___b_m_p_8h_source">bsp_BMP.h</link><link linkend="_bsp___b_m_p_8h_source_1l00057">57</link> 行定义.</para>
</section>
<anchor xml:id="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a6a7eb9da9dfb7790486523dac6c4b6c2"/><section>
<title>biXPelsPerMeter</title>
<indexterm><primary>biXPelsPerMeter</primary><secondary>_BITMAPINFOHEADER</secondary></indexterm>
<indexterm><primary>_BITMAPINFOHEADER</primary><secondary>biXPelsPerMeter</secondary></indexterm>
<para><computeroutput><link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link> _BITMAPINFOHEADER::biXPelsPerMeter</computeroutput></para><para>
在文件 <link linkend="_bsp___b_m_p_8h_source">bsp_BMP.h</link><link linkend="_bsp___b_m_p_8h_source_1l00067">67</link> 行定义.</para>
</section>
<anchor xml:id="_struct___b_i_t_m_a_p_i_n_f_o_h_e_a_d_e_r_1a0c830c96c45441edc35a5397bc86ace0"/><section>
<title>biYPelsPerMeter</title>
<indexterm><primary>biYPelsPerMeter</primary><secondary>_BITMAPINFOHEADER</secondary></indexterm>
<indexterm><primary>_BITMAPINFOHEADER</primary><secondary>biYPelsPerMeter</secondary></indexterm>
<para><computeroutput><link linkend="_varint_8h_1afaa62991928fb9fb18ff0db62a040aba">u32</link> _BITMAPINFOHEADER::biYPelsPerMeter</computeroutput></para><para>
在文件 <link linkend="_bsp___b_m_p_8h_source">bsp_BMP.h</link><link linkend="_bsp___b_m_p_8h_source_1l00068">68</link> 行定义.</para>
</section>
<para>
该结构体的文档由以下文件生成:</para>
D:/gitt/MicrochipFor32/bsp_Device/<link linkend="_bsp___b_m_p_8h">bsp_BMP.h</link></section>
</section>

View File

@@ -0,0 +1,66 @@
<?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="_struct___r_g_b_q_u_a_d" xml:lang="zh">
<title>_RGBQUAD结构体 参考</title>
<indexterm><primary>_RGBQUAD</primary></indexterm>
<para>
<para>调色板 </para>
</para>
<para>
<computeroutput>#include &lt;bsp_BMP.h&gt;</computeroutput>
</para>
<simplesect>
<title>Public 属性 </title>
<itemizedlist>
<listitem><para><link linkend="_varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca">u8</link> <link linkend="_struct___r_g_b_q_u_a_d_1ad26ba005b107e31a81b9e3e981ca9f1d">rgbBlue</link></para>
</listitem>
<listitem><para><link linkend="_varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca">u8</link> <link linkend="_struct___r_g_b_q_u_a_d_1a2e445545aae97ebab36603942d3780d1">rgbGreen</link></para>
</listitem>
<listitem><para><link linkend="_varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca">u8</link> <link linkend="_struct___r_g_b_q_u_a_d_1a9756faed264a45ead4f89567e807247f">rgbRed</link></para>
</listitem>
<listitem><para><link linkend="_varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca">u8</link> <link linkend="_struct___r_g_b_q_u_a_d_1a742c7421feef58afb68308d3643bd924">rgbReserved</link></para>
</listitem>
</itemizedlist>
</simplesect>
<section>
<title>详细描述</title>
<para>调色板 </para>
<para>
在文件 <link linkend="_bsp___b_m_p_8h_source">bsp_BMP.h</link><link linkend="_bsp___b_m_p_8h_source_1l00075">75</link> 行定义.</para>
</section>
<section>
<title>类成员变量说明</title>
<anchor xml:id="_struct___r_g_b_q_u_a_d_1ad26ba005b107e31a81b9e3e981ca9f1d"/><section>
<title>rgbBlue</title>
<indexterm><primary>rgbBlue</primary><secondary>_RGBQUAD</secondary></indexterm>
<indexterm><primary>_RGBQUAD</primary><secondary>rgbBlue</secondary></indexterm>
<para><computeroutput><link linkend="_varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca">u8</link> _RGBQUAD::rgbBlue</computeroutput></para><para>
在文件 <link linkend="_bsp___b_m_p_8h_source">bsp_BMP.h</link><link linkend="_bsp___b_m_p_8h_source_1l00076">76</link> 行定义.</para>
</section>
<anchor xml:id="_struct___r_g_b_q_u_a_d_1a2e445545aae97ebab36603942d3780d1"/><section>
<title>rgbGreen</title>
<indexterm><primary>rgbGreen</primary><secondary>_RGBQUAD</secondary></indexterm>
<indexterm><primary>_RGBQUAD</primary><secondary>rgbGreen</secondary></indexterm>
<para><computeroutput><link linkend="_varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca">u8</link> _RGBQUAD::rgbGreen</computeroutput></para><para>
在文件 <link linkend="_bsp___b_m_p_8h_source">bsp_BMP.h</link><link linkend="_bsp___b_m_p_8h_source_1l00077">77</link> 行定义.</para>
</section>
<anchor xml:id="_struct___r_g_b_q_u_a_d_1a9756faed264a45ead4f89567e807247f"/><section>
<title>rgbRed</title>
<indexterm><primary>rgbRed</primary><secondary>_RGBQUAD</secondary></indexterm>
<indexterm><primary>_RGBQUAD</primary><secondary>rgbRed</secondary></indexterm>
<para><computeroutput><link linkend="_varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca">u8</link> _RGBQUAD::rgbRed</computeroutput></para><para>
在文件 <link linkend="_bsp___b_m_p_8h_source">bsp_BMP.h</link><link linkend="_bsp___b_m_p_8h_source_1l00078">78</link> 行定义.</para>
</section>
<anchor xml:id="_struct___r_g_b_q_u_a_d_1a742c7421feef58afb68308d3643bd924"/><section>
<title>rgbReserved</title>
<indexterm><primary>rgbReserved</primary><secondary>_RGBQUAD</secondary></indexterm>
<indexterm><primary>_RGBQUAD</primary><secondary>rgbReserved</secondary></indexterm>
<para><computeroutput><link linkend="_varint_8h_1a92c50087ca0e64fa93fc59402c55f8ca">u8</link> _RGBQUAD::rgbReserved</computeroutput></para><para>
在文件 <link linkend="_bsp___b_m_p_8h_source">bsp_BMP.h</link><link linkend="_bsp___b_m_p_8h_source_1l00079">79</link> 行定义.</para>
</section>
<para>
该结构体的文档由以下文件生成:</para>
D:/gitt/MicrochipFor32/bsp_Device/<link linkend="_bsp___b_m_p_8h">bsp_BMP.h</link></section>
</section>

View File

@@ -0,0 +1,60 @@
<?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="_structstruct__bsp___flash___pack" xml:lang="zh">
<title>struct_bsp_Flash_Pack结构体 参考</title>
<indexterm><primary>struct_bsp_Flash_Pack</primary></indexterm>
<para>
<para>一包数据的内容 </para>
</para>
<simplesect>
<title>Public 属性 </title>
<itemizedlist>
<listitem><para>char <link linkend="_structstruct__bsp___flash___pack_1aea6e531775263f158f23d2295f759dd7">Var0</link></para>
</listitem>
<listitem><para>short <link linkend="_structstruct__bsp___flash___pack_1aff73ebf1f2eaf5930d7187aa5f502075">Var1</link></para>
</listitem>
<listitem><para>int <link linkend="_structstruct__bsp___flash___pack_1adc2edcdadc2b2be3d18334cd196e049c">Var2</link></para>
</listitem>
</itemizedlist>
</simplesect>
<section>
<title>详细描述</title>
<para>一包数据的内容 </para>
<para><para><link linkend="_todo_1_todo000001">待办事项</link>
<para>随意更改内部内容方便读取 </para>
</para></para>
<para>
在文件 <link linkend="_bsp__flash_8c_source">bsp_flash.c</link><link linkend="_bsp__flash_8c_source_1l00043">43</link> 行定义.</para>
</section>
<section>
<title>类成员变量说明</title>
<anchor xml:id="_structstruct__bsp___flash___pack_1aea6e531775263f158f23d2295f759dd7"/><section>
<title>Var0</title>
<indexterm><primary>Var0</primary><secondary>struct_bsp_Flash_Pack</secondary></indexterm>
<indexterm><primary>struct_bsp_Flash_Pack</primary><secondary>Var0</secondary></indexterm>
<para><computeroutput>char struct_bsp_Flash_Pack::Var0</computeroutput></para><para>
在文件 <link linkend="_bsp__flash_8c_source">bsp_flash.c</link><link linkend="_bsp__flash_8c_source_1l00044">44</link> 行定义.</para>
</section>
<anchor xml:id="_structstruct__bsp___flash___pack_1aff73ebf1f2eaf5930d7187aa5f502075"/><section>
<title>Var1</title>
<indexterm><primary>Var1</primary><secondary>struct_bsp_Flash_Pack</secondary></indexterm>
<indexterm><primary>struct_bsp_Flash_Pack</primary><secondary>Var1</secondary></indexterm>
<para><computeroutput>short struct_bsp_Flash_Pack::Var1</computeroutput></para><para>
在文件 <link linkend="_bsp__flash_8c_source">bsp_flash.c</link><link linkend="_bsp__flash_8c_source_1l00045">45</link> 行定义.</para>
</section>
<anchor xml:id="_structstruct__bsp___flash___pack_1adc2edcdadc2b2be3d18334cd196e049c"/><section>
<title>Var2</title>
<indexterm><primary>Var2</primary><secondary>struct_bsp_Flash_Pack</secondary></indexterm>
<indexterm><primary>struct_bsp_Flash_Pack</primary><secondary>Var2</secondary></indexterm>
<para><computeroutput>int struct_bsp_Flash_Pack::Var2</computeroutput></para><para>
在文件 <link linkend="_bsp__flash_8c_source">bsp_flash.c</link><link linkend="_bsp__flash_8c_source_1l00046">46</link> 行定义.</para>
</section>
<para>
该结构体的文档由以下文件生成:</para>
D:/gitt/MicrochipFor32/bsp_Device/<link linkend="_bsp__flash_8c">bsp_flash.c</link></section>
</section>

View File

@@ -2,25 +2,29 @@
<section xmlns="http://docbook.org/ns/docbook" version="5.0" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="_todo" xml:lang="zh">
<para><variablelist>
<varlistentry><term>成员 <link linkend="_bsp__flash_8c_1a2c0639c4d50bba3762a4295a56a06af8">bsp_Flash_Pack</link> </term>
<listitem>
<para><anchor xml:id="_todo_1_todo000001"/>随意更改内部内容方便读取 </para>
</listitem></varlistentry>
<varlistentry><term>成员 <link linkend="_classbsp___i_i_c_1ad3d17035a8d19842ccabbf743a4405f4">bsp_IIC::IIC_Delay</link> (void)=0</term>
<listitem>
<para><anchor xml:id="_todo_1_todo000003"/>需要为其实现才可使用软件IIC </para>
<para><anchor xml:id="_todo_1_todo000004"/>需要为其实现才可使用软件IIC </para>
</listitem></varlistentry>
<varlistentry><term>成员 <link linkend="_classbsp___i_i_c_1a9c71db14d666983ab15621f119bdc171">bsp_IIC::IIC_SCK</link> (u8 var)=0</term>
<listitem>
<para><anchor xml:id="_todo_1_todo000001"/>需要为其实现才可使用软件IIC </para>
<para><anchor xml:id="_todo_1_todo000002"/>需要为其实现才可使用软件IIC </para>
</listitem></varlistentry>
<varlistentry><term>成员 <link linkend="_classbsp___i_i_c_1adf1ba1196ef163ab1958747744dd8a14">bsp_IIC::IIC_SDA</link> (u8 var)=0</term>
<listitem>
<para><anchor xml:id="_todo_1_todo000002"/>需要为其实现才可使用软件IIC </para>
<para><anchor xml:id="_todo_1_todo000003"/>需要为其实现才可使用软件IIC </para>
</listitem></varlistentry>
<varlistentry><term>成员 <link linkend="_vartable_8h_1a848c96750b960675b1bd032c1c2725e5">MainInit</link> (void)</term>
<listitem>
<para><anchor xml:id="_todo_1_todo000004"/>在此处填写初始化程序 </para>
<para><anchor xml:id="_todo_1_todo000005"/>在此处填写初始化程序 </para>
</listitem></varlistentry>
<varlistentry><term>成员 <link linkend="_vartable_8h_1af89e02f2d993332a8dea8fef6b78a7bc">MainSystem</link> (void)</term>
<listitem>
<para><anchor xml:id="_todo_1_todo000005"/>在此处填写主进程程序 </para>
<para><anchor xml:id="_todo_1_todo000006"/>在此处填写主进程程序 </para>
</listitem></varlistentry>
</variablelist>
</para>

Some files were not shown because too many files have changed in this diff Show More