\doxysection{modbus\+\_\+slave.\+h}
\hypertarget{modbus__slave_8h_source}{}\label{modbus__slave_8h_source}\index{E:/.WORK/STM32/Diod\_Test/diode\_tester/Core/Modbus/Inc/modbus\_slave.h@{E:/.WORK/STM32/Diod\_Test/diode\_tester/Core/Modbus/Inc/modbus\_slave.h}}
\mbox{\hyperlink{modbus__slave_8h}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{modbus__slave_8h_source_l00001}00001\ \textcolor{comment}{/**}}
\DoxyCodeLine{\Hypertarget{modbus__slave_8h_source_l00002}00002\ \textcolor{comment}{*******************************************************************************}}
\DoxyCodeLine{\Hypertarget{modbus__slave_8h_source_l00003}00003\ \textcolor{comment}{*\ @file\ modbus\_slave.h}}
\DoxyCodeLine{\Hypertarget{modbus__slave_8h_source_l00004}00004\ \textcolor{comment}{*\ @brief\ Главный\ заголовочный\ файл\ Modbus\ библиотеки}}
\DoxyCodeLine{\Hypertarget{modbus__slave_8h_source_l00005}00005\ \textcolor{comment}{*******************************************************************************}}
\DoxyCodeLine{\Hypertarget{modbus__slave_8h_source_l00006}00006\ \textcolor{comment}{@addtogroup\ MODBUS\_SLAVE\ Modbus\ slave\ funtions}}
\DoxyCodeLine{\Hypertarget{modbus__slave_8h_source_l00007}00007\ \textcolor{comment}{@ingroup\ \ \ \ MODBUS\_CMD\_PROCESS\_FUNCTIONS}}
\DoxyCodeLine{\Hypertarget{modbus__slave_8h_source_l00008}00008\ \textcolor{comment}{@brief\ Функции\ для\ работы\ в\ режиме\ Slave}}
\DoxyCodeLine{\Hypertarget{modbus__slave_8h_source_l00009}00009\ \textcolor{comment}{*******************************************************************************}}
\DoxyCodeLine{\Hypertarget{modbus__slave_8h_source_l00010}00010\ \textcolor{comment}{*\ @details}}
\DoxyCodeLine{\Hypertarget{modbus__slave_8h_source_l00011}00011\ \textcolor{comment}{Модуль\ реализации\ Modbus\ в\ режиме\ слейв}}
\DoxyCodeLine{\Hypertarget{modbus__slave_8h_source_l00012}00012\ \textcolor{comment}{******************************************************************************/}}
\DoxyCodeLine{\Hypertarget{modbus__slave_8h_source_l00013}00013\ \textcolor{preprocessor}{\#ifndef\ \_\_MODBUS\_SLAVE\_H\_}}
\DoxyCodeLine{\Hypertarget{modbus__slave_8h_source_l00014}00014\ \textcolor{preprocessor}{\#define\ \_\_MODBUS\_SLAVE\_H\_}}
\DoxyCodeLine{\Hypertarget{modbus__slave_8h_source_l00015}00015\ \ }
\DoxyCodeLine{\Hypertarget{modbus__slave_8h_source_l00016}00016\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{rs__message_8h}{rs\_message.h}}"{}}}
\DoxyCodeLine{\Hypertarget{modbus__slave_8h_source_l00017}00017\ }
\DoxyCodeLine{\Hypertarget{modbus__slave_8h_source_l00018}00018\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{modbus__slave_8h_source_l00019}00019\ \textcolor{comment}{/**}}
\DoxyCodeLine{\Hypertarget{modbus__slave_8h_source_l00020}00020\ \textcolor{comment}{\ \ *\ @addtogroup\ MODBUS\_SLAVE}}
\DoxyCodeLine{\Hypertarget{modbus__slave_8h_source_l00021}00021\ \textcolor{comment}{\ \ *\ @\{}}
\DoxyCodeLine{\Hypertarget{modbus__slave_8h_source_l00022}00022\ \textcolor{comment}{\ \ */}}
\DoxyCodeLine{\Hypertarget{modbus__slave_8h_source_l00023}00023\ }
\DoxyCodeLine{\Hypertarget{modbus__slave_8h_source_l00024}00024\ \textcolor{comment}{/*\ Ответ\ на\ сообщение\ в\ режиме\ слейва\ */}}
\DoxyCodeLine{\Hypertarget{modbus__slave_8h_source_l00025}00025\ \mbox{\hyperlink{group___r_s___t_o_o_l_s_ga727154b368397b4796aa892de12a2289}{RS\_StatusTypeDef}}\ \mbox{\hyperlink{group___m_o_d_b_u_s___s_l_a_v_e_gacb44db7ef6ef32b08f4ffe0178eabee8}{MB\_Slave\_Response}}(\mbox{\hyperlink{struct_r_s___handle_type_def}{RS\_HandleTypeDef}}\ *hmodbus,\ \mbox{\hyperlink{struct_r_s___msg_type_def}{RS\_MsgTypeDef}}\ *modbus\_msg);}
\DoxyCodeLine{\Hypertarget{modbus__slave_8h_source_l00026}00026\ \textcolor{comment}{/*\ Сбор\ сообщения\ в\ буфер\ UART\ в\ режиме\ слейв\ (фрейм\ слейва\ из\ msg\ -\/>\ uart)\ */}}
\DoxyCodeLine{\Hypertarget{modbus__slave_8h_source_l00027}00027\ \mbox{\hyperlink{group___r_s___t_o_o_l_s_ga727154b368397b4796aa892de12a2289}{RS\_StatusTypeDef}}\ \mbox{\hyperlink{group___m_o_d_b_u_s___s_l_a_v_e_ga1c73cfdcbe7bc6076f62a4ec9c211eee}{MB\_Slave\_Collect\_Message}}(\mbox{\hyperlink{struct_r_s___handle_type_def}{RS\_HandleTypeDef}}\ *hmodbus,\ \mbox{\hyperlink{struct_r_s___msg_type_def}{RS\_MsgTypeDef}}\ *modbus\_msg,\ uint8\_t\ *modbus\_uart\_buff);}
\DoxyCodeLine{\Hypertarget{modbus__slave_8h_source_l00028}00028\ \textcolor{comment}{/*\ Парс\ сообщения\ в\ режиме\ слейв\ (фрейм\ мастера\ из\ uart\ -\/>\ msg)\ */}}
\DoxyCodeLine{\Hypertarget{modbus__slave_8h_source_l00029}00029\ \mbox{\hyperlink{group___r_s___t_o_o_l_s_ga727154b368397b4796aa892de12a2289}{RS\_StatusTypeDef}}\ \mbox{\hyperlink{group___m_o_d_b_u_s___s_l_a_v_e_gadc281b1044c4ae345d10db6497846cef}{MB\_Slave\_Parse\_Message}}(\mbox{\hyperlink{struct_r_s___handle_type_def}{RS\_HandleTypeDef}}\ *hmodbus,\ \mbox{\hyperlink{struct_r_s___msg_type_def}{RS\_MsgTypeDef}}\ *modbus\_msg,\ uint8\_t\ *modbus\_uart\_buff);}
\DoxyCodeLine{\Hypertarget{modbus__slave_8h_source_l00030}00030\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{modbus__slave_8h_source_l00031}00031\ \textcolor{comment}{/**\ MODBUS\_SLAVE}}
\DoxyCodeLine{\Hypertarget{modbus__slave_8h_source_l00032}00032\ \textcolor{comment}{\ \ *\ @\}\ }}
\DoxyCodeLine{\Hypertarget{modbus__slave_8h_source_l00033}00033\ \textcolor{comment}{\ \ */}}
\DoxyCodeLine{\Hypertarget{modbus__slave_8h_source_l00034}00034\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\_\_MODBUS\_SLAVE\_H\_}}

\end{DoxyCode}
