\hypertarget{classbsp___mod_bus___rx}{}\doxysection{bsp\+\_\+\+Mod\+Bus\+\_\+\+Rx类 参考} \label{classbsp___mod_bus___rx}\index{bsp\_ModBus\_Rx@{bsp\_ModBus\_Rx}} Mod\+Bus协议分析器 {\ttfamily \#include $<$bsp\+\_\+\+Mod\+Bus.\+h$>$} \doxysubsection*{Public 成员函数} \begin{DoxyCompactItemize} \item \mbox{\hyperlink{classbsp___mod_bus___rx_a87e68578770301c3d78c9b7f551bb627}{bsp\+\_\+\+Mod\+Bus\+\_\+\+Rx}} (void) \item \mbox{\hyperlink{classbsp___mod_bus___rx_afa1dac97034b51725349ab5b1a2aa909}{$\sim$bsp\+\_\+\+Mod\+Bus\+\_\+\+Rx}} (void) \item void \mbox{\hyperlink{classbsp___mod_bus___rx_a39330845d4ced51850b9edaaab052e0f}{analysis}} (\mbox{\hyperlink{varint_8h_a92c50087ca0e64fa93fc59402c55f8ca}{u8}} $\ast$dat) \begin{DoxyCompactList}\small\item\em 以\+Mod\+Bus协议分析缓冲区内数据 \end{DoxyCompactList}\end{DoxyCompactItemize} \doxysubsection*{Public 属性} \begin{DoxyCompactItemize} \item \mbox{\hyperlink{varint_8h_a92c50087ca0e64fa93fc59402c55f8ca}{u8}} \mbox{\hyperlink{classbsp___mod_bus___rx_a045cc9c5f9d26ad5be1da2d2cfdcbefc}{ID}} \begin{DoxyCompactList}\small\item\em 器件\+ID \end{DoxyCompactList}\item \mbox{\hyperlink{varint_8h_a92c50087ca0e64fa93fc59402c55f8ca}{u8}} \mbox{\hyperlink{classbsp___mod_bus___rx_a0a5cdc492b09b33ae665706c9968e5d5}{Func}} \begin{DoxyCompactList}\small\item\em 功能号 \end{DoxyCompactList}\item \mbox{\hyperlink{varint_8h_a92c50087ca0e64fa93fc59402c55f8ca}{u8}} \mbox{\hyperlink{classbsp___mod_bus___rx_ac1a35ae91223298913373de0d3e7c02d}{crcts}} \begin{DoxyCompactList}\small\item\em CRC测试 \end{DoxyCompactList}\item \mbox{\hyperlink{varint_8h_ace9d960e74685e2cd84b36132dbbf8aa}{u16}} $\ast$ \mbox{\hyperlink{classbsp___mod_bus___rx_a091cc0733eb4aa6b06c10afdbfd46b7f}{Keep\+Reg\+Dat}} \item \mbox{\hyperlink{varint_8h_a92c50087ca0e64fa93fc59402c55f8ca}{u8}} \mbox{\hyperlink{classbsp___mod_bus___rx_a7622d0c8c56feb97d263f57115ef3f6a}{Keep\+Reg\+Mem}} \item \mbox{\hyperlink{varint_8h_ace9d960e74685e2cd84b36132dbbf8aa}{u16}} $\ast$ \mbox{\hyperlink{classbsp___mod_bus___rx_ab275dbfa83dd90eff0cbf0411dfe8e4a}{In\+Reg\+Dat}} \item \mbox{\hyperlink{varint_8h_a92c50087ca0e64fa93fc59402c55f8ca}{u8}} \mbox{\hyperlink{classbsp___mod_bus___rx_a37508047d184916eb7133a4ad8f10a6c}{In\+Reg\+Mem}} \item \mbox{\hyperlink{varint_8h_a92c50087ca0e64fa93fc59402c55f8ca}{u8}} $\ast$ \mbox{\hyperlink{classbsp___mod_bus___rx_a6612d15d148b4944662851bd8fabae04}{Out\+Coil\+Dat}} \item \mbox{\hyperlink{varint_8h_a92c50087ca0e64fa93fc59402c55f8ca}{u8}} \mbox{\hyperlink{classbsp___mod_bus___rx_a062f82edfe722d8cb783b67a5a085bee}{Out\+Coil\+Mem}} \item \mbox{\hyperlink{varint_8h_a92c50087ca0e64fa93fc59402c55f8ca}{u8}} $\ast$ \mbox{\hyperlink{classbsp___mod_bus___rx_a8ca97f2e7b033faddbb1772f15d91d4d}{In\+Coil\+Dat}} \item \mbox{\hyperlink{varint_8h_a92c50087ca0e64fa93fc59402c55f8ca}{u8}} \mbox{\hyperlink{classbsp___mod_bus___rx_a22f49f0782c4580b0f582c27fbd758a3}{In\+Coil\+Mem}} \end{DoxyCompactItemize} \doxysubsection{详细描述} Mod\+Bus协议分析器 在文件 \mbox{\hyperlink{bsp___mod_bus_8h_source}{bsp\+\_\+\+Mod\+Bus.\+h}} 第 \mbox{\hyperlink{bsp___mod_bus_8h_source_l00082}{82}} 行定义. \doxysubsection{构造及析构函数说明} \mbox{\Hypertarget{classbsp___mod_bus___rx_a87e68578770301c3d78c9b7f551bb627}\label{classbsp___mod_bus___rx_a87e68578770301c3d78c9b7f551bb627}} \index{bsp\_ModBus\_Rx@{bsp\_ModBus\_Rx}!bsp\_ModBus\_Rx@{bsp\_ModBus\_Rx}} \index{bsp\_ModBus\_Rx@{bsp\_ModBus\_Rx}!bsp\_ModBus\_Rx@{bsp\_ModBus\_Rx}} \doxysubsubsection{\texorpdfstring{bsp\_ModBus\_Rx()}{bsp\_ModBus\_Rx()}} {\footnotesize\ttfamily bsp\+\_\+\+Mod\+Bus\+\_\+\+Rx\+::bsp\+\_\+\+Mod\+Bus\+\_\+\+Rx (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})} 在文件 \mbox{\hyperlink{bsp___mod_bus_8cpp_source}{bsp\+\_\+\+Mod\+Bus.\+cpp}} 第 \mbox{\hyperlink{bsp___mod_bus_8cpp_source_l00365}{365}} 行定义. \mbox{\Hypertarget{classbsp___mod_bus___rx_afa1dac97034b51725349ab5b1a2aa909}\label{classbsp___mod_bus___rx_afa1dac97034b51725349ab5b1a2aa909}} \index{bsp\_ModBus\_Rx@{bsp\_ModBus\_Rx}!````~bsp\_ModBus\_Rx@{$\sim$bsp\_ModBus\_Rx}} \index{````~bsp\_ModBus\_Rx@{$\sim$bsp\_ModBus\_Rx}!bsp\_ModBus\_Rx@{bsp\_ModBus\_Rx}} \doxysubsubsection{\texorpdfstring{$\sim$bsp\_ModBus\_Rx()}{~bsp\_ModBus\_Rx()}} {\footnotesize\ttfamily bsp\+\_\+\+Mod\+Bus\+\_\+\+Rx\+::$\sim$bsp\+\_\+\+Mod\+Bus\+\_\+\+Rx (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})} 在文件 \mbox{\hyperlink{bsp___mod_bus_8cpp_source}{bsp\+\_\+\+Mod\+Bus.\+cpp}} 第 \mbox{\hyperlink{bsp___mod_bus_8cpp_source_l00371}{371}} 行定义. \doxysubsection{成员函数说明} \mbox{\Hypertarget{classbsp___mod_bus___rx_a39330845d4ced51850b9edaaab052e0f}\label{classbsp___mod_bus___rx_a39330845d4ced51850b9edaaab052e0f}} \index{bsp\_ModBus\_Rx@{bsp\_ModBus\_Rx}!analysis@{analysis}} \index{analysis@{analysis}!bsp\_ModBus\_Rx@{bsp\_ModBus\_Rx}} \doxysubsubsection{\texorpdfstring{analysis()}{analysis()}} {\footnotesize\ttfamily void bsp\+\_\+\+Mod\+Bus\+\_\+\+Rx\+::analysis (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{varint_8h_a92c50087ca0e64fa93fc59402c55f8ca}{u8}} $\ast$}]{dat }\end{DoxyParamCaption})} 以\+Mod\+Bus协议分析缓冲区内数据 \begin{DoxyParams}{参数} {\em $\ast$dat} & 待分析的缓冲区 \\ \hline \end{DoxyParams} \begin{DoxyReturn}{返回} 无返回值 \end{DoxyReturn} 在文件 \mbox{\hyperlink{bsp___mod_bus_8cpp_source}{bsp\+\_\+\+Mod\+Bus.\+cpp}} 第 \mbox{\hyperlink{bsp___mod_bus_8cpp_source_l00304}{304}} 行定义. 函数调用图\+:\nopagebreak \begin{figure}[H] \begin{center} \leavevmode \includegraphics[width=344pt]{classbsp___mod_bus___rx_a39330845d4ced51850b9edaaab052e0f_cgraph} \end{center} \end{figure} \doxysubsection{类成员变量说明} \mbox{\Hypertarget{classbsp___mod_bus___rx_ac1a35ae91223298913373de0d3e7c02d}\label{classbsp___mod_bus___rx_ac1a35ae91223298913373de0d3e7c02d}} \index{bsp\_ModBus\_Rx@{bsp\_ModBus\_Rx}!crcts@{crcts}} \index{crcts@{crcts}!bsp\_ModBus\_Rx@{bsp\_ModBus\_Rx}} \doxysubsubsection{\texorpdfstring{crcts}{crcts}} {\footnotesize\ttfamily \mbox{\hyperlink{varint_8h_a92c50087ca0e64fa93fc59402c55f8ca}{u8}} bsp\+\_\+\+Mod\+Bus\+\_\+\+Rx\+::crcts} CRC测试 在文件 \mbox{\hyperlink{bsp___mod_bus_8h_source}{bsp\+\_\+\+Mod\+Bus.\+h}} 第 \mbox{\hyperlink{bsp___mod_bus_8h_source_l00091}{91}} 行定义. \mbox{\Hypertarget{classbsp___mod_bus___rx_a0a5cdc492b09b33ae665706c9968e5d5}\label{classbsp___mod_bus___rx_a0a5cdc492b09b33ae665706c9968e5d5}} \index{bsp\_ModBus\_Rx@{bsp\_ModBus\_Rx}!Func@{Func}} \index{Func@{Func}!bsp\_ModBus\_Rx@{bsp\_ModBus\_Rx}} \doxysubsubsection{\texorpdfstring{Func}{Func}} {\footnotesize\ttfamily \mbox{\hyperlink{varint_8h_a92c50087ca0e64fa93fc59402c55f8ca}{u8}} bsp\+\_\+\+Mod\+Bus\+\_\+\+Rx\+::\+Func} 功能号 在文件 \mbox{\hyperlink{bsp___mod_bus_8h_source}{bsp\+\_\+\+Mod\+Bus.\+h}} 第 \mbox{\hyperlink{bsp___mod_bus_8h_source_l00090}{90}} 行定义. \mbox{\Hypertarget{classbsp___mod_bus___rx_a045cc9c5f9d26ad5be1da2d2cfdcbefc}\label{classbsp___mod_bus___rx_a045cc9c5f9d26ad5be1da2d2cfdcbefc}} \index{bsp\_ModBus\_Rx@{bsp\_ModBus\_Rx}!ID@{ID}} \index{ID@{ID}!bsp\_ModBus\_Rx@{bsp\_ModBus\_Rx}} \doxysubsubsection{\texorpdfstring{ID}{ID}} {\footnotesize\ttfamily \mbox{\hyperlink{varint_8h_a92c50087ca0e64fa93fc59402c55f8ca}{u8}} bsp\+\_\+\+Mod\+Bus\+\_\+\+Rx\+::\+ID} 器件\+ID 在文件 \mbox{\hyperlink{bsp___mod_bus_8h_source}{bsp\+\_\+\+Mod\+Bus.\+h}} 第 \mbox{\hyperlink{bsp___mod_bus_8h_source_l00089}{89}} 行定义. \mbox{\Hypertarget{classbsp___mod_bus___rx_a8ca97f2e7b033faddbb1772f15d91d4d}\label{classbsp___mod_bus___rx_a8ca97f2e7b033faddbb1772f15d91d4d}} \index{bsp\_ModBus\_Rx@{bsp\_ModBus\_Rx}!InCoilDat@{InCoilDat}} \index{InCoilDat@{InCoilDat}!bsp\_ModBus\_Rx@{bsp\_ModBus\_Rx}} \doxysubsubsection{\texorpdfstring{InCoilDat}{InCoilDat}} {\footnotesize\ttfamily \mbox{\hyperlink{varint_8h_a92c50087ca0e64fa93fc59402c55f8ca}{u8}}$\ast$ bsp\+\_\+\+Mod\+Bus\+\_\+\+Rx\+::\+In\+Coil\+Dat} 在文件 \mbox{\hyperlink{bsp___mod_bus_8h_source}{bsp\+\_\+\+Mod\+Bus.\+h}} 第 \mbox{\hyperlink{bsp___mod_bus_8h_source_l00102}{102}} 行定义. \mbox{\Hypertarget{classbsp___mod_bus___rx_a22f49f0782c4580b0f582c27fbd758a3}\label{classbsp___mod_bus___rx_a22f49f0782c4580b0f582c27fbd758a3}} \index{bsp\_ModBus\_Rx@{bsp\_ModBus\_Rx}!InCoilMem@{InCoilMem}} \index{InCoilMem@{InCoilMem}!bsp\_ModBus\_Rx@{bsp\_ModBus\_Rx}} \doxysubsubsection{\texorpdfstring{InCoilMem}{InCoilMem}} {\footnotesize\ttfamily \mbox{\hyperlink{varint_8h_a92c50087ca0e64fa93fc59402c55f8ca}{u8}} bsp\+\_\+\+Mod\+Bus\+\_\+\+Rx\+::\+In\+Coil\+Mem} 在文件 \mbox{\hyperlink{bsp___mod_bus_8h_source}{bsp\+\_\+\+Mod\+Bus.\+h}} 第 \mbox{\hyperlink{bsp___mod_bus_8h_source_l00103}{103}} 行定义. \mbox{\Hypertarget{classbsp___mod_bus___rx_ab275dbfa83dd90eff0cbf0411dfe8e4a}\label{classbsp___mod_bus___rx_ab275dbfa83dd90eff0cbf0411dfe8e4a}} \index{bsp\_ModBus\_Rx@{bsp\_ModBus\_Rx}!InRegDat@{InRegDat}} \index{InRegDat@{InRegDat}!bsp\_ModBus\_Rx@{bsp\_ModBus\_Rx}} \doxysubsubsection{\texorpdfstring{InRegDat}{InRegDat}} {\footnotesize\ttfamily \mbox{\hyperlink{varint_8h_ace9d960e74685e2cd84b36132dbbf8aa}{u16}}$\ast$ bsp\+\_\+\+Mod\+Bus\+\_\+\+Rx\+::\+In\+Reg\+Dat} 在文件 \mbox{\hyperlink{bsp___mod_bus_8h_source}{bsp\+\_\+\+Mod\+Bus.\+h}} 第 \mbox{\hyperlink{bsp___mod_bus_8h_source_l00096}{96}} 行定义. \mbox{\Hypertarget{classbsp___mod_bus___rx_a37508047d184916eb7133a4ad8f10a6c}\label{classbsp___mod_bus___rx_a37508047d184916eb7133a4ad8f10a6c}} \index{bsp\_ModBus\_Rx@{bsp\_ModBus\_Rx}!InRegMem@{InRegMem}} \index{InRegMem@{InRegMem}!bsp\_ModBus\_Rx@{bsp\_ModBus\_Rx}} \doxysubsubsection{\texorpdfstring{InRegMem}{InRegMem}} {\footnotesize\ttfamily \mbox{\hyperlink{varint_8h_a92c50087ca0e64fa93fc59402c55f8ca}{u8}} bsp\+\_\+\+Mod\+Bus\+\_\+\+Rx\+::\+In\+Reg\+Mem} 在文件 \mbox{\hyperlink{bsp___mod_bus_8h_source}{bsp\+\_\+\+Mod\+Bus.\+h}} 第 \mbox{\hyperlink{bsp___mod_bus_8h_source_l00097}{97}} 行定义. \mbox{\Hypertarget{classbsp___mod_bus___rx_a091cc0733eb4aa6b06c10afdbfd46b7f}\label{classbsp___mod_bus___rx_a091cc0733eb4aa6b06c10afdbfd46b7f}} \index{bsp\_ModBus\_Rx@{bsp\_ModBus\_Rx}!KeepRegDat@{KeepRegDat}} \index{KeepRegDat@{KeepRegDat}!bsp\_ModBus\_Rx@{bsp\_ModBus\_Rx}} \doxysubsubsection{\texorpdfstring{KeepRegDat}{KeepRegDat}} {\footnotesize\ttfamily \mbox{\hyperlink{varint_8h_ace9d960e74685e2cd84b36132dbbf8aa}{u16}}$\ast$ bsp\+\_\+\+Mod\+Bus\+\_\+\+Rx\+::\+Keep\+Reg\+Dat} 在文件 \mbox{\hyperlink{bsp___mod_bus_8h_source}{bsp\+\_\+\+Mod\+Bus.\+h}} 第 \mbox{\hyperlink{bsp___mod_bus_8h_source_l00093}{93}} 行定义. \mbox{\Hypertarget{classbsp___mod_bus___rx_a7622d0c8c56feb97d263f57115ef3f6a}\label{classbsp___mod_bus___rx_a7622d0c8c56feb97d263f57115ef3f6a}} \index{bsp\_ModBus\_Rx@{bsp\_ModBus\_Rx}!KeepRegMem@{KeepRegMem}} \index{KeepRegMem@{KeepRegMem}!bsp\_ModBus\_Rx@{bsp\_ModBus\_Rx}} \doxysubsubsection{\texorpdfstring{KeepRegMem}{KeepRegMem}} {\footnotesize\ttfamily \mbox{\hyperlink{varint_8h_a92c50087ca0e64fa93fc59402c55f8ca}{u8}} bsp\+\_\+\+Mod\+Bus\+\_\+\+Rx\+::\+Keep\+Reg\+Mem} 在文件 \mbox{\hyperlink{bsp___mod_bus_8h_source}{bsp\+\_\+\+Mod\+Bus.\+h}} 第 \mbox{\hyperlink{bsp___mod_bus_8h_source_l00094}{94}} 行定义. \mbox{\Hypertarget{classbsp___mod_bus___rx_a6612d15d148b4944662851bd8fabae04}\label{classbsp___mod_bus___rx_a6612d15d148b4944662851bd8fabae04}} \index{bsp\_ModBus\_Rx@{bsp\_ModBus\_Rx}!OutCoilDat@{OutCoilDat}} \index{OutCoilDat@{OutCoilDat}!bsp\_ModBus\_Rx@{bsp\_ModBus\_Rx}} \doxysubsubsection{\texorpdfstring{OutCoilDat}{OutCoilDat}} {\footnotesize\ttfamily \mbox{\hyperlink{varint_8h_a92c50087ca0e64fa93fc59402c55f8ca}{u8}}$\ast$ bsp\+\_\+\+Mod\+Bus\+\_\+\+Rx\+::\+Out\+Coil\+Dat} 在文件 \mbox{\hyperlink{bsp___mod_bus_8h_source}{bsp\+\_\+\+Mod\+Bus.\+h}} 第 \mbox{\hyperlink{bsp___mod_bus_8h_source_l00099}{99}} 行定义. \mbox{\Hypertarget{classbsp___mod_bus___rx_a062f82edfe722d8cb783b67a5a085bee}\label{classbsp___mod_bus___rx_a062f82edfe722d8cb783b67a5a085bee}} \index{bsp\_ModBus\_Rx@{bsp\_ModBus\_Rx}!OutCoilMem@{OutCoilMem}} \index{OutCoilMem@{OutCoilMem}!bsp\_ModBus\_Rx@{bsp\_ModBus\_Rx}} \doxysubsubsection{\texorpdfstring{OutCoilMem}{OutCoilMem}} {\footnotesize\ttfamily \mbox{\hyperlink{varint_8h_a92c50087ca0e64fa93fc59402c55f8ca}{u8}} bsp\+\_\+\+Mod\+Bus\+\_\+\+Rx\+::\+Out\+Coil\+Mem} 在文件 \mbox{\hyperlink{bsp___mod_bus_8h_source}{bsp\+\_\+\+Mod\+Bus.\+h}} 第 \mbox{\hyperlink{bsp___mod_bus_8h_source_l00100}{100}} 行定义. 该类的文档由以下文件生成\+:\begin{DoxyCompactItemize} \item D\+:/gitt/\+Microchip\+For32/bsp\+\_\+\+Device/bsp\+\_\+\+Mod\+Bus/\mbox{\hyperlink{bsp___mod_bus_8h}{bsp\+\_\+\+Mod\+Bus.\+h}}\item D\+:/gitt/\+Microchip\+For32/bsp\+\_\+\+Device/bsp\+\_\+\+Mod\+Bus/\mbox{\hyperlink{bsp___mod_bus_8cpp}{bsp\+\_\+\+Mod\+Bus.\+cpp}}\end{DoxyCompactItemize}