238 lines
34 KiB
TeX
238 lines
34 KiB
TeX
\doxysection{modbus\+\_\+master.\+h}
|
||
\hypertarget{modbus__master_8h_source}{}\label{modbus__master_8h_source}\index{E:/.WORK/STM32/Diod\_Test/diode\_tester/Core/Modbus/Inc/modbus\_master.h@{E:/.WORK/STM32/Diod\_Test/diode\_tester/Core/Modbus/Inc/modbus\_master.h}}
|
||
\mbox{\hyperlink{modbus__master_8h}{Go to the documentation of this file.}}
|
||
\begin{DoxyCode}{0}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00001}00001\ \textcolor{comment}{/**}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00002}00002\ \textcolor{comment}{*******************************************************************************}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00003}00003\ \textcolor{comment}{*\ @file\ modbus\_master.h}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00004}00004\ \textcolor{comment}{*\ @brief\ Главный\ заголовочный\ файл\ Modbus\ библиотеки}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00005}00005\ \textcolor{comment}{*******************************************************************************}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00006}00006\ \textcolor{comment}{@addtogroup\ MODBUS\_MASTER\ Modbus\ master\ funtions}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00007}00007\ \textcolor{comment}{@ingroup\ \ \ \ MODBUS\_CMD\_PROCESS\_FUNCTIONS}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00008}00008\ \textcolor{comment}{@brief\ Функции\ для\ работы\ в\ режиме\ Master}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00009}00009\ \textcolor{comment}{*******************************************************************************}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00010}00010\ \textcolor{comment}{*\ @details}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00011}00011\ \textcolor{comment}{Модуль\ реализации\ Modbus\ в\ режиме\ мастер}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00012}00012\ \textcolor{comment}{******************************************************************************/}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00013}00013\ \textcolor{preprocessor}{\#ifndef\ \_\_MODBUS\_MASTER\_H\_}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00014}00014\ \textcolor{preprocessor}{\#define\ \_\_MODBUS\_MASTER\_H\_}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00015}00015\ \ }
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00016}00016\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{rs__message_8h}{rs\_message.h}}"{}}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00017}00017\ \textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00018}00018\ \textcolor{comment}{/**}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00019}00019\ \textcolor{comment}{\ \ *\ @addtogroup\ MODBUS\_REQUEST\_MSG\ API\ for\ Master\ Requests}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00020}00020\ \textcolor{comment}{\ \ *\ @ingroup\ \ \ \ MODBUS\_FUNCTIONS}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00021}00021\ \textcolor{comment}{\ \ *\ @brief\ API\ для\ формирования\ фрейма-\/запроса\ в\ режиме\ мастер}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00022}00022\ \textcolor{comment}{\ \ *\ @details\ Примеры\ использования:}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00023}00023\ \textcolor{comment}{\ \ *\ @code}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00024}00024\ \textcolor{comment}{\ \ *\ //\ Чтение\ 10\ holding\ registers\ начиная\ с\ адреса\ 0}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00025}00025\ \textcolor{comment}{\ \ *\ RS\_MsgTypeDef\ read\_msg\ =\ MB\_REQUEST\_READ\_HOLDING\_REGS(1,\ 0,\ 10);}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00026}00026\ \textcolor{comment}{\ \ *\ }}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00027}00027\ \textcolor{comment}{\ \ *\ //\ Запись\ одного\ coil}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00028}00028\ \textcolor{comment}{\ \ *\ RS\_MsgTypeDef\ write\_coil\_msg\ =\ MB\_REQUEST\_WRITE\_SINGLE\_COIL(1,\ 5,\ 1);}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00029}00029\ \textcolor{comment}{\ \ *\ }}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00030}00030\ \textcolor{comment}{\ \ *\ //\ Диагностический\ запрос}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00031}00031\ \textcolor{comment}{\ \ *\ RS\_MsgTypeDef\ diag\_msg\ =\ MB\_REQUEST\_RETURN\_BUS\_MESSAGE\_COUNT(1);}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00032}00032\ \textcolor{comment}{\ \ *\ }}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00033}00033\ \textcolor{comment}{\ \ *\ //\ Идентификация\ устройства}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00034}00034\ \textcolor{comment}{\ \ *\ RS\_MsgTypeDef\ dev\_id\_msg\ =\ MB\_REQUEST\_READ\_DEVICE\_ID\_BASIC(1);}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00035}00035\ \textcolor{comment}{\ \ *\ @endcode}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00036}00036\ \textcolor{comment}{\ \ *\ @\{}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00037}00037\ \textcolor{comment}{\ \ */}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00038}00038\ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00039}00039\ \textcolor{comment}{//-\/-\/-\/-\/-\/-\/-\/-\/-\/КЛАССИЧЕСКИЕ\ ДАННЫЕ-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00040}00040\ \mbox{\hyperlink{struct_r_s___msg_type_def}{RS\_MsgTypeDef}}\ \mbox{\hyperlink{group___m_o_d_b_u_s___r_e_q_u_e_s_t___m_s_g_gadb1b59bd6832b017b7ff4f5d694f59aa}{MB\_REQUEST\_READ\_COILS}}(uint8\_t\ slave\_addr,\ uint16\_t\ start\_addr,\ uint16\_t\ quantity);}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00041}00041\ \mbox{\hyperlink{struct_r_s___msg_type_def}{RS\_MsgTypeDef}}\ \mbox{\hyperlink{group___m_o_d_b_u_s___r_e_q_u_e_s_t___m_s_g_ga85028c4de63ca63cb04e332a3fdcd676}{MB\_REQUEST\_READ\_DISCRETE\_INPUTS}}(uint8\_t\ slave\_addr,\ uint16\_t\ start\_addr,\ uint16\_t\ quantity);}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00042}00042\ \mbox{\hyperlink{struct_r_s___msg_type_def}{RS\_MsgTypeDef}}\ \mbox{\hyperlink{group___m_o_d_b_u_s___r_e_q_u_e_s_t___m_s_g_ga4a4798a15608f3aac04150115a628f8e}{MB\_REQUEST\_READ\_HOLDING\_REGS}}(uint8\_t\ slave\_addr,\ uint16\_t\ start\_addr,\ uint16\_t\ quantity);}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00043}00043\ \mbox{\hyperlink{struct_r_s___msg_type_def}{RS\_MsgTypeDef}}\ \mbox{\hyperlink{group___m_o_d_b_u_s___r_e_q_u_e_s_t___m_s_g_ga72f91a70586546171fe9190a4e0e5518}{MB\_REQUEST\_READ\_INPUT\_REGS}}(uint8\_t\ slave\_addr,\ uint16\_t\ start\_addr,\ uint16\_t\ quantity);}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00044}00044\ \mbox{\hyperlink{struct_r_s___msg_type_def}{RS\_MsgTypeDef}}\ \mbox{\hyperlink{group___m_o_d_b_u_s___r_e_q_u_e_s_t___m_s_g_ga1ac5f38ac244039a63b2714044778ffc}{MB\_REQUEST\_WRITE\_SINGLE\_COIL}}(uint8\_t\ slave\_addr,\ uint16\_t\ coil\_addr,\ uint8\_t\ value);}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00045}00045\ \mbox{\hyperlink{struct_r_s___msg_type_def}{RS\_MsgTypeDef}}\ \mbox{\hyperlink{group___m_o_d_b_u_s___r_e_q_u_e_s_t___m_s_g_ga0126cfaf44c73d84d521b16c0f6ab7b6}{MB\_REQUEST\_WRITE\_SINGLE\_REG}}(uint8\_t\ slave\_addr,\ uint16\_t\ reg\_addr,\ uint16\_t\ value);}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00046}00046\ \mbox{\hyperlink{struct_r_s___msg_type_def}{RS\_MsgTypeDef}}\ \mbox{\hyperlink{group___m_o_d_b_u_s___r_e_q_u_e_s_t___m_s_g_ga92c7c61bc6b3e249350d93d20b530fa3}{MB\_REQUEST\_WRITE\_MULTIPLE\_COILS}}(uint8\_t\ slave\_addr,\ uint16\_t\ start\_addr,\ uint16\_t\ quantity,\ uint8\_t\ *coils\_data);}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00047}00047\ \mbox{\hyperlink{struct_r_s___msg_type_def}{RS\_MsgTypeDef}}\ \mbox{\hyperlink{group___m_o_d_b_u_s___r_e_q_u_e_s_t___m_s_g_ga9b89a034f1c5ed96572621b2ebe7f6af}{MB\_REQUEST\_WRITE\_MULTIPLE\_REGS}}(uint8\_t\ slave\_addr,\ uint16\_t\ start\_addr,\ uint16\_t\ quantity,\ uint16\_t\ *regs\_data);}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00048}00048\ }
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00049}00049\ \textcolor{comment}{//-\/-\/-\/-\/-\/-\/-\/-\/-\/ДИАГНОСТИЧЕСКИЕ\ ДАННЫЕ-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00050}00050\ \mbox{\hyperlink{struct_r_s___msg_type_def}{RS\_MsgTypeDef}}\ MB\_REQUEST\_DIAGNOSTIC\_QUERY(uint8\_t\ slave\_addr,\ uint16\_t\ sub\_function,\ uint16\_t\ data);}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00051}00051\ \mbox{\hyperlink{struct_r_s___msg_type_def}{RS\_MsgTypeDef}}\ MB\_REQUEST\_RETURN\_QUERY\_DATA(uint8\_t\ slave\_addr);}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00052}00052\ \mbox{\hyperlink{struct_r_s___msg_type_def}{RS\_MsgTypeDef}}\ MB\_REQUEST\_RESTART\_COMMUNICATIONS(uint8\_t\ slave\_addr,\ uint16\_t\ data);}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00053}00053\ \mbox{\hyperlink{struct_r_s___msg_type_def}{RS\_MsgTypeDef}}\ MB\_REQUEST\_RETURN\_DIAGNOSTIC\_REGISTER(uint8\_t\ slave\_addr);}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00054}00054\ \mbox{\hyperlink{struct_r_s___msg_type_def}{RS\_MsgTypeDef}}\ MB\_REQUEST\_FORCE\_LISTEN\_ONLY\_MODE(uint8\_t\ slave\_addr);}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00055}00055\ \mbox{\hyperlink{struct_r_s___msg_type_def}{RS\_MsgTypeDef}}\ MB\_REQUEST\_CLEAR\_COUNTERS\_AND\_DIAGNOSTIC\_REGISTER(uint8\_t\ slave\_addr);}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00056}00056\ \mbox{\hyperlink{struct_r_s___msg_type_def}{RS\_MsgTypeDef}}\ MB\_REQUEST\_RETURN\_BUS\_MESSAGE\_COUNT(uint8\_t\ slave\_addr);}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00057}00057\ \mbox{\hyperlink{struct_r_s___msg_type_def}{RS\_MsgTypeDef}}\ MB\_REQUEST\_RETURN\_BUS\_COMMUNICATION\_ERROR\_COUNT(uint8\_t\ slave\_addr);}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00058}00058\ \mbox{\hyperlink{struct_r_s___msg_type_def}{RS\_MsgTypeDef}}\ MB\_REQUEST\_RETURN\_SLAVE\_EXCEPTION\_ERROR\_COUNT(uint8\_t\ slave\_addr);}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00059}00059\ \mbox{\hyperlink{struct_r_s___msg_type_def}{RS\_MsgTypeDef}}\ MB\_REQUEST\_RETURN\_SLAVE\_MESSAGE\_COUNT(uint8\_t\ slave\_addr);}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00060}00060\ \mbox{\hyperlink{struct_r_s___msg_type_def}{RS\_MsgTypeDef}}\ MB\_REQUEST\_RETURN\_SLAVE\_NO\_RESPONSE\_COUNT(uint8\_t\ slave\_addr);}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00061}00061\ \mbox{\hyperlink{struct_r_s___msg_type_def}{RS\_MsgTypeDef}}\ MB\_REQUEST\_RETURN\_SLAVE\_NAK\_COUNT(uint8\_t\ slave\_addr);}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00062}00062\ \mbox{\hyperlink{struct_r_s___msg_type_def}{RS\_MsgTypeDef}}\ MB\_REQUEST\_RETURN\_SLAVE\_BUSY\_COUNT(uint8\_t\ slave\_addr);}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00063}00063\ \mbox{\hyperlink{struct_r_s___msg_type_def}{RS\_MsgTypeDef}}\ MB\_REQUEST\_RETURN\_BUS\_CHARACTER\_OVERRUN\_COUNT(uint8\_t\ slave\_addr);}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00064}00064\ }
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00065}00065\ \textcolor{comment}{//-\/-\/-\/-\/-\/-\/-\/-\/-\/ИДЕНТИФИКАТОРЫ\ МОДБАС-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00066}00066\ \mbox{\hyperlink{struct_r_s___msg_type_def}{RS\_MsgTypeDef}}\ MB\_REQUEST\_READ\_DEVICE\_ID\_BASIC(uint8\_t\ slave\_addr);}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00067}00067\ \mbox{\hyperlink{struct_r_s___msg_type_def}{RS\_MsgTypeDef}}\ MB\_REQUEST\_READ\_DEVICE\_ID\_REGULAR(uint8\_t\ slave\_addr);}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00068}00068\ \mbox{\hyperlink{struct_r_s___msg_type_def}{RS\_MsgTypeDef}}\ MB\_REQUEST\_READ\_DEVICE\_ID\_EXTENDED(uint8\_t\ slave\_addr);}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00069}00069\ \mbox{\hyperlink{struct_r_s___msg_type_def}{RS\_MsgTypeDef}}\ MB\_REQUEST\_READ\_DEVICE\_ID\_SPECIFIC(uint8\_t\ slave\_addr,\ uint8\_t\ object\_id);\textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00070}00070\ \textcolor{comment}{/**\ MODBUS\_REQUEST\_MSG}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00071}00071\ \textcolor{comment}{\ \ *\ @\}\ }}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00072}00072\ \textcolor{comment}{\ \ */}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00073}00073\ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00074}00074\ \ \ \textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00075}00075\ \textcolor{comment}{/**}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00076}00076\ \textcolor{comment}{\ \ *\ @addtogroup\ MODBUS\_REGS\_API\ API\ for\ Registers}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00077}00077\ \textcolor{comment}{\ \ *\ @ingroup\ \ \ \ MODBUS\_REQUEST\_MSG}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00078}00078\ \textcolor{comment}{\ \ *\ @brief\ API\ для\ чтения\ регистров\ из\ ответа\ в\ режиме\ мастер}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00079}00079\ \textcolor{comment}{\ \ *\ @details\ Примеры\ использования:}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00080}00080\ \textcolor{comment}{\ \ *\ }}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00081}00081\ \textcolor{comment}{\ \ *\ @code}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00082}00082\ \textcolor{comment}{\ \ *\ //\ Пример:\ Запросили\ 10\ регистров\ с\ адреса\ 100,\ хотим\ получить\ значение\ регистра\ 105}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00083}00083\ \textcolor{comment}{\ \ *\ uint16\_t\ reg\_value;}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00084}00084\ \textcolor{comment}{\ \ *\ if(MB\_RespGet\_RegisterValue(modbus\_msg,\ 105,\ \®\_value))}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00085}00085\ \textcolor{comment}{\ \ *\ \{}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00086}00086\ \textcolor{comment}{\ \ *\ \ \ printf("{}Register\ 105\ value:\ \%d\(\backslash\)n"{},\ reg\_value);}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00087}00087\ \textcolor{comment}{\ \ *\ \}}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00088}00088\ \textcolor{comment}{\ \ *\ }}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00089}00089\ \textcolor{comment}{\ \ *\ //\ Пример:\ Получить\ все\ запрошенные\ регистры}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00090}00090\ \textcolor{comment}{\ \ *\ uint16\_t\ reg\_value[125];}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00091}00091\ \textcolor{comment}{\ \ *\ MB\_RespGet\_RegisterAll(modbus\_msg)}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00092}00092\ \textcolor{comment}{\ \ *\ @endcode}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00093}00093\ \textcolor{comment}{\ \ *\ @\{}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00094}00094\ \textcolor{comment}{\ \ */}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00095}00095\ \textcolor{comment}{/*\ Получить\ значение\ ВСЕХ\ регистров\ в\ ответе\ */}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00096}00096\ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{group___m_o_d_b_u_s___r_e_g_s___a_p_i_ga86160c23899d6ece041e3680ba863019}{MB\_RespGet\_RegisterAll}}(\mbox{\hyperlink{struct_r_s___msg_type_def}{RS\_MsgTypeDef}}\ *modbus\_msg,\ uint16\_t\ *reg\_arr);}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00097}00097\ \textcolor{comment}{/*\ Получить\ значение\ регистра\ в\ ответе\ по\ его\ адресу\ */}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00098}00098\ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{group___m_o_d_b_u_s___r_e_g_s___a_p_i_ga1f80317087624a23f84224c6f2c1d596}{MB\_RespGet\_RegisterValue}}(\mbox{\hyperlink{struct_r_s___msg_type_def}{RS\_MsgTypeDef}}\ *modbus\_msg,\ uint16\_t\ reg\_addr,\ uint16\_t\ *reg\_value);}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00099}00099\ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00100}00100\ \textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00101}00101\ \textcolor{comment}{/**\ MODBUS\_REQ\_REGS\_API}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00102}00102\ \textcolor{comment}{\ \ *\ @\}\ }}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00103}00103\ \textcolor{comment}{\ \ */}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00104}00104\ }
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00105}00105\ \textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00106}00106\ \textcolor{comment}{/**}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00107}00107\ \textcolor{comment}{\ \ *\ @addtogroup\ MODBUS\_REQ\_COILS\_API\ API\ for\ Coils\ \ }}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00108}00108\ \textcolor{comment}{\ \ *\ @ingroup\ \ \ \ MODBUS\_REQUEST\_MSG}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00109}00109\ \textcolor{comment}{\ \ *\ @brief\ API\ для\ чтения\ coils\ из\ ответа\ в\ режиме\ мастер}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00110}00110\ \textcolor{comment}{\ \ *\ @details\ Примеры\ использования:}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00111}00111\ \textcolor{comment}{\ \ *\ }}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00112}00112\ \textcolor{comment}{\ \ *\ @code}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00113}00113\ \textcolor{comment}{\ \ *\ //\ Пример:\ Запросили\ 10\ coils\ с\ адреса\ 20,\ хотим\ узнать\ состояние\ coil\ 25}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00114}00114\ \textcolor{comment}{\ \ *\ int\ coil\_state;}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00115}00115\ \textcolor{comment}{\ \ *\ if(MB\_RespGet\_CoilState(modbus\_msg,\ 25,\ \&coil\_state))}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00116}00116\ \textcolor{comment}{\ \ *\ \{}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00117}00117\ \textcolor{comment}{\ \ *\ \ \ printf("{}Coil\ 25\ state:\ \%s\(\backslash\)n"{},\ coil\_state\ ?\ "{}ON"{}\ :\ "{}OFF"{});}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00118}00118\ \textcolor{comment}{\ \ *\ \}}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00119}00119\ \textcolor{comment}{\ \ *\ }}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00120}00120\ \textcolor{comment}{\ \ *\ //\ Пример:\ Получить\ состояние\ всех\ запрошенных\ coils}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00121}00121\ \textcolor{comment}{\ \ *\ for(int\ addr\ =\ MODBUS\_MSG.Addr;\ addr\ <\ MODBUS\_MSG.Addr\ +\ MODBUS\_MSG.Qnt;\ addr++)}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00122}00122\ \textcolor{comment}{\ \ *\ \{}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00123}00123\ \textcolor{comment}{\ \ *\ \ \ int\ state;}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00124}00124\ \textcolor{comment}{\ \ *\ \ \ if(MB\_RespGet\_CoilState(modbus\_msg,\ addr,\ \&state))}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00125}00125\ \textcolor{comment}{\ \ *\ \ \ \{}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00126}00126\ \textcolor{comment}{\ \ *\ \ \ \ \ printf("{}Coil\ \%d:\ \%s\(\backslash\)n"{},\ addr,\ state\ ?\ "{}ON"{}\ :\ "{}OFF"{});}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00127}00127\ \textcolor{comment}{\ \ *\ \ \ \}}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00128}00128\ \textcolor{comment}{\ \ *\ \}}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00129}00129\ \textcolor{comment}{\ \ *\ @endcode}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00130}00130\ \textcolor{comment}{\ \ *\ @\{}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00131}00131\ \textcolor{comment}{\ \ */}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00132}00132\ \textcolor{comment}{/*\ Получить\ состояние\ ВСЕХ\ coil\ в\ ответе\ */}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00133}00133\ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{group___m_o_d_b_u_s___r_e_q___c_o_i_l_s___a_p_i_ga14750bad3976a9fcc6bdece1c800dbf5}{MB\_RespGet\_CoilAll}}(\mbox{\hyperlink{struct_r_s___msg_type_def}{RS\_MsgTypeDef}}\ *modbus\_msg,\ \textcolor{keywordtype}{int}\ *coil\_arr);}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00134}00134\ \textcolor{comment}{/*\ Получить\ состояние\ coil\ в\ ответе\ по\ его\ адресу\ */}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00135}00135\ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{group___m_o_d_b_u_s___r_e_q___c_o_i_l_s___a_p_i_ga643a0be1ccd587a6dfe544d9fd5ed018}{MB\_RespGet\_CoilState}}(\mbox{\hyperlink{struct_r_s___msg_type_def}{RS\_MsgTypeDef}}\ *modbus\_msg,\ uint16\_t\ coil\_addr,\ \textcolor{keywordtype}{int}\ *coil\_state);}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00136}00136\ \textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00137}00137\ \textcolor{comment}{/**\ MODBUS\_REQ\_COILS\_API}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00138}00138\ \textcolor{comment}{\ \ *\ @\}\ }}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00139}00139\ \textcolor{comment}{\ \ */}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00140}00140\ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00141}00141\ \textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00142}00142\ \textcolor{comment}{/**}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00143}00143\ \textcolor{comment}{\ \ *\ @addtogroup\ MODBUS\_REQ\_DEFID\_API\ API\ for\ Device\ Identifications}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00144}00144\ \textcolor{comment}{\ \ *\ @ingroup\ \ \ \ MODBUS\_REQUEST\_MSG}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00145}00145\ \textcolor{comment}{\ \ *\ @brief\ API\ для\ чтения\ идентификторов\ из\ ответа\ в\ режиме\ мастер}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00146}00146\ \textcolor{comment}{\ \ *\ @details\ Примеры\ использования:}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00147}00147\ \textcolor{comment}{\ \ *\ }}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00148}00148\ \textcolor{comment}{\ \ *\ @code}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00149}00149\ \textcolor{comment}{\ \ *\ //\ Пример\ 1:\ Получить\ VendorName\ (ID\ =\ 0x00)}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00150}00150\ \textcolor{comment}{\ \ *\ uint8\_t\ length;}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00151}00151\ \textcolor{comment}{\ \ *\ char\ vendor\_name[64];}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00152}00152\ \textcolor{comment}{\ \ *\ if(MB\_RespGet\_ObjectById(modbus\_msg,\ 0x00,\ vendor\_name,\ \&length))}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00153}00153\ \textcolor{comment}{\ \ *\ \{}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00154}00154\ \textcolor{comment}{\ \ *\ \ \ //\ получено}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00155}00155\ \textcolor{comment}{\ \ *\ \}}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00156}00156\ \textcolor{comment}{\ \ *\ }}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00157}00157\ \textcolor{comment}{\ \ *\ //\ Пример\ 2:\ Перебрать\ все\ объекты\ в\ сообщении}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00158}00158\ \textcolor{comment}{\ \ *\ uint8\_t\ obj\_id,\ obj\_length;}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00159}00159\ \textcolor{comment}{\ \ *\ char\ obj\_data[256];}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00160}00160\ \textcolor{comment}{\ \ *\ }}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00161}00161\ \textcolor{comment}{\ \ *\ int\ obj\_count\ =\ MB\_RespGet\_NumberOfObjects(modbus\_msg);}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00162}00162\ \textcolor{comment}{\ \ *\ printf("{}Total\ objects:\ \%d\(\backslash\)n"{},\ obj\_count);}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00163}00163\ \textcolor{comment}{\ \ *\ }}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00164}00164\ \textcolor{comment}{\ \ *\ for(int\ i\ =\ 0;\ i\ <\ obj\_count;\ i++)}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00165}00165\ \textcolor{comment}{\ \ *\ \{}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00166}00166\ \textcolor{comment}{\ \ *\ \ \ if(MB\_RespGet\_ObjectByIndex(modbus\_msg,\ i,\ \&obj\_id,\ obj\_data,\ \&obj\_length))}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00167}00167\ \textcolor{comment}{\ \ *\ \ \ \{}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00168}00168\ \textcolor{comment}{\ \ *\ \ \ \ \ //\ получено}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00169}00169\ \textcolor{comment}{\ \ *\ \ \ \}}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00170}00170\ \textcolor{comment}{\ \ *\ \}}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00171}00171\ \textcolor{comment}{\ \ *\ @endcode}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00172}00172\ \textcolor{comment}{\ \ *\ @\{}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00173}00173\ \textcolor{comment}{\ \ */}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00174}00174\ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00175}00175\ \textcolor{comment}{/*\ Получить\ количество\ объектов\ в\ сообщении\ */}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00176}00176\ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{group___m_o_d_b_u_s___r_e_q___d_e_f_i_d___a_p_i_ga16b90d4a74a249514161aa4576724d1c}{MB\_RespGet\_NumberOfObjects}}(\mbox{\hyperlink{struct_r_s___msg_type_def}{RS\_MsgTypeDef}}\ *modbus\_msg);}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00177}00177\ \textcolor{comment}{/*\ Найти\ объект\ по\ ID\ в\ сообщении\ */}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00178}00178\ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{group___m_o_d_b_u_s___r_e_q___d_e_f_i_d___a_p_i_ga0dc4119c008af34d5997eab339c437be}{MB\_RespGet\_ObjectById}}(\mbox{\hyperlink{struct_r_s___msg_type_def}{RS\_MsgTypeDef}}\ *modbus\_msg,\ uint8\_t\ obj\_id,\ \textcolor{keywordtype}{char}\ *obj\_data,\ uint8\_t\ *obj\_length);}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00179}00179\ \textcolor{comment}{/*\ Получить\ объект\ по\ индексу\ в\ сообщении\ */}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00180}00180\ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{group___m_o_d_b_u_s___r_e_q___d_e_f_i_d___a_p_i_ga3fc5fc5abfe4f8767ccee5c11ea3d5d5}{MB\_RespGet\_ObjectByIndex}}(\mbox{\hyperlink{struct_r_s___msg_type_def}{RS\_MsgTypeDef}}\ *modbus\_msg,\ \textcolor{keywordtype}{int}\ index,\ uint8\_t\ *obj\_id,\ \textcolor{keywordtype}{char}\ *obj\_data,\ uint8\_t\ *obj\_length);}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00181}00181\ }
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00182}00182\ \ \ \ \ \textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00183}00183\ \textcolor{comment}{/**\ MODBUS\_REQ\_DEFID\_API}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00184}00184\ \textcolor{comment}{*\ @\}\ }}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00185}00185\ \textcolor{comment}{*/}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00186}00186\ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00187}00187\ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00188}00188\ \textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00189}00189\ \textcolor{comment}{/**}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00190}00190\ \textcolor{comment}{\ \ *\ @addtogroup\ MODBUS\_REQ\_DIAG\_API\ API\ for\ Diagnostics}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00191}00191\ \textcolor{comment}{\ \ *\ @ingroup\ \ \ \ MODBUS\_REQUEST\_MSG\ \ }}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00192}00192\ \textcolor{comment}{\ \ *\ @brief\ API\ для\ чтения\ диагностической\ информации\ из\ ответа\ в\ режиме\ мастер}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00193}00193\ \textcolor{comment}{\ \ *\ @details\ Примеры\ использования:}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00194}00194\ \textcolor{comment}{\ \ *\ }}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00195}00195\ \textcolor{comment}{\ \ *\ @code}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00196}00196\ \textcolor{comment}{\ \ *\ //\ Получить\ данные\ диагностики\ (значение\ счетчика)}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00197}00197\ \textcolor{comment}{\ \ *\ uint16\_t\ counter\_value;}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00198}00198\ \textcolor{comment}{\ \ *\ if(MB\_RespGet\_Diagnostic(modbus\_msg,\ \&counter\_value))}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00199}00199\ \textcolor{comment}{\ \ *\ \{}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00200}00200\ \textcolor{comment}{\ \ *\ \ \ printf("{}Counter\ value:\ \%d\(\backslash\)n"{},\ counter\_value);}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00201}00201\ \textcolor{comment}{\ \ *\ \}}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00202}00202\ \textcolor{comment}{\ \ *\ @endcode}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00203}00203\ \textcolor{comment}{\ \ *\ @\{}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00204}00204\ \textcolor{comment}{\ \ */}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00205}00205\ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00206}00206\ \textcolor{comment}{/*\ Получить\ */}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00207}00207\ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{group___m_o_d_b_u_s___r_e_q___d_i_a_g___a_p_i_ga46a9650ec68832e6f95eda579f4d9ded}{MB\_RespGet\_Diagnostic}}(\mbox{\hyperlink{struct_r_s___msg_type_def}{RS\_MsgTypeDef}}\ *modbus\_msg,\ uint16\_t\ *data);}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00208}00208\ \textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00209}00209\ \textcolor{comment}{/**\ MODBUS\_REQ\_DIAG\_API}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00210}00210\ \textcolor{comment}{\ \ *\ @\}}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00211}00211\ \textcolor{comment}{\ \ */}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00212}00212\ }
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00213}00213\ }
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00214}00214\ }
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00215}00215\ }
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00216}00216\ \textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00217}00217\ \textcolor{comment}{/**}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00218}00218\ \textcolor{comment}{\ \ *\ @addtogroup\ MODBUS\_MASTER}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00219}00219\ \textcolor{comment}{\ \ *\ @\{}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00220}00220\ \textcolor{comment}{\ \ */}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00221}00221\ }
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00222}00222\ \textcolor{comment}{/*\ Сбор\ сообщения\ в\ буфер\ UART\ в\ режиме\ мастер\ (фрейм\ мастера\ из\ msg\ -\/>\ uart)\ */}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00223}00223\ \mbox{\hyperlink{group___r_s___t_o_o_l_s_ga727154b368397b4796aa892de12a2289}{RS\_StatusTypeDef}}\ \mbox{\hyperlink{group___m_o_d_b_u_s___m_a_s_t_e_r_ga096d2790ab887eb815e17d8cd9ede125}{MB\_Master\_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__master_8h_source_l00224}00224\ \textcolor{comment}{/*\ Парс\ сообщения\ в\ режиме\ мастер\ (фрейм\ слейва\ из\ uart\ -\/>\ msg)\ */}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00225}00225\ \mbox{\hyperlink{group___r_s___t_o_o_l_s_ga727154b368397b4796aa892de12a2289}{RS\_StatusTypeDef}}\ \mbox{\hyperlink{group___m_o_d_b_u_s___m_a_s_t_e_r_ga461e77fe31ce64c7ee5f1a932dc1183f}{MB\_Master\_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__master_8h_source_l00226}00226\ \textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00227}00227\ \textcolor{comment}{/**\ MODBUS\_MASTER}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00228}00228\ \textcolor{comment}{\ \ *\ @\}\ }}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00229}00229\ \textcolor{comment}{\ \ */}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00230}00230\ }
|
||
\DoxyCodeLine{\Hypertarget{modbus__master_8h_source_l00231}00231\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\_\_MODBUS\_MASTER\_H\_}}
|
||
|
||
\end{DoxyCode}
|