\doxysection{modbus\+\_\+diag.\+h} \hypertarget{modbus__diag_8h_source}{}\label{modbus__diag_8h_source}\index{E:/.WORK/STM32/Diod\_Test/diode\_tester/Core/Modbus/Inc/modbus\_diag.h@{E:/.WORK/STM32/Diod\_Test/diode\_tester/Core/Modbus/Inc/modbus\_diag.h}} \mbox{\hyperlink{modbus__diag_8h}{Go to the documentation of this file.}} \begin{DoxyCode}{0} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00001}00001\ \textcolor{comment}{/**}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00002}00002\ \textcolor{comment}{*******************************************************************************}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00003}00003\ \textcolor{comment}{*\ @file\ modbus\_diag.h}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00004}00004\ \textcolor{comment}{*\ @brief\ Диагностика\ устройства\ Modbus}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00005}00005\ \textcolor{comment}{*******************************************************************************}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00006}00006\ \textcolor{comment}{@addtogroup\ MODBUS\_DIAG\ Diagnostics\ Tools}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00007}00007\ \textcolor{comment}{@ingroup\ MODBUS\_INTERNAL}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00008}00008\ \textcolor{comment}{@brief\ Функции\ для\ работы\ с\ диагностикой}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00009}00009\ \textcolor{comment}{*******************************************************************************}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00010}00010\ \textcolor{comment}{*\ @details}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00011}00011\ \textcolor{comment}{Модуль\ реализации\ Diagnostics\ (Serial\ Line\ only)\ (0x08):}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00012}00012\ \textcolor{comment}{-\/\ Полная\ поддержка\ всех\ подфункций\ диагностики}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00013}00013\ \textcolor{comment}{-\/\ Возможность\ выставить/сбросить\ любой\ бит\ в\ диагностическом\ регистре}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00014}00014\ \textcolor{comment}{-\/\ Сбор\ статистики\ работы\ устройства}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00015}00015\ \textcolor{comment}{-\/\ Управление\ режимами\ работы}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00016}00016\ \textcolor{comment}{******************************************************************************/}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00017}00017\ \textcolor{preprocessor}{\#ifndef\ \_\_MODBUS\_DIAG\_H\_}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00018}00018\ \textcolor{preprocessor}{\#define\ \_\_MODBUS\_DIAG\_H\_\ }} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00019}00019\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{modbus__core_8h}{modbus\_core.h}}"{}}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00020}00020\ \textcolor{comment}{}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00021}00021\ \textcolor{comment}{/////////////////////////////////////////////////////////////////////}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00022}00022\ \textcolor{comment}{/////////////////-\/-\/-\/DEVICE\ DIAGNOSTICS\ DEFINES-\/-\/-\/////////////////////}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00023}00023\ \textcolor{comment}{}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00024}00024\ \textcolor{comment}{/**}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00025}00025\ \textcolor{comment}{\ \ *\ @addtogroup\ MODBUS\_DIAG}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00026}00026\ \textcolor{comment}{\ \ *\ @\{}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00027}00027\ \textcolor{comment}{\ \ */}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00028}00028\ \ \ \textcolor{comment}{}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00029}00029\ \textcolor{comment}{/**\ @brief\ Режимы\ работы\ устройства\ */}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00030}\mbox{\hyperlink{group___m_o_d_b_u_s___d_i_a_g_ga9d139168bb88bfa1ba1597eeff9ebf6a}{00030}}\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{enum}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00031}00031\ \{} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00032}00032\ \ \ MODBUS\_NORMAL\_MODE\ =\ 0,} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00033}00033\ \ \ MODBUS\_LISTEN\_ONLY\_MODE\ =\ 1} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00034}00034\ \}\ \mbox{\hyperlink{group___m_o_d_b_u_s___d_i_a_g_ga9d139168bb88bfa1ba1597eeff9ebf6a}{MB\_DeviceModeTypeDef}};} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00035}00035\ } \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00036}00036\ \textcolor{comment}{}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00037}00037\ \textcolor{comment}{/**\ @brief\ Структура\ со\ диагностической\ информацией\ устройства\ модбас\ */}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00038}\mbox{\hyperlink{struct_m_b___diagnostics_info_type_def}{00038}}\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00039}00039\ \{} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00040}\mbox{\hyperlink{struct_m_b___diagnostics_info_type_def_a9bbda0c24217f018af56f7bcb46515b1}{00040}}\ \ \ uint16\_t\ \mbox{\hyperlink{struct_m_b___diagnostics_info_type_def_a9bbda0c24217f018af56f7bcb46515b1}{DiagnosticRegister}};\ \ \ \ \textcolor{comment}{///<\ Регистр\ диагностики.\ 0\ бит\ -\/\ overrun.\ Остальное\ заполняется\ пользователем}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00041}\mbox{\hyperlink{struct_m_b___diagnostics_info_type_def_af26e2a0b62c5f2926db63e2125bddc3a}{00041}}\ \ \ \mbox{\hyperlink{group___m_o_d_b_u_s___d_i_a_g_ga9d139168bb88bfa1ba1597eeff9ebf6a}{MB\_DeviceModeTypeDef}}\ \mbox{\hyperlink{struct_m_b___diagnostics_info_type_def_af26e2a0b62c5f2926db63e2125bddc3a}{DeviceMode}};\textcolor{comment}{///<\ Режим\ устройства\ -\/\ NORMAL/LISTEN\_ONLY}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00042}00042\ \ \ \textcolor{keyword}{struct}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00043}00043\ \ \ \{} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00044}\mbox{\hyperlink{struct_m_b___diagnostics_info_type_def_a0630515f367a8efd8a17a6335e073a59}{00044}}\ \ \ \ \ uint16\_t\ \mbox{\hyperlink{struct_m_b___diagnostics_info_type_def_a0630515f367a8efd8a17a6335e073a59}{BusMessage}};\ \ \ \ \ \ \ \ \ \ \textcolor{comment}{///<\ Все\ принятые\ фреймы\ modbus\ на\ линии\ (с\ всех\ адресов)}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00045}\mbox{\hyperlink{struct_m_b___diagnostics_info_type_def_aed6ee3bf2286f07a709e885b88bd4439}{00045}}\ \ \ \ \ uint16\_t\ \mbox{\hyperlink{struct_m_b___diagnostics_info_type_def_aed6ee3bf2286f07a709e885b88bd4439}{BusCommunicationErr}};\ \textcolor{comment}{///<\ Ошибки\ при\ приеме\ фрейма\ modbus}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00046}\mbox{\hyperlink{struct_m_b___diagnostics_info_type_def_a95433ac4dbdb75804b1cc04b736b9791}{00046}}\ \ \ \ \ uint16\_t\ \mbox{\hyperlink{struct_m_b___diagnostics_info_type_def_a95433ac4dbdb75804b1cc04b736b9791}{BusExceptionErr}};\ \ \ \ \ \textcolor{comment}{///<\ Ошибки\ при\ обработке\ фрейма\ modbus}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00047}\mbox{\hyperlink{struct_m_b___diagnostics_info_type_def_a57b66f80d2b787eb08e73a43d5550efa}{00047}}\ \ \ \ \ uint16\_t\ \mbox{\hyperlink{struct_m_b___diagnostics_info_type_def_a57b66f80d2b787eb08e73a43d5550efa}{SlaveMessage}};\ \ \ \ \ \ \ \ \textcolor{comment}{///<\ Принятые\ сообщения\ (только\ запросы\ на\ адрес\ данного\ устройства)}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00048}\mbox{\hyperlink{struct_m_b___diagnostics_info_type_def_ad2f014e8e289ad4241a53bc1ad83f411}{00048}}\ \ \ \ \ uint16\_t\ \mbox{\hyperlink{struct_m_b___diagnostics_info_type_def_ad2f014e8e289ad4241a53bc1ad83f411}{SlaveNoResponse}};\ \ \ \ \ \textcolor{comment}{///<\ Счетчик\ сколько\ мы\ раз\ не\ ответили\ на\ запрос\ }} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00049}\mbox{\hyperlink{struct_m_b___diagnostics_info_type_def_a944999cfdaffab608a70b02e1421dd75}{00049}}\ \ \ \ \ uint16\_t\ \mbox{\hyperlink{struct_m_b___diagnostics_info_type_def_a944999cfdaffab608a70b02e1421dd75}{SlaveNAK}};\ \ \ \ \ \ \ \ \ \ \ \ \textcolor{comment}{///<\ Счетчик\ аномальной\ ошибки\ при\ обработке\ фрейма}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00050}\mbox{\hyperlink{struct_m_b___diagnostics_info_type_def_a16f3410ce798eb9693e849de1c5d5556}{00050}}\ \ \ \ \ uint16\_t\ \mbox{\hyperlink{struct_m_b___diagnostics_info_type_def_a16f3410ce798eb9693e849de1c5d5556}{SlaveBusy}};\ \ \ \ \ \ \ \ \ \ \ \textcolor{comment}{///<\ Счетчик\ принятых\ запросов\ когда\ устройство\ занято.\ Здесь\ не\ работает:\ из-\/за\ архитектуры\ отследить\ невозможно}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00051}\mbox{\hyperlink{struct_m_b___diagnostics_info_type_def_a6d9ae4feaf8f1e25b4a10589b417da4e}{00051}}\ \ \ \ \ uint16\_t\ \mbox{\hyperlink{struct_m_b___diagnostics_info_type_def_a6d9ae4feaf8f1e25b4a10589b417da4e}{BusCharacterOverrun}};\ \textcolor{comment}{///<\ Overrun\ Error}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00052}00052\ \ \ \}\ Counters;} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00053}00053\ \}\ \mbox{\hyperlink{struct_m_b___diagnostics_info_type_def}{MB\_DiagnosticsInfoTypeDef}};} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00054}00054\ } \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00055}00055\ \textcolor{keyword}{extern}\ \mbox{\hyperlink{struct_m_b___diagnostics_info_type_def}{MB\_DiagnosticsInfoTypeDef}}\ \mbox{\hyperlink{group___m_o_d_b_u_s___d_i_a_g_ga4ba6111ac80e342396f9703239323936}{MB\_DIAG}};} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00056}00056\ \textcolor{comment}{}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00057}00057\ \textcolor{comment}{/////////////////-\/-\/-\/DEVICE\ DIAGNOSTICS\ DEFINES-\/-\/-\/////////////////////}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00058}00058\ \textcolor{comment}{}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00059}00059\ \textcolor{comment}{/////////////////////////////////////////////////////////////////////}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00060}00060\ \textcolor{comment}{/////////////////////////-\/-\/-\/FUNCTIONS-\/-\/-\//////////////////////////////}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00061}00061\ } \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00062}00062\ \textcolor{comment}{/*\ Инициализация\ диагностических\ счетчиков\ */}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00063}00063\ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{group___m_o_d_b_u_s___d_i_a_g_ga9b61a6d4139bac318868e93f03cd82c7}{MB\_DiagnosticsInit}}(\textcolor{keywordtype}{void});} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00064}00064\ \textcolor{comment}{}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00065}00065\ \textcolor{comment}{/**\ MODBUS\_DIAG}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00066}00066\ \textcolor{comment}{\ \ *\ @\}\ }} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00067}00067\ \textcolor{comment}{\ \ */}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00068}00068\ } \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00069}00069\ } \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00070}00070\ } \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00071}00071\ } \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00072}00072\ } \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00073}00073\ } \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00074}00074\ } \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00075}00075\ \textcolor{comment}{}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00076}00076\ \textcolor{comment}{/**\ }} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00077}00077\ \textcolor{comment}{*\ @addtogroup\ MODBUS\_DATA\_ACCESS\_FUNCTIONS}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00078}00078\ \textcolor{comment}{@\{}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00079}00079\ \textcolor{comment}{*/}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00080}00080\ } \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00081}00081\ \textcolor{comment}{/*\ Выставить\ бит\ в\ регистре\ диагностике\ */}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00082}00082\ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{group___m_o_d_b_u_s___d_a_t_a___a_c_c_e_s_s___f_u_n_c_t_i_o_n_s_gab1237f28e2db2cd2e8a93b31cd9a61be}{MB\_Diagnostics\_WriteBit}}(\textcolor{keywordtype}{int}\ bit\_num,\ \textcolor{keywordtype}{int}\ bit\_state);} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00083}00083\ \textcolor{comment}{/*ь\ Прочитать\ состояние\ бита\ диагностического\ регистра\ */}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00084}00084\ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{group___m_o_d_b_u_s___d_a_t_a___a_c_c_e_s_s___f_u_n_c_t_i_o_n_s_ga5588ddb15ee2580e7659701e5e671e8f}{MB\_Diagnostics\_GetBit}}(\textcolor{keywordtype}{int}\ bit\_num);} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00085}00085\ \textcolor{comment}{/*\ Получение\ текущего\ режима\ устройства\ */}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00086}00086\ \mbox{\hyperlink{group___m_o_d_b_u_s___d_i_a_g_ga9d139168bb88bfa1ba1597eeff9ebf6a}{MB\_DeviceModeTypeDef}}\ \mbox{\hyperlink{group___m_o_d_b_u_s___d_a_t_a___a_c_c_e_s_s___f_u_n_c_t_i_o_n_s_gae7b613f24e9e3d9d95a789c404a3a485}{MB\_GetDeviceMode}}(\textcolor{keywordtype}{void});} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00087}00087\ } \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00088}00088\ } \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00089}00089\ \textcolor{comment}{/*\ Функции\ для\ обновления\ счетчиков\ диагностики\ */}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00090}00090\ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{group___m_o_d_b_u_s___d_a_t_a___a_c_c_e_s_s___f_u_n_c_t_i_o_n_s_gae379458fa9cea50d5e313a68e716cb83}{MB\_Diagnostics\_BusMessageCnt}}(\textcolor{keywordtype}{void});} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00091}00091\ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{group___m_o_d_b_u_s___d_a_t_a___a_c_c_e_s_s___f_u_n_c_t_i_o_n_s_ga10f9e4dd9f3dda4bb0f66c323d6b29d7}{MB\_Diagnostics\_CommunicationErrorCnt}}(\textcolor{keywordtype}{void});} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00092}00092\ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{group___m_o_d_b_u_s___d_a_t_a___a_c_c_e_s_s___f_u_n_c_t_i_o_n_s_ga82e0bf0c4452c25bf3f05a20abb7cc74}{MB\_Diagnostics\_ExceptionErrorCnt}}(\textcolor{keywordtype}{void});} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00093}00093\ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{group___m_o_d_b_u_s___d_a_t_a___a_c_c_e_s_s___f_u_n_c_t_i_o_n_s_gaff7c464d7d66399232770bac78b653a4}{MB\_Diagnostics\_CharacterOverrunCnt}}(\textcolor{keywordtype}{void});} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00094}00094\ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{group___m_o_d_b_u_s___d_a_t_a___a_c_c_e_s_s___f_u_n_c_t_i_o_n_s_ga22a48a04ef64f74b5974c4fdb1445936}{MB\_Diagnostics\_SlaveMessageCnt}}(\textcolor{keywordtype}{void});} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00095}00095\ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{group___m_o_d_b_u_s___d_a_t_a___a_c_c_e_s_s___f_u_n_c_t_i_o_n_s_gabf80c0e24a0ed3736338218c003d001d}{MB\_Diagnostics\_SlaveNoResponseCnt}}(\textcolor{keywordtype}{void});} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00096}00096\ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{group___m_o_d_b_u_s___d_a_t_a___a_c_c_e_s_s___f_u_n_c_t_i_o_n_s_ga2585ebac184f7fa56059c81419c614b9}{MB\_Diagnostics\_SlaveNAKCnt}}(\textcolor{keywordtype}{void});} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00097}00097\ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{group___m_o_d_b_u_s___d_a_t_a___a_c_c_e_s_s___f_u_n_c_t_i_o_n_s_ga4baad1102ba3f09cf3cc121b8d548ddb}{MB\_Diagnostics\_SlaveBusyCnt}}(\textcolor{keywordtype}{void});\textcolor{comment}{}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00098}00098\ \textcolor{comment}{/**\ MODBUS\_CMD\_PROCESS\_FUNCTIONS}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00099}00099\ \textcolor{comment}{\ \ *\ @\}\ }} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00100}00100\ \textcolor{comment}{\ \ */}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00101}00101\ \textcolor{comment}{}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00102}00102\ \textcolor{comment}{/**\ }} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00103}00103\ \textcolor{comment}{\ \ *\ @addtogroup\ MODBUS\_CMD\_PROCESS\_FUNCTIONS}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00104}00104\ \textcolor{comment}{\ \ *\ @\{}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00105}00105\ \textcolor{comment}{\ \ */}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00106}00106\ \ \ } \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00107}00107\ \textcolor{comment}{/*\ Обработка\ команды\ диагностики\ (0x08)\ */}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00108}00108\ uint8\_t\ \mbox{\hyperlink{group___m_o_d_b_u_s___c_m_d___p_r_o_c_e_s_s___f_u_n_c_t_i_o_n_s_ga6bbfc53b20b4698a08d79851b5db65f0}{MB\_Process\_Diagnostics}}(\mbox{\hyperlink{struct_r_s___msg_type_def}{RS\_MsgTypeDef}}\ *modbus\_msg);} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00109}00109\ \textcolor{comment}{}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00110}00110\ \textcolor{comment}{/**\ MODBUS\_CMD\_PROCESS\_FUNCTIONS}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00111}00111\ \textcolor{comment}{\ \ *\ @\}\ }} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00112}00112\ \textcolor{comment}{\ \ */}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00113}00113\ \ \ } \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00114}00114\ \ \ } \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00115}00115\ } \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00116}00116\ \textcolor{comment}{}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00117}00117\ \textcolor{comment}{/////////////////////////-\/-\/-\/FUNCTIONS-\/-\/-\//////////////////////////////}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00118}00118\ } \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00119}00119\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\_\_MODBUS\_DIAG\_H\_}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00120}00120\ \textcolor{comment}{}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00121}00121\ \textcolor{comment}{/**\ MODBUS\_DIAG}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00122}00122\ \textcolor{comment}{\ \ *\ @\}\ }} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00123}00123\ \textcolor{comment}{\ \ */}} \DoxyCodeLine{\Hypertarget{modbus__diag_8h_source_l00124}00124\ \ } \end{DoxyCode}