\doxysection{MB\+\_\+\+Diagnostics\+Info\+Type\+Def Struct Reference}
\hypertarget{struct_m_b___diagnostics_info_type_def}{}\label{struct_m_b___diagnostics_info_type_def}\index{MB\_DiagnosticsInfoTypeDef@{MB\_DiagnosticsInfoTypeDef}}


Структура со диагностической информацией устройства модбас  




{\ttfamily \#include $<$modbus\+\_\+diag.\+h$>$}

\doxysubsubsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
uint16\+\_\+t \mbox{\hyperlink{struct_m_b___diagnostics_info_type_def_a9bbda0c24217f018af56f7bcb46515b1}{Diagnostic\+Register}}
\begin{DoxyCompactList}\small\item\em Регистр диагностики. 0 бит -\/ overrun. Остальное заполняется пользователем \end{DoxyCompactList}\item 
\mbox{\hyperlink{group___m_o_d_b_u_s___d_i_a_g_ga9d139168bb88bfa1ba1597eeff9ebf6a}{MB\+\_\+\+Device\+Mode\+Type\+Def}} \mbox{\hyperlink{struct_m_b___diagnostics_info_type_def_af26e2a0b62c5f2926db63e2125bddc3a}{Device\+Mode}}
\begin{DoxyCompactList}\small\item\em Режим устройства -\/ NORMAL/\+LISTEN\+\_\+\+ONLY. \end{DoxyCompactList}\item 
\Hypertarget{struct_m_b___diagnostics_info_type_def_a1677316f7dff33b1785a139fe2cb3643}\label{struct_m_b___diagnostics_info_type_def_a1677316f7dff33b1785a139fe2cb3643} 
\begin{tabbing}
xx\=xx\=xx\=xx\=xx\=xx\=xx\=xx\=xx\=\kill
struct \{\\
\>uint16\_t \mbox{\hyperlink{struct_m_b___diagnostics_info_type_def_a0630515f367a8efd8a17a6335e073a59}{BusMessage}}\\
\>\>{\em Все принятые фреймы modbus на линии (с всех адресов) }\\
\>uint16\_t \mbox{\hyperlink{struct_m_b___diagnostics_info_type_def_aed6ee3bf2286f07a709e885b88bd4439}{BusCommunicationErr}}\\
\>\>{\em Ошибки при приеме фрейма modbus. }\\
\>uint16\_t \mbox{\hyperlink{struct_m_b___diagnostics_info_type_def_a95433ac4dbdb75804b1cc04b736b9791}{BusExceptionErr}}\\
\>\>{\em Ошибки при обработке фрейма modbus. }\\
\>uint16\_t \mbox{\hyperlink{struct_m_b___diagnostics_info_type_def_a57b66f80d2b787eb08e73a43d5550efa}{SlaveMessage}}\\
\>\>{\em Принятые сообщения (только запросы на адрес данного устройства) }\\
\>uint16\_t \mbox{\hyperlink{struct_m_b___diagnostics_info_type_def_ad2f014e8e289ad4241a53bc1ad83f411}{SlaveNoResponse}}\\
\>\>{\em Счетчик сколько мы раз не ответили на запрос }\\
\>uint16\_t \mbox{\hyperlink{struct_m_b___diagnostics_info_type_def_a944999cfdaffab608a70b02e1421dd75}{SlaveNAK}}\\
\>\>{\em Счетчик аномальной ошибки при обработке фрейма }\\
\>uint16\_t \mbox{\hyperlink{struct_m_b___diagnostics_info_type_def_a16f3410ce798eb9693e849de1c5d5556}{SlaveBusy}}\\
\>\>{\em Счетчик принятых запросов когда устройство занято. Здесь не работает: из-\/за архитектуры отследить невозможно }\\
\>uint16\_t \mbox{\hyperlink{struct_m_b___diagnostics_info_type_def_a6d9ae4feaf8f1e25b4a10589b417da4e}{BusCharacterOverrun}}\\
\>\>{\em Overrun Error. }\\
\} {\bfseries Counters}\\

\end{tabbing}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Структура со диагностической информацией устройства модбас 

Definition at line \mbox{\hyperlink{modbus__diag_8h_source_l00038}{38}} of file \mbox{\hyperlink{modbus__diag_8h_source}{modbus\+\_\+diag.\+h}}.



\label{doc-variable-members}
\Hypertarget{struct_m_b___diagnostics_info_type_def_doc-variable-members}
\doxysubsection{Member Data Documentation}
\Hypertarget{struct_m_b___diagnostics_info_type_def_a9bbda0c24217f018af56f7bcb46515b1}\index{MB\_DiagnosticsInfoTypeDef@{MB\_DiagnosticsInfoTypeDef}!DiagnosticRegister@{DiagnosticRegister}}
\index{DiagnosticRegister@{DiagnosticRegister}!MB\_DiagnosticsInfoTypeDef@{MB\_DiagnosticsInfoTypeDef}}
\doxysubsubsection{\texorpdfstring{DiagnosticRegister}{DiagnosticRegister}}
{\footnotesize\ttfamily \label{struct_m_b___diagnostics_info_type_def_a9bbda0c24217f018af56f7bcb46515b1} 
uint16\+\_\+t MB\+\_\+\+Diagnostics\+Info\+Type\+Def\+::\+Diagnostic\+Register}



Регистр диагностики. 0 бит -\/ overrun. Остальное заполняется пользователем 



Definition at line \mbox{\hyperlink{modbus__diag_8h_source_l00040}{40}} of file \mbox{\hyperlink{modbus__diag_8h_source}{modbus\+\_\+diag.\+h}}.

\Hypertarget{struct_m_b___diagnostics_info_type_def_af26e2a0b62c5f2926db63e2125bddc3a}\index{MB\_DiagnosticsInfoTypeDef@{MB\_DiagnosticsInfoTypeDef}!DeviceMode@{DeviceMode}}
\index{DeviceMode@{DeviceMode}!MB\_DiagnosticsInfoTypeDef@{MB\_DiagnosticsInfoTypeDef}}
\doxysubsubsection{\texorpdfstring{DeviceMode}{DeviceMode}}
{\footnotesize\ttfamily \label{struct_m_b___diagnostics_info_type_def_af26e2a0b62c5f2926db63e2125bddc3a} 
\mbox{\hyperlink{group___m_o_d_b_u_s___d_i_a_g_ga9d139168bb88bfa1ba1597eeff9ebf6a}{MB\+\_\+\+Device\+Mode\+Type\+Def}} MB\+\_\+\+Diagnostics\+Info\+Type\+Def\+::\+Device\+Mode}



Режим устройства -\/ NORMAL/\+LISTEN\+\_\+\+ONLY. 



Definition at line \mbox{\hyperlink{modbus__diag_8h_source_l00041}{41}} of file \mbox{\hyperlink{modbus__diag_8h_source}{modbus\+\_\+diag.\+h}}.

\Hypertarget{struct_m_b___diagnostics_info_type_def_a0630515f367a8efd8a17a6335e073a59}\index{MB\_DiagnosticsInfoTypeDef@{MB\_DiagnosticsInfoTypeDef}!BusMessage@{BusMessage}}
\index{BusMessage@{BusMessage}!MB\_DiagnosticsInfoTypeDef@{MB\_DiagnosticsInfoTypeDef}}
\doxysubsubsection{\texorpdfstring{BusMessage}{BusMessage}}
{\footnotesize\ttfamily \label{struct_m_b___diagnostics_info_type_def_a0630515f367a8efd8a17a6335e073a59} 
uint16\+\_\+t MB\+\_\+\+Diagnostics\+Info\+Type\+Def\+::\+Bus\+Message}



Все принятые фреймы modbus на линии (с всех адресов) 



Definition at line \mbox{\hyperlink{modbus__diag_8h_source_l00044}{44}} of file \mbox{\hyperlink{modbus__diag_8h_source}{modbus\+\_\+diag.\+h}}.

\Hypertarget{struct_m_b___diagnostics_info_type_def_aed6ee3bf2286f07a709e885b88bd4439}\index{MB\_DiagnosticsInfoTypeDef@{MB\_DiagnosticsInfoTypeDef}!BusCommunicationErr@{BusCommunicationErr}}
\index{BusCommunicationErr@{BusCommunicationErr}!MB\_DiagnosticsInfoTypeDef@{MB\_DiagnosticsInfoTypeDef}}
\doxysubsubsection{\texorpdfstring{BusCommunicationErr}{BusCommunicationErr}}
{\footnotesize\ttfamily \label{struct_m_b___diagnostics_info_type_def_aed6ee3bf2286f07a709e885b88bd4439} 
uint16\+\_\+t MB\+\_\+\+Diagnostics\+Info\+Type\+Def\+::\+Bus\+Communication\+Err}



Ошибки при приеме фрейма modbus. 



Definition at line \mbox{\hyperlink{modbus__diag_8h_source_l00045}{45}} of file \mbox{\hyperlink{modbus__diag_8h_source}{modbus\+\_\+diag.\+h}}.

\Hypertarget{struct_m_b___diagnostics_info_type_def_a95433ac4dbdb75804b1cc04b736b9791}\index{MB\_DiagnosticsInfoTypeDef@{MB\_DiagnosticsInfoTypeDef}!BusExceptionErr@{BusExceptionErr}}
\index{BusExceptionErr@{BusExceptionErr}!MB\_DiagnosticsInfoTypeDef@{MB\_DiagnosticsInfoTypeDef}}
\doxysubsubsection{\texorpdfstring{BusExceptionErr}{BusExceptionErr}}
{\footnotesize\ttfamily \label{struct_m_b___diagnostics_info_type_def_a95433ac4dbdb75804b1cc04b736b9791} 
uint16\+\_\+t MB\+\_\+\+Diagnostics\+Info\+Type\+Def\+::\+Bus\+Exception\+Err}



Ошибки при обработке фрейма modbus. 



Definition at line \mbox{\hyperlink{modbus__diag_8h_source_l00046}{46}} of file \mbox{\hyperlink{modbus__diag_8h_source}{modbus\+\_\+diag.\+h}}.

\Hypertarget{struct_m_b___diagnostics_info_type_def_a57b66f80d2b787eb08e73a43d5550efa}\index{MB\_DiagnosticsInfoTypeDef@{MB\_DiagnosticsInfoTypeDef}!SlaveMessage@{SlaveMessage}}
\index{SlaveMessage@{SlaveMessage}!MB\_DiagnosticsInfoTypeDef@{MB\_DiagnosticsInfoTypeDef}}
\doxysubsubsection{\texorpdfstring{SlaveMessage}{SlaveMessage}}
{\footnotesize\ttfamily \label{struct_m_b___diagnostics_info_type_def_a57b66f80d2b787eb08e73a43d5550efa} 
uint16\+\_\+t MB\+\_\+\+Diagnostics\+Info\+Type\+Def\+::\+Slave\+Message}



Принятые сообщения (только запросы на адрес данного устройства) 



Definition at line \mbox{\hyperlink{modbus__diag_8h_source_l00047}{47}} of file \mbox{\hyperlink{modbus__diag_8h_source}{modbus\+\_\+diag.\+h}}.

\Hypertarget{struct_m_b___diagnostics_info_type_def_ad2f014e8e289ad4241a53bc1ad83f411}\index{MB\_DiagnosticsInfoTypeDef@{MB\_DiagnosticsInfoTypeDef}!SlaveNoResponse@{SlaveNoResponse}}
\index{SlaveNoResponse@{SlaveNoResponse}!MB\_DiagnosticsInfoTypeDef@{MB\_DiagnosticsInfoTypeDef}}
\doxysubsubsection{\texorpdfstring{SlaveNoResponse}{SlaveNoResponse}}
{\footnotesize\ttfamily \label{struct_m_b___diagnostics_info_type_def_ad2f014e8e289ad4241a53bc1ad83f411} 
uint16\+\_\+t MB\+\_\+\+Diagnostics\+Info\+Type\+Def\+::\+Slave\+No\+Response}



Счетчик сколько мы раз не ответили на запрос 



Definition at line \mbox{\hyperlink{modbus__diag_8h_source_l00048}{48}} of file \mbox{\hyperlink{modbus__diag_8h_source}{modbus\+\_\+diag.\+h}}.

\Hypertarget{struct_m_b___diagnostics_info_type_def_a944999cfdaffab608a70b02e1421dd75}\index{MB\_DiagnosticsInfoTypeDef@{MB\_DiagnosticsInfoTypeDef}!SlaveNAK@{SlaveNAK}}
\index{SlaveNAK@{SlaveNAK}!MB\_DiagnosticsInfoTypeDef@{MB\_DiagnosticsInfoTypeDef}}
\doxysubsubsection{\texorpdfstring{SlaveNAK}{SlaveNAK}}
{\footnotesize\ttfamily \label{struct_m_b___diagnostics_info_type_def_a944999cfdaffab608a70b02e1421dd75} 
uint16\+\_\+t MB\+\_\+\+Diagnostics\+Info\+Type\+Def\+::\+Slave\+NAK}



Счетчик аномальной ошибки при обработке фрейма 



Definition at line \mbox{\hyperlink{modbus__diag_8h_source_l00049}{49}} of file \mbox{\hyperlink{modbus__diag_8h_source}{modbus\+\_\+diag.\+h}}.

\Hypertarget{struct_m_b___diagnostics_info_type_def_a16f3410ce798eb9693e849de1c5d5556}\index{MB\_DiagnosticsInfoTypeDef@{MB\_DiagnosticsInfoTypeDef}!SlaveBusy@{SlaveBusy}}
\index{SlaveBusy@{SlaveBusy}!MB\_DiagnosticsInfoTypeDef@{MB\_DiagnosticsInfoTypeDef}}
\doxysubsubsection{\texorpdfstring{SlaveBusy}{SlaveBusy}}
{\footnotesize\ttfamily \label{struct_m_b___diagnostics_info_type_def_a16f3410ce798eb9693e849de1c5d5556} 
uint16\+\_\+t MB\+\_\+\+Diagnostics\+Info\+Type\+Def\+::\+Slave\+Busy}



Счетчик принятых запросов когда устройство занято. Здесь не работает\+: из-\/за архитектуры отследить невозможно 



Definition at line \mbox{\hyperlink{modbus__diag_8h_source_l00050}{50}} of file \mbox{\hyperlink{modbus__diag_8h_source}{modbus\+\_\+diag.\+h}}.

\Hypertarget{struct_m_b___diagnostics_info_type_def_a6d9ae4feaf8f1e25b4a10589b417da4e}\index{MB\_DiagnosticsInfoTypeDef@{MB\_DiagnosticsInfoTypeDef}!BusCharacterOverrun@{BusCharacterOverrun}}
\index{BusCharacterOverrun@{BusCharacterOverrun}!MB\_DiagnosticsInfoTypeDef@{MB\_DiagnosticsInfoTypeDef}}
\doxysubsubsection{\texorpdfstring{BusCharacterOverrun}{BusCharacterOverrun}}
{\footnotesize\ttfamily \label{struct_m_b___diagnostics_info_type_def_a6d9ae4feaf8f1e25b4a10589b417da4e} 
uint16\+\_\+t MB\+\_\+\+Diagnostics\+Info\+Type\+Def\+::\+Bus\+Character\+Overrun}



Overrun Error. 



Definition at line \mbox{\hyperlink{modbus__diag_8h_source_l00051}{51}} of file \mbox{\hyperlink{modbus__diag_8h_source}{modbus\+\_\+diag.\+h}}.



The documentation for this struct was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
E\+:/.\+WORK/\+STM32/\+Diod\+\_\+\+Test/diode\+\_\+tester/\+Core/\+Modbus/\+Inc/\mbox{\hyperlink{modbus__diag_8h}{modbus\+\_\+diag.\+h}}\end{DoxyCompactItemize}
