Files
MicrochipFor32/Doc/docbook/bsp___m_a_x6675_8h_source.xml
XerolySkinner 08f9f63eb3 内容大更新
更加规范化
加入modbus类
优化帮助文档
2022-11-22 03:43:24 +08:00

48 lines
7.2 KiB
XML

<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<section xmlns="http://docbook.org/ns/docbook" version="5.0" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="_bsp___m_a_x6675_8h_source" xml:lang="zh">
<title>bsp_MAX6675.h</title>
<indexterm><primary>D:/gitt/MicrochipFor32/bsp_Device/bsp_MAX6675.h</primary></indexterm>
浏览该文件的文档.<programlisting linenumbering="unnumbered"><anchor xml:id="_bsp___m_a_x6675_8h_source_1l00001"/>00001 <emphasis role="comment">/*----------------------------------------------------------------------------------------------------</emphasis>
<anchor xml:id="_bsp___m_a_x6675_8h_source_1l00002"/>00002 <emphasis role="comment">&#32;#</emphasis>
<anchor xml:id="_bsp___m_a_x6675_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___m_a_x6675_8h_source_1l00004"/>00004 <emphasis role="comment">&#32;#</emphasis>
<anchor xml:id="_bsp___m_a_x6675_8h_source_1l00005"/>00005 <emphasis role="comment">&#32;#&#32;&#32;本软件按原样提供,无任何明示或暗示</emphasis>
<anchor xml:id="_bsp___m_a_x6675_8h_source_1l00006"/>00006 <emphasis role="comment">&#32;#&#32;&#32;在任何情况下,作者都不承担任何损害赔偿责任</emphasis>
<anchor xml:id="_bsp___m_a_x6675_8h_source_1l00007"/>00007 <emphasis role="comment">&#32;#</emphasis>
<anchor xml:id="_bsp___m_a_x6675_8h_source_1l00008"/>00008 <emphasis role="comment">&#32;#&#32;&#32;使用的许可声明:</emphasis>
<anchor xml:id="_bsp___m_a_x6675_8h_source_1l00009"/>00009 <emphasis role="comment">&#32;#&#32;&#32;1.&#32;&#32;不得歪曲本软件的来源,你不能声称你编写了原始软件.</emphasis>
<anchor xml:id="_bsp___m_a_x6675_8h_source_1l00010"/>00010 <emphasis role="comment">&#32;#&#32;&#32;2.&#32;&#32;免费授予以任何目的,前提是版权声明出现在所有副本中.</emphasis>
<anchor xml:id="_bsp___m_a_x6675_8h_source_1l00011"/>00011 <emphasis role="comment">&#32;#&#32;&#32;&#32;&#32;&#32;&#32;并且版权声明和许可声明同时出现.</emphasis>
<anchor xml:id="_bsp___m_a_x6675_8h_source_1l00012"/>00012 <emphasis role="comment">&#32;#&#32;&#32;3.&#32;&#32;你有使用,复制,修改,分发,和销售本软件的许可.</emphasis>
<anchor xml:id="_bsp___m_a_x6675_8h_source_1l00013"/>00013 <emphasis role="comment">&#32;#&#32;&#32;4.&#32;&#32;如果你在产品中使用,产品文档中的声明是赞赏的但不是必须的.</emphasis>
<anchor xml:id="_bsp___m_a_x6675_8h_source_1l00014"/>00014 <emphasis role="comment">&#32;#&#32;&#32;5.&#32;&#32;本通知不得从任何来源删除或更改.</emphasis>
<anchor xml:id="_bsp___m_a_x6675_8h_source_1l00015"/>00015 <emphasis role="comment">&#32;#</emphasis>
<anchor xml:id="_bsp___m_a_x6675_8h_source_1l00016"/>00016 <emphasis role="comment">&#32;#&#32;&#32;Yuankang&#32;Liang(XerolySkinner)</emphasis>
<anchor xml:id="_bsp___m_a_x6675_8h_source_1l00017"/>00017 <emphasis role="comment">&#32;#&#32;&#32;&#32;&#32;&#32;&#32;E-mail:zabbcccbbaz@163.com</emphasis>
<anchor xml:id="_bsp___m_a_x6675_8h_source_1l00018"/>00018 <emphasis role="comment">&#32;#&#32;&#32;&#32;&#32;&#32;&#32;QQ:2715099320</emphasis>
<anchor xml:id="_bsp___m_a_x6675_8h_source_1l00019"/>00019 <emphasis role="comment">&#32;#&#32;&#32;&#32;&#32;&#32;&#32;Mobile&#32;Phone:13005636215</emphasis>
<anchor xml:id="_bsp___m_a_x6675_8h_source_1l00020"/>00020 <emphasis role="comment">&#32;#</emphasis>
<anchor xml:id="_bsp___m_a_x6675_8h_source_1l00021"/>00021 <emphasis role="comment">&#32;#&#32;&#32;All&#32;rights&#32;reserved.</emphasis>
<anchor xml:id="_bsp___m_a_x6675_8h_source_1l00022"/>00022 <emphasis role="comment">&#32;*/</emphasis>
<anchor xml:id="_bsp___m_a_x6675_8h_source_1l00023"/>00023
<anchor xml:id="_bsp___m_a_x6675_8h_source_1l00034"/>00034 <emphasis role="preprocessor">#ifdef&#32;__cplusplus</emphasis>
<anchor xml:id="_bsp___m_a_x6675_8h_source_1l00035"/>00035 <emphasis role="preprocessor">#pragma&#32;once</emphasis>
<anchor xml:id="_bsp___m_a_x6675_8h_source_1l00036"/>00036 <emphasis role="preprocessor">#include&#32;&quot;<link linkend="_varint_8h">varint.h</link>&quot;</emphasis>
<anchor xml:id="_bsp___m_a_x6675_8h_source_1l00037"/>00037 <emphasis role="preprocessor">#include&#32;&quot;spi.h&quot;</emphasis>
<anchor xml:id="_bsp___m_a_x6675_8h_source_1l00039"/>00039 <emphasis role="comment">//----------------------------------------------------------------------------------------------------</emphasis>
<anchor xml:id="_bsp___m_a_x6675_8h_source_1l00040"/>00040 <emphasis role="comment">//&#32;&#32;类目</emphasis>
<anchor xml:id="_bsp___m_a_x6675_8h_source_1l00049"/><link linkend="_classbsp___m_a_x6675">00049</link> <emphasis role="comment"></emphasis><emphasis role="keyword">class&#32;</emphasis><link linkend="_classbsp___m_a_x6675">bsp_MAX6675</link>{
<anchor xml:id="_bsp___m_a_x6675_8h_source_1l00050"/>00050 &#32;&#32;&#32;&#32;<emphasis role="keyword">public</emphasis>:
<anchor xml:id="_bsp___m_a_x6675_8h_source_1l00051"/>00051 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<link linkend="_classbsp___m_a_x6675">bsp_MAX6675</link>(
<anchor xml:id="_bsp___m_a_x6675_8h_source_1l00052"/>00052 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;SPI_HandleTypeDef*&#32;<link linkend="_classbsp___m_a_x6675_1a6b4e52e8861a88b7201c1bb5e70aa40a">hspi</link>,
<anchor xml:id="_bsp___m_a_x6675_8h_source_1l00053"/>00053 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;GPIO_TypeDef*&#32;<link linkend="_classbsp___m_a_x6675_1a546cf5ce462d8bee441b66ca7e6c270a">GPIOx_CS</link>,&#32;uint16_t&#32;<link linkend="_classbsp___m_a_x6675_1a925d408718c644d56e5ffebd25150c4f">GPIO_Pin_CS</link>);
<anchor xml:id="_bsp___m_a_x6675_8h_source_1l00054"/>00054 &#32;&#32;&#32;&#32;<emphasis role="keyword">public</emphasis>:
<anchor xml:id="_bsp___m_a_x6675_8h_source_1l00055"/>00055 &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;<emphasis role="keywordtype">float</emphasis>&#32;<link linkend="_classbsp___m_a_x6675_1aaf35defa67c560c795005ba8ee61324c">ReadTemperature</link>(<emphasis role="keywordtype">void</emphasis>);
<anchor xml:id="_bsp___m_a_x6675_8h_source_1l00056"/>00056 &#32;&#32;&#32;&#32;&#32;<emphasis role="keyword">protected</emphasis>:
<anchor xml:id="_bsp___m_a_x6675_8h_source_1l00057"/><link linkend="_classbsp___m_a_x6675_1a6b4e52e8861a88b7201c1bb5e70aa40a">00057</link> &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;SPI_HandleTypeDef*&#32;<link linkend="_classbsp___m_a_x6675_1a6b4e52e8861a88b7201c1bb5e70aa40a">hspi</link>;
<anchor xml:id="_bsp___m_a_x6675_8h_source_1l00058"/><link linkend="_classbsp___m_a_x6675_1a546cf5ce462d8bee441b66ca7e6c270a">00058</link> &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;GPIO_TypeDef*&#32;<link linkend="_classbsp___m_a_x6675_1a546cf5ce462d8bee441b66ca7e6c270a">GPIOx_CS</link>;
<anchor xml:id="_bsp___m_a_x6675_8h_source_1l00059"/><link linkend="_classbsp___m_a_x6675_1a925d408718c644d56e5ffebd25150c4f">00059</link> &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;uint16_t&#32;<link linkend="_classbsp___m_a_x6675_1a925d408718c644d56e5ffebd25150c4f">GPIO_Pin_CS</link>;
<anchor xml:id="_bsp___m_a_x6675_8h_source_1l00060"/>00060 &#32;&#32;&#32;&#32;};
<anchor xml:id="_bsp___m_a_x6675_8h_source_1l00062"/>00062 <emphasis role="preprocessor">#endif</emphasis>
</programlisting></section>