\doxysection{modbus\+\_\+holdregs.\+h}
\hypertarget{modbus__holdregs_8h_source}{}\label{modbus__holdregs_8h_source}\index{E:/.WORK/STM32/Diod\_Test/diode\_tester/Core/Modbus/Inc/modbus\_holdregs.h@{E:/.WORK/STM32/Diod\_Test/diode\_tester/Core/Modbus/Inc/modbus\_holdregs.h}}
\mbox{\hyperlink{modbus__holdregs_8h}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00001}00001\ \textcolor{comment}{/**}}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00002}00002\ \textcolor{comment}{*******************************************************************************}}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00003}00003\ \textcolor{comment}{*\ @file\ modbus\_holdregs.h}}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00004}00004\ \textcolor{comment}{*\ @brief\ Работа\ с\ регистрами\ хранения\ Modbus}}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00005}00005\ \textcolor{comment}{*******************************************************************************}}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00006}00006\ \textcolor{comment}{@addtogroup\ MODBUS\_INS\ Input\ Register\ Tools}}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00007}00007\ \textcolor{comment}{@ingroup\ MODBUS\_INTERNAL}}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00008}00008\ \textcolor{comment}{@brief\ Функции\ для\ работы\ с\ входными\ регистрами}}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00009}00009\ \textcolor{comment}{*******************************************************************************}}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00010}00010\ \textcolor{comment}{*\ @details}}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00011}00011\ \textcolor{comment}{Модуль\ для\ доступа\ к\ регистрам\ внутри\ программы:}}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00012}00012\ \textcolor{comment}{-\/\ Функции\ для\ доступа\ к\ регистрам\ хранения\ по\ глобальным\ адресам}}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00013}00013\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00014}00014\ \textcolor{comment}{Модуль\ обработки\ команд\ для\ регистров\ хранения\ (Holding\ Registers):}}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00015}00015\ \textcolor{comment}{-\/\ Чтение\ множества\ регистров\ (0x03)}}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00016}00016\ \textcolor{comment}{-\/\ Запись\ одиночного\ регистра\ (0x06)\ }}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00017}00017\ \textcolor{comment}{-\/\ Запись\ множества\ регистров\ (0x10)}}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00018}00018\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00019}00019\ \textcolor{comment}{@section\ hold\ Регистры\ хранения:}}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00020}00020\ \textcolor{comment}{-\/\ Read/Write\ доступ}}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00021}00021\ \textcolor{comment}{-\/\ 16-\/битные\ значения\ (uint16\_t)}}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00022}00022\ \textcolor{comment}{******************************************************************************/}}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00023}00023\ \textcolor{preprocessor}{\#ifndef\ \_\_MODBUS\_HOLDREGS\_H\_}}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00024}00024\ \textcolor{preprocessor}{\#define\ \_\_MODBUS\_HOLDREGS\_H\_}}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00025}00025\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{modbus__core_8h}{modbus\_core.h}}"{}}}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00026}00026\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00027}00027\ \textcolor{comment}{/////////////////////////////////////////////////////////////////////}}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00028}00028\ \textcolor{comment}{/////////////////////////-\/-\/-\/FUNCTIONS-\/-\/-\//////////////////////////////}}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00029}00029\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00030}00030\ \textcolor{comment}{/**\ \ \ }}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00031}00031\ \textcolor{comment}{\ \ *\ @addtogroup\ MODBUS\_DATA\_ACCESS\_FUNCTIONS}}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00032}00032\ \textcolor{comment}{\ \ *\ @\{}}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00033}00033\ \textcolor{comment}{\ \ */}}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00034}00034\ }
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00035}00035\ \textcolor{comment}{/*\ Записать\ регистр\ хранения\ по\ глобальному\ адресу.\ */}}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00036}00036\ \mbox{\hyperlink{group___m_o_d_b_u_s___m_e_s_s_a_g_e___d_e_f_i_n_e_s_ga4ade64cb3fabf37f010c1e297489980c}{MB\_ExceptionTypeDef}}\ \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_ga8b7134e2fc1b65111d536c5590321b80}{MB\_Holding\_Write\_Global}}(uint16\_t\ Addr,\ uint16\_t\ WriteVal);}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00037}00037\ \textcolor{comment}{/*\ Считать\ регистр\ хранения\ по\ глобальному\ адресу.\ */}}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00038}00038\ uint16\_t\ \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_ga0198b337d6944329b78c59521baf5738}{MB\_Holding\_Read\_Global}}(uint16\_t\ Addr,\ \mbox{\hyperlink{group___m_o_d_b_u_s___m_e_s_s_a_g_e___d_e_f_i_n_e_s_ga4ade64cb3fabf37f010c1e297489980c}{MB\_ExceptionTypeDef}}\ *Exception);}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00039}00039\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00040}00040\ \textcolor{comment}{/**\ MODBUS\_DATA\_ACCESS\_FUNCTIONS}}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00041}00041\ \textcolor{comment}{\ \ *\ @\}\ }}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00042}00042\ \textcolor{comment}{\ \ */}}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00043}00043\ }
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00044}00044\ }
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00045}00045\ \ \ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00046}00046\ \textcolor{comment}{/**\ }}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00047}00047\ \textcolor{comment}{\ \ *\ @addtogroup\ MODBUS\_CMD\_PROCESS\_FUNCTIONS}}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00048}00048\ \textcolor{comment}{\ \ *\ @\{}}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00049}00049\ \textcolor{comment}{\ \ */}}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00050}00050\ \textcolor{comment}{/*\ Обработать\ функцию\ Read\ Holding\ Registers\ (03\ -\/\ 0x03)\ */}}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00051}00051\ 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_gac28127757ba25fe0b611612a785f663b}{MB\_Process\_Read\_Hold\_Regs}}(\mbox{\hyperlink{struct_r_s___msg_type_def}{RS\_MsgTypeDef}}\ *modbus\_msg);}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00052}00052\ \textcolor{comment}{/*\ Обработать\ функцию\ Write\ Single\ Coils\ (06\ -\/\ 0x06)\ */}}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00053}00053\ 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_ga02e192a3d9f31737c45f074a04b37648}{MB\_Process\_Write\_Single\_Reg}}(\mbox{\hyperlink{struct_r_s___msg_type_def}{RS\_MsgTypeDef}}\ *modbus\_msg);}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00054}00054\ \textcolor{comment}{/*\ Обработать\ функцию\ Write\ Multiple\ Register\ (16\ -\/\ 0x10)\ */}}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00055}00055\ 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_ga9c6ab159edb8dda6548b2228773ce919}{MB\_Process\_Write\_Miltuple\_Regs}}(\mbox{\hyperlink{struct_r_s___msg_type_def}{RS\_MsgTypeDef}}\ *modbus\_msg);}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00056}00056\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00057}00057\ \textcolor{comment}{/**\ MODBUS\_CMD\_PROCESS\_FUNCTIONS}}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00058}00058\ \textcolor{comment}{\ \ *\ @\}\ }}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00059}00059\ \textcolor{comment}{\ \ */}\textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00060}00060\ \textcolor{comment}{/////////////////////////-\/-\/-\/FUNCTIONS-\/-\/-\//////////////////////////////}}
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00061}00061\ }
\DoxyCodeLine{\Hypertarget{modbus__holdregs_8h_source_l00062}00062\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\_\_MODBUS\_HOLDREGS\_H\_}}

\end{DoxyCode}
