\hypertarget{bsp___mod_bus_8h}{}\doxysection{D\+:/gitt/\+Microchip\+For32/bsp\+\_\+\+Device/bsp\+\_\+\+Mod\+Bus/bsp\+\_\+\+Mod\+Bus.h 文件参考}
\label{bsp___mod_bus_8h}\index{D:/gitt/MicrochipFor32/bsp\_Device/bsp\_ModBus/bsp\_ModBus.h@{D:/gitt/MicrochipFor32/bsp\_Device/bsp\_ModBus/bsp\_ModBus.h}}


Mod\+Bus通信函数  


{\ttfamily \#include \char`\"{}varint.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}usart.\+h\char`\"{}}\newline
{\ttfamily \#include $<$stdarg.\+h$>$}\newline
bsp\+\_\+\+Mod\+Bus.\+h 的引用(Include)关系图\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=264pt]{bsp___mod_bus_8h__incl}
\end{center}
\end{figure}
此图展示该文件直接或间接的被哪些文件引用了\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{bsp___mod_bus_8h__dep__incl}
\end{center}
\end{figure}
\doxysubsection*{类}
\begin{DoxyCompactItemize}
\item 
class \mbox{\hyperlink{classbsp___mod_bus___tx}{bsp\+\_\+\+Mod\+Bus\+\_\+\+Tx}}
\begin{DoxyCompactList}\small\item\em Mod\+Bus发送器 \end{DoxyCompactList}\item 
class \mbox{\hyperlink{classbsp___mod_bus___rx}{bsp\+\_\+\+Mod\+Bus\+\_\+\+Rx}}
\begin{DoxyCompactList}\small\item\em Mod\+Bus协议分析器 \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{枚举}
\begin{DoxyCompactItemize}
\item 
enum \mbox{\hyperlink{bsp___mod_bus_8h_ac6d9f6c262df700be9045045502e7643}{Fun\+\_\+\+Mod\+Bus}} \{ \newline
\mbox{\hyperlink{bsp___mod_bus_8h_ac6d9f6c262df700be9045045502e7643afa0834864982fdb57c9a954bdbd1599b}{Fun\+\_\+\+R\+\_\+\+Out\+Coil}} = 0x01
, \mbox{\hyperlink{bsp___mod_bus_8h_ac6d9f6c262df700be9045045502e7643a8c70d4d5036c1a3f9c51a545d13fdd92}{Fun\+\_\+\+R\+\_\+\+In\+Coil}} = 0x02
, \mbox{\hyperlink{bsp___mod_bus_8h_ac6d9f6c262df700be9045045502e7643a9ec5f1febebcade07d80148f67d51594}{Fun\+\_\+\+R\+\_\+\+Keep\+Reg}} = 0x03
, \mbox{\hyperlink{bsp___mod_bus_8h_ac6d9f6c262df700be9045045502e7643ab285b7d7c40fa9a85adba60a3a769fca}{Fun\+\_\+\+R\+\_\+\+In\+Reg}} = 0x04
, \newline
\mbox{\hyperlink{bsp___mod_bus_8h_ac6d9f6c262df700be9045045502e7643a95bb48bd2de82de8a2f5684a6cccff0f}{Fun\+\_\+\+W\+\_\+\+One\+Coil}} = 0x05
, \mbox{\hyperlink{bsp___mod_bus_8h_ac6d9f6c262df700be9045045502e7643a2e8689560573f300af3a6c48fdd6ce86}{Fun\+\_\+\+W\+\_\+\+One\+Reg}} = 0x06
, \mbox{\hyperlink{bsp___mod_bus_8h_ac6d9f6c262df700be9045045502e7643a0a40a9622af4e5cb7daecbdb303ee35e}{Fun\+\_\+\+W\+\_\+\+Coils}} = 0x0F
, \mbox{\hyperlink{bsp___mod_bus_8h_ac6d9f6c262df700be9045045502e7643a54562faaab8c1c932c46c6c4cb2552f9}{Fun\+\_\+\+W\+\_\+\+Regs}} = 0x10
 \}
\end{DoxyCompactItemize}


\doxysubsection{详细描述}
Mod\+Bus通信函数 



在文件 \mbox{\hyperlink{bsp___mod_bus_8h_source}{bsp\+\_\+\+Mod\+Bus.\+h}} 中定义.



\doxysubsection{枚举类型说明}
\mbox{\Hypertarget{bsp___mod_bus_8h_ac6d9f6c262df700be9045045502e7643}\label{bsp___mod_bus_8h_ac6d9f6c262df700be9045045502e7643}} 
\index{bsp\_ModBus.h@{bsp\_ModBus.h}!Fun\_ModBus@{Fun\_ModBus}}
\index{Fun\_ModBus@{Fun\_ModBus}!bsp\_ModBus.h@{bsp\_ModBus.h}}
\doxysubsubsection{\texorpdfstring{Fun\_ModBus}{Fun\_ModBus}}
{\footnotesize\ttfamily enum \mbox{\hyperlink{bsp___mod_bus_8h_ac6d9f6c262df700be9045045502e7643}{Fun\+\_\+\+Mod\+Bus}}}

\begin{DoxyEnumFields}{枚举值}
\raisebox{\heightof{T}}[0pt][0pt]{\index{Fun\_R\_OutCoil@{Fun\_R\_OutCoil}!bsp\_ModBus.h@{bsp\_ModBus.h}}\index{bsp\_ModBus.h@{bsp\_ModBus.h}!Fun\_R\_OutCoil@{Fun\_R\_OutCoil}}}\mbox{\Hypertarget{bsp___mod_bus_8h_ac6d9f6c262df700be9045045502e7643afa0834864982fdb57c9a954bdbd1599b}\label{bsp___mod_bus_8h_ac6d9f6c262df700be9045045502e7643afa0834864982fdb57c9a954bdbd1599b}} 
Fun\+\_\+\+R\+\_\+\+Out\+Coil&读取输出线圈 \\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{Fun\_R\_InCoil@{Fun\_R\_InCoil}!bsp\_ModBus.h@{bsp\_ModBus.h}}\index{bsp\_ModBus.h@{bsp\_ModBus.h}!Fun\_R\_InCoil@{Fun\_R\_InCoil}}}\mbox{\Hypertarget{bsp___mod_bus_8h_ac6d9f6c262df700be9045045502e7643a8c70d4d5036c1a3f9c51a545d13fdd92}\label{bsp___mod_bus_8h_ac6d9f6c262df700be9045045502e7643a8c70d4d5036c1a3f9c51a545d13fdd92}} 
Fun\+\_\+\+R\+\_\+\+In\+Coil&读取输入线圈 \\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{Fun\_R\_KeepReg@{Fun\_R\_KeepReg}!bsp\_ModBus.h@{bsp\_ModBus.h}}\index{bsp\_ModBus.h@{bsp\_ModBus.h}!Fun\_R\_KeepReg@{Fun\_R\_KeepReg}}}\mbox{\Hypertarget{bsp___mod_bus_8h_ac6d9f6c262df700be9045045502e7643a9ec5f1febebcade07d80148f67d51594}\label{bsp___mod_bus_8h_ac6d9f6c262df700be9045045502e7643a9ec5f1febebcade07d80148f67d51594}} 
Fun\+\_\+\+R\+\_\+\+Keep\+Reg&读取保持寄存 \\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{Fun\_R\_InReg@{Fun\_R\_InReg}!bsp\_ModBus.h@{bsp\_ModBus.h}}\index{bsp\_ModBus.h@{bsp\_ModBus.h}!Fun\_R\_InReg@{Fun\_R\_InReg}}}\mbox{\Hypertarget{bsp___mod_bus_8h_ac6d9f6c262df700be9045045502e7643ab285b7d7c40fa9a85adba60a3a769fca}\label{bsp___mod_bus_8h_ac6d9f6c262df700be9045045502e7643ab285b7d7c40fa9a85adba60a3a769fca}} 
Fun\+\_\+\+R\+\_\+\+In\+Reg&读取输入寄存 \\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{Fun\_W\_OneCoil@{Fun\_W\_OneCoil}!bsp\_ModBus.h@{bsp\_ModBus.h}}\index{bsp\_ModBus.h@{bsp\_ModBus.h}!Fun\_W\_OneCoil@{Fun\_W\_OneCoil}}}\mbox{\Hypertarget{bsp___mod_bus_8h_ac6d9f6c262df700be9045045502e7643a95bb48bd2de82de8a2f5684a6cccff0f}\label{bsp___mod_bus_8h_ac6d9f6c262df700be9045045502e7643a95bb48bd2de82de8a2f5684a6cccff0f}} 
Fun\+\_\+\+W\+\_\+\+One\+Coil&写入单线圈 \\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{Fun\_W\_OneReg@{Fun\_W\_OneReg}!bsp\_ModBus.h@{bsp\_ModBus.h}}\index{bsp\_ModBus.h@{bsp\_ModBus.h}!Fun\_W\_OneReg@{Fun\_W\_OneReg}}}\mbox{\Hypertarget{bsp___mod_bus_8h_ac6d9f6c262df700be9045045502e7643a2e8689560573f300af3a6c48fdd6ce86}\label{bsp___mod_bus_8h_ac6d9f6c262df700be9045045502e7643a2e8689560573f300af3a6c48fdd6ce86}} 
Fun\+\_\+\+W\+\_\+\+One\+Reg&写入单寄存 \\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{Fun\_W\_Coils@{Fun\_W\_Coils}!bsp\_ModBus.h@{bsp\_ModBus.h}}\index{bsp\_ModBus.h@{bsp\_ModBus.h}!Fun\_W\_Coils@{Fun\_W\_Coils}}}\mbox{\Hypertarget{bsp___mod_bus_8h_ac6d9f6c262df700be9045045502e7643a0a40a9622af4e5cb7daecbdb303ee35e}\label{bsp___mod_bus_8h_ac6d9f6c262df700be9045045502e7643a0a40a9622af4e5cb7daecbdb303ee35e}} 
Fun\+\_\+\+W\+\_\+\+Coils&写入多线圈 \\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{Fun\_W\_Regs@{Fun\_W\_Regs}!bsp\_ModBus.h@{bsp\_ModBus.h}}\index{bsp\_ModBus.h@{bsp\_ModBus.h}!Fun\_W\_Regs@{Fun\_W\_Regs}}}\mbox{\Hypertarget{bsp___mod_bus_8h_ac6d9f6c262df700be9045045502e7643a54562faaab8c1c932c46c6c4cb2552f9}\label{bsp___mod_bus_8h_ac6d9f6c262df700be9045045502e7643a54562faaab8c1c932c46c6c4cb2552f9}} 
Fun\+\_\+\+W\+\_\+\+Regs&写入多寄存 \\
\hline

\end{DoxyEnumFields}


在文件 \mbox{\hyperlink{bsp___mod_bus_8h_source}{bsp\+\_\+\+Mod\+Bus.\+h}} 第 \mbox{\hyperlink{bsp___mod_bus_8h_source_l00041}{41}} 行定义.

