\hypertarget{classbsp___mod_bus___s_t_m32}{}\doxysection{bsp\+\_\+\+Mod\+Bus\+\_\+\+STM32类 参考} \label{classbsp___mod_bus___s_t_m32}\index{bsp\_ModBus\_STM32@{bsp\_ModBus\_STM32}} STM32用串口的\+Mod\+Bus发送器 {\ttfamily \#include $<$bsp\+\_\+\+Mod\+Bus\+\_\+\+STM32.\+h$>$} 类 bsp\+\_\+\+Mod\+Bus\+\_\+\+STM32 继承关系图\+:\nopagebreak \begin{figure}[H] \begin{center} \leavevmode \includegraphics[width=190pt]{classbsp___mod_bus___s_t_m32__inherit__graph} \end{center} \end{figure} bsp\+\_\+\+Mod\+Bus\+\_\+\+STM32 的协作图\+:\nopagebreak \begin{figure}[H] \begin{center} \leavevmode \includegraphics[width=190pt]{classbsp___mod_bus___s_t_m32__coll__graph} \end{center} \end{figure} \doxysubsection*{Public 成员函数} \begin{DoxyCompactItemize} \item \mbox{\hyperlink{classbsp___mod_bus___s_t_m32_a5ad770cac0532b9b5eb76c11ebef0435}{bsp\+\_\+\+Mod\+Bus\+\_\+\+STM32}} (UART\+\_\+\+Handle\+Type\+Def $\ast$\mbox{\hyperlink{classbsp___mod_bus___s_t_m32_a2f27c0f66492c3064f28698ce055039d}{huart}}, \mbox{\hyperlink{varint_8h_a92c50087ca0e64fa93fc59402c55f8ca}{u8}} \mbox{\hyperlink{classbsp___mod_bus___tx_a4ee454ddd116e2b608d9b35b02eee0e4}{ID}}, uint32\+\_\+t \mbox{\hyperlink{classbsp___mod_bus___s_t_m32_a41fc083e184c2f3a6e5225b2a8212347}{Timeout}}) \end{DoxyCompactItemize} \doxysubsection*{Protected 成员函数} \begin{DoxyCompactItemize} \item virtual void \mbox{\hyperlink{classbsp___mod_bus___s_t_m32_a3dda1f4a2a120c6a4482ff6d9d82f4e8}{Transmit}} (\mbox{\hyperlink{varint_8h_a92c50087ca0e64fa93fc59402c55f8ca}{u8}} $\ast$dat, \mbox{\hyperlink{varint_8h_ace9d960e74685e2cd84b36132dbbf8aa}{u16}} len) \end{DoxyCompactItemize} \doxysubsection*{Private 属性} \begin{DoxyCompactItemize} \item UART\+\_\+\+Handle\+Type\+Def $\ast$ \mbox{\hyperlink{classbsp___mod_bus___s_t_m32_a2f27c0f66492c3064f28698ce055039d}{huart}} \item uint32\+\_\+t \mbox{\hyperlink{classbsp___mod_bus___s_t_m32_a41fc083e184c2f3a6e5225b2a8212347}{Timeout}} \end{DoxyCompactItemize} \doxysubsection*{额外继承的成员函数} \doxysubsection{详细描述} STM32用串口的\+Mod\+Bus发送器 在文件 \mbox{\hyperlink{bsp___mod_bus___s_t_m32_8h_source}{bsp\+\_\+\+Mod\+Bus\+\_\+\+STM32.\+h}} 第 \mbox{\hyperlink{bsp___mod_bus___s_t_m32_8h_source_l00045}{45}} 行定义. \doxysubsection{构造及析构函数说明} \mbox{\Hypertarget{classbsp___mod_bus___s_t_m32_a5ad770cac0532b9b5eb76c11ebef0435}\label{classbsp___mod_bus___s_t_m32_a5ad770cac0532b9b5eb76c11ebef0435}} \index{bsp\_ModBus\_STM32@{bsp\_ModBus\_STM32}!bsp\_ModBus\_STM32@{bsp\_ModBus\_STM32}} \index{bsp\_ModBus\_STM32@{bsp\_ModBus\_STM32}!bsp\_ModBus\_STM32@{bsp\_ModBus\_STM32}} \doxysubsubsection{\texorpdfstring{bsp\_ModBus\_STM32()}{bsp\_ModBus\_STM32()}} {\footnotesize\ttfamily bsp\+\_\+\+Mod\+Bus\+\_\+\+STM32\+::bsp\+\_\+\+Mod\+Bus\+\_\+\+STM32 (\begin{DoxyParamCaption}\item[{UART\+\_\+\+Handle\+Type\+Def $\ast$}]{huart, }\item[{\mbox{\hyperlink{varint_8h_a92c50087ca0e64fa93fc59402c55f8ca}{u8}}}]{ID, }\item[{uint32\+\_\+t}]{Timeout }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}} 在文件 \mbox{\hyperlink{bsp___mod_bus___s_t_m32_8h_source}{bsp\+\_\+\+Mod\+Bus\+\_\+\+STM32.\+h}} 第 \mbox{\hyperlink{bsp___mod_bus___s_t_m32_8h_source_l00047}{47}} 行定义. \doxysubsection{成员函数说明} \mbox{\Hypertarget{classbsp___mod_bus___s_t_m32_a3dda1f4a2a120c6a4482ff6d9d82f4e8}\label{classbsp___mod_bus___s_t_m32_a3dda1f4a2a120c6a4482ff6d9d82f4e8}} \index{bsp\_ModBus\_STM32@{bsp\_ModBus\_STM32}!Transmit@{Transmit}} \index{Transmit@{Transmit}!bsp\_ModBus\_STM32@{bsp\_ModBus\_STM32}} \doxysubsubsection{\texorpdfstring{Transmit()}{Transmit()}} {\footnotesize\ttfamily virtual void bsp\+\_\+\+Mod\+Bus\+\_\+\+STM32\+::\+Transmit (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{varint_8h_a92c50087ca0e64fa93fc59402c55f8ca}{u8}} $\ast$}]{dat, }\item[{\mbox{\hyperlink{varint_8h_ace9d960e74685e2cd84b36132dbbf8aa}{u16}}}]{len }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [protected]}, {\ttfamily [virtual]}} 实现了 \mbox{\hyperlink{classbsp___mod_bus___tx_ac017f6145ba6f87c69a16510f868dcc2}{bsp\+\_\+\+Mod\+Bus\+\_\+\+Tx}}. 在文件 \mbox{\hyperlink{bsp___mod_bus___s_t_m32_8h_source}{bsp\+\_\+\+Mod\+Bus\+\_\+\+STM32.\+h}} 第 \mbox{\hyperlink{bsp___mod_bus___s_t_m32_8h_source_l00051}{51}} 行定义. \doxysubsection{类成员变量说明} \mbox{\Hypertarget{classbsp___mod_bus___s_t_m32_a2f27c0f66492c3064f28698ce055039d}\label{classbsp___mod_bus___s_t_m32_a2f27c0f66492c3064f28698ce055039d}} \index{bsp\_ModBus\_STM32@{bsp\_ModBus\_STM32}!huart@{huart}} \index{huart@{huart}!bsp\_ModBus\_STM32@{bsp\_ModBus\_STM32}} \doxysubsubsection{\texorpdfstring{huart}{huart}} {\footnotesize\ttfamily UART\+\_\+\+Handle\+Type\+Def$\ast$ bsp\+\_\+\+Mod\+Bus\+\_\+\+STM32\+::huart\hspace{0.3cm}{\ttfamily [private]}} 在文件 \mbox{\hyperlink{bsp___mod_bus___s_t_m32_8h_source}{bsp\+\_\+\+Mod\+Bus\+\_\+\+STM32.\+h}} 第 \mbox{\hyperlink{bsp___mod_bus___s_t_m32_8h_source_l00054}{54}} 行定义. \mbox{\Hypertarget{classbsp___mod_bus___s_t_m32_a41fc083e184c2f3a6e5225b2a8212347}\label{classbsp___mod_bus___s_t_m32_a41fc083e184c2f3a6e5225b2a8212347}} \index{bsp\_ModBus\_STM32@{bsp\_ModBus\_STM32}!Timeout@{Timeout}} \index{Timeout@{Timeout}!bsp\_ModBus\_STM32@{bsp\_ModBus\_STM32}} \doxysubsubsection{\texorpdfstring{Timeout}{Timeout}} {\footnotesize\ttfamily uint32\+\_\+t bsp\+\_\+\+Mod\+Bus\+\_\+\+STM32\+::\+Timeout\hspace{0.3cm}{\ttfamily [private]}} 在文件 \mbox{\hyperlink{bsp___mod_bus___s_t_m32_8h_source}{bsp\+\_\+\+Mod\+Bus\+\_\+\+STM32.\+h}} 第 \mbox{\hyperlink{bsp___mod_bus___s_t_m32_8h_source_l00055}{55}} 行定义. 该类的文档由以下文件生成\+:\begin{DoxyCompactItemize} \item D\+:/gitt/\+Microchip\+For32/bsp\+\_\+\+Device/\mbox{\hyperlink{bsp___mod_bus___s_t_m32_8h}{bsp\+\_\+\+Mod\+Bus\+\_\+\+STM32.\+h}}\end{DoxyCompactItemize}