Files
UKSI_TEST/AllLibs/Modbus/Doc/latex/modbus__inputregs_8h_source.tex
2025-12-16 17:57:59 +03:00

64 lines
8.5 KiB
TeX
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
\doxysection{modbus\+\_\+inputregs.\+h}
\hypertarget{modbus__inputregs_8h_source}{}\label{modbus__inputregs_8h_source}\index{E:/.WORK/STM32/Diod\_Test/diode\_tester/Core/Modbus/Inc/modbus\_inputregs.h@{E:/.WORK/STM32/Diod\_Test/diode\_tester/Core/Modbus/Inc/modbus\_inputregs.h}}
\mbox{\hyperlink{modbus__inputregs_8h}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00001}00001\ \textcolor{comment}{/**}}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00002}00002\ \textcolor{comment}{*******************************************************************************}}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00003}00003\ \textcolor{comment}{*\ @file\ modbus\_inputregs.h}}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00004}00004\ \textcolor{comment}{*\ @brief\ Работа\ с\ входными\ регистрами\ Modbus}}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00005}00005\ \textcolor{comment}{*******************************************************************************}}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00006}00006\ \textcolor{comment}{@addtogroup\ MODBUS\_HOLD\ Holding\ Registers\ Tools}}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00007}00007\ \textcolor{comment}{@ingroup\ MODBUS\_INTERNAL}}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00008}00008\ \textcolor{comment}{@brief\ Функции\ для\ работы\ с\ регистрами\ хранения}}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00009}00009\ \textcolor{comment}{*******************************************************************************}}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00010}00010\ \textcolor{comment}{*\ @details}}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00011}00011\ \textcolor{comment}{Модуль\ для\ доступа\ к\ регистрам\ внутри\ программы:}}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00012}00012\ \textcolor{comment}{-\/\ Функции\ для\ доступа\ к\ входным\ регистрам\ по\ глобальным\ адресам}}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00013}00013\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00014}00014\ \textcolor{comment}{Модуль\ обработки\ команд\ для\ входных\ регистров\ (Input\ Registers):}}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00015}00015\ \textcolor{comment}{-\/\ Чтение\ множества\ регистров\ (0x04)}}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00016}00016\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00017}00017\ \textcolor{comment}{@section\ in\ Входные\ регистры:}}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00018}00018\ \textcolor{comment}{-\/\ Read-\/Only\ доступ}}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00019}00019\ \textcolor{comment}{-\/\ 16-\/битные\ значения}}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00020}00020\ \textcolor{comment}{******************************************************************************/}}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00021}00021\ \textcolor{preprocessor}{\#ifndef\ \_\_MODBUS\_INPUTREGS\_H\_}}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00022}00022\ \textcolor{preprocessor}{\#define\ \_\_MODBUS\_INPUTREGS\_H\_}}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00023}00023\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{modbus__core_8h}{modbus\_core.h}}"{}}}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00024}00024\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00025}00025\ \textcolor{comment}{/////////////////////////////////////////////////////////////////////}}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00026}00026\ \textcolor{comment}{/////////////////////////-\/-\/-\/FUNCTIONS-\/-\/-\//////////////////////////////}}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00027}00027\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00028}00028\ \textcolor{comment}{/**\ \ \ }}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00029}00029\ \textcolor{comment}{\ \ *\ @addtogroup\ MODBUS\_DATA\_ACCESS\_FUNCTIONS}}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00030}00030\ \textcolor{comment}{\ \ *\ @\{}}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00031}00031\ \textcolor{comment}{\ \ */}}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00032}00032\ }
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00033}00033\ \textcolor{comment}{/*\ Записать\ входной\ регистр\ по\ глобальному\ адресу.\ */}}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00034}00034\ \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_gafb57a29488a549d1c585234945549f2e}{MB\_Input\_Write\_Global}}(uint16\_t\ Addr,\ uint16\_t\ WriteVal);}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00035}00035\ \textcolor{comment}{/*\ Считать\ входной\ регистр\ по\ глобальному\ адресу.\ */}}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00036}00036\ 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_ga28d00cd1df2a46a7a9a6a1b1fce99826}{MB\_Input\_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__inputregs_8h_source_l00037}00037\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00038}00038\ \textcolor{comment}{/**\ MODBUS\_DATA\_ACCESS\_FUNCTIONS}}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00039}00039\ \textcolor{comment}{\ \ *\ @\}\ }}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00040}00040\ \textcolor{comment}{\ \ */}}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00041}00041\ }
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00042}00042\ \ \ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00043}00043\ \textcolor{comment}{/**\ }}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00044}00044\ \textcolor{comment}{\ \ *\ @addtogroup\ MODBUS\_CMD\_PROCESS\_FUNCTIONS\ Internal\ Process\ Functions}}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00045}00045\ \textcolor{comment}{\ \ *\ @ingroup\ \ \ \ MODBUS\_INTERNAL}}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00046}00046\ \textcolor{comment}{\ \ *\ @brief\ \ \ \ \ \ Функции\ обработки\ запросов\ модбас}}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00047}00047\ \textcolor{comment}{\ \ *\ @\{}}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00048}00048\ \textcolor{comment}{\ \ */}}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00049}00049\ \textcolor{comment}{/*\ Обработать\ функцию\ Read\ Input\ Registers\ (04\ -\/\ 0x04)\ */}}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00050}00050\ 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_gad13d010f43c7ab08a85667b9e1906b7d}{MB\_Process\_Read\_Input\_Regs}}(\mbox{\hyperlink{struct_r_s___msg_type_def}{RS\_MsgTypeDef}}\ *modbus\_msg);}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00051}00051\ \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00052}00052\ \textcolor{comment}{/**\ MODBUS\_CMD\_PROCESS\_FUNCTIONS}}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00053}00053\ \textcolor{comment}{\ \ *\ @\}\ }}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00054}00054\ \textcolor{comment}{\ \ */}\textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00055}00055\ \textcolor{comment}{/////////////////////////-\/-\/-\/FUNCTIONS-\/-\/-\//////////////////////////////}}
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00056}00056\ }
\DoxyCodeLine{\Hypertarget{modbus__inputregs_8h_source_l00057}00057\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\_\_MODBUS\_INPUTREGS\_H\_}}
\end{DoxyCode}