165 lines
22 KiB
TeX
165 lines
22 KiB
TeX
\doxysection{E\+:/.WORK/\+STM32/\+Diod\+\_\+\+Test/diode\+\_\+tester/\+Core/\+Modbus/modbus\+\_\+data.h}
|
||
\hypertarget{modbus__data_8h_source}{}\label{modbus__data_8h_source}\mbox{\hyperlink{modbus__data_8h}{Go to the documentation of this file.}}
|
||
\begin{DoxyCode}{0}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00001}00001\ \textcolor{comment}{/**}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00002}00002\ \textcolor{comment}{******************************************************************************}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00003}00003\ \textcolor{comment}{*\ @file\ modbus\_data.h}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00004}00004\ \textcolor{comment}{*\ @brief\ Определения\ структур\ данных\ Modbus\ устройства}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00005}00005\ \textcolor{comment}{******************************************************************************}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00006}00006\ \textcolor{comment}{@defgroup\ MODBUS\_DATA\ Modbus\ Registers\ Map}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00007}00007\ \textcolor{comment}{@ingroup\ MODBUS}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00008}00008\ \textcolor{comment}{@brief\ Определение\ карты\ регистров\ и\ коилов}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00009}00009\ \textcolor{comment}{******************************************************************************}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00010}00010\ \textcolor{comment}{*\ @details}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00011}00011\ \textcolor{comment}{Файл\ содержит\ объявления\ структур\ данных,\ доступных\ через\ Modbus:}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00012}00012\ \textcolor{comment}{-\/\ Holding\ Registers\ (R/W)\ -\/\ регистры\ хранения}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00013}00013\ \textcolor{comment}{-\/\ Input\ Registers\ (R/O)\ -\/\ входные\ регистры\ \ }}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00014}00014\ \textcolor{comment}{-\/\ Coils\ (R/W)\ -\/\ дискретные\ выходы}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00015}00015\ \textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00016}00016\ \textcolor{comment}{@section\ datinit\ Базовая\ настройка\ под\ устройство:}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00017}00017\ \textcolor{comment}{1.\ Настроить\ диапазоны\ адресов}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00018}00018\ \textcolor{comment}{\ \ -\/\ @ref\ R\_INPUT\_ADDR\ и\ @ref\ R\_INPUT\_QNT\ для\ входных\ регистров}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00019}00019\ \textcolor{comment}{\ \ -\/\ @ref\ R\_HOLDING\_ADDR\ и\ @ref\ R\_HOLDING\_QNT\ для\ регистров\ хр\ анения}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00020}00020\ \textcolor{comment}{\ \ -\/\ @ref\ C\_COILS\_ADDR\ и\ @ref\ C\_COILS\_ADDR\ для\ коилов}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00021}00021\ \textcolor{comment}{3.\ Настроить\ структуры\ данных:}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00022}00022\ \textcolor{comment}{\ \ -\/\ @ref\ MB\_DataInRegsTypeDef}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00023}00023\ \textcolor{comment}{\ \ -\/\ @ref\ MB\_DataHoldRegsTypeDef}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00024}00024\ \textcolor{comment}{\ \ -\/\ @ref\ MB\_DataCoilsTypeDef}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00025}00025\ \textcolor{comment}{\ \ \ \ }}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00026}00026\ \textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00027}00027\ \textcolor{comment}{@section\ datexpert\ Расширенная\ настройка\ под\ устройство:}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00028}00028\ \textcolor{comment}{1.\ Добавить\ новый\ массив\ с\ нужными\ данными.}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00029}00029\ \textcolor{comment}{2.\ Добавить\ дефайны\ для\ определения\ его\ начального\ адреса\ и\ количества\ элементов}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00030}00030\ \textcolor{comment}{3.\ Добавить\ проверку\ адресов\ в\ MB\_DefineRegistersAddress/MB\_DefineCoilsAddress.\ }}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00031}00031\ \textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00032}00032\ \textcolor{comment}{\ \ \ Пример:}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00033}00033\ \textcolor{comment}{\ \ \ @code}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00034}00034\ \textcolor{comment}{\ \ \ \ \#define\ \ \ R\_USER\_ADDR\ \ \ \ \ \ \ \ 555}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00035}00035\ \textcolor{comment}{\ \ \ \ \#define\ \ \ R\_USER\_QNT\ \ \ \ \ \ \ \ \ 16}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00036}00036\ \textcolor{comment}{\ \ \ \ uint16\_t\ \ user\_regs[16];}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00037}00037\ \textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00038}00038\ \textcolor{comment}{\ \ \ \ //...}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00039}00039\ \textcolor{comment}{\ \ \ \ else\ if(MB\_Check\_Address\_For\_Arr(Addr,\ Qnt,\ R\_USER\_ADDR,\ R\_USER\_QNT)\ ==\ ET\_NO\_ERRORS)}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00040}00040\ \textcolor{comment}{\ \ \ \ \{}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00041}00041\ \textcolor{comment}{\ \ \ \ \ \ *pRegs\ =\ MB\_Set\_Register\_Ptr(\&user\_regs,\ Addr-\/R\_USER\_ADDR);\ //\ ВАЖНО!}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00042}00042\ \textcolor{comment}{\ \ \ \ \ \ //\ -\/R\_USER\_ADDR\ нужен\ чтобы\ взять\ адрес\ относительно\ начала\ массива}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00043}00043\ \textcolor{comment}{\ \ \ \ \}}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00044}00044\ \textcolor{comment}{\ \ \ \ else\ \ }}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00045}00045\ \textcolor{comment}{\ \ \ \ \{}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00046}00046\ \textcolor{comment}{\ \ \ \ \ \ return\ ET\_ILLEGAL\_DATA\_ADDRESS;}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00047}00047\ \textcolor{comment}{\ \ \ \ \}}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00048}00048\ \textcolor{comment}{\ \ \ @endcode}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00049}00049\ \textcolor{comment}{******************************************************************************/}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00050}00050\ }
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00051}00051\ \textcolor{preprocessor}{\#ifndef\ \_MODBUS\_DATA\_H\_}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00052}00052\ \textcolor{preprocessor}{\#define\ \_MODBUS\_DATA\_H\_}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00053}00053\ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00054}00054\ \textcolor{preprocessor}{\#include\ "{}stdint.h"{}}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00055}00055\ }
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00056}00056\ }
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00057}00057\ }
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00058}00058\ \textcolor{comment}{//-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/SIZES\ OF\ DATA-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00059}00059\ }
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00060}00060\ \textcolor{comment}{//\ DEFINES\ FOR\ INPUT\ REGISTERS\ ARRAYS}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00061}\mbox{\hyperlink{modbus__data_8h_a22bd1273e01d32f90a279b517d1737b6}{00061}}\ \textcolor{preprocessor}{\#define\ \ \ R\_INPUT\_ADDR\ \ \ \ \ \ \ \ 0\ \ \ }\textcolor{comment}{///<\ Начальный\ адрес\ входных\ регистров}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00062}\mbox{\hyperlink{modbus__data_8h_a97c0b1e20498bca34f6dfe0ac0d97b30}{00062}}\ \textcolor{preprocessor}{\#define\ \ \ R\_INPUT\_QNT\ \ \ \ \ \ \ \ \ 16\ \ }\textcolor{comment}{///<\ Количество\ входных\ регистров}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00063}00063\ }
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00064}00064\ \textcolor{comment}{//\ DEFINES\ FOR\ HOLDING\ REGISTERS\ ARRAYS}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00065}\mbox{\hyperlink{modbus__data_8h_a791dfd31cc06338acdd8a2eb3b7032e6}{00065}}\ \textcolor{preprocessor}{\#define\ \ \ R\_HOLDING\_ADDR\ \ \ \ \ \ 0\ \ \ }\textcolor{comment}{///<\ Начальный\ адрес\ регистров\ хранения}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00066}\mbox{\hyperlink{modbus__data_8h_acf40437374a3227e661db1a18bcef7d7}{00066}}\ \textcolor{preprocessor}{\#define\ \ \ R\_HOLDING\_QNT\ \ \ \ \ \ \ 16\ \ }\textcolor{comment}{///<\ Количество\ регистров\ хранения}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00067}00067\ }
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00068}00068\ \textcolor{comment}{//\ DEFINES\ FOR\ COIL\ ARRAYS}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00069}\mbox{\hyperlink{modbus__data_8h_a5057c379abcae88db30ad094eceb952d}{00069}}\ \textcolor{preprocessor}{\#define\ \ \ C\_COILS\_ADDR\ \ \ \ \ \ \ \ 0\ \ \ }\textcolor{comment}{///<\ Начальный\ адрес\ коилов}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00070}\mbox{\hyperlink{modbus__data_8h_a438d957058fcf102c66922f0eada3af2}{00070}}\ \textcolor{preprocessor}{\#define\ \ \ C\_COILS\_QNT\ \ \ \ \ \ \ \ \ 16\ \ }\textcolor{comment}{///<\ Количество\ регистров\ коилов}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00071}00071\ }
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00072}00072\ \textcolor{comment}{//-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/DEFINES\ FOR\ REGISTERS-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00073}00073\ \textcolor{comment}{//\ DEFINES\ FOR\ ARRAYS}\textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00074}00074\ \textcolor{comment}{/**\ }}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00075}00075\ \textcolor{comment}{\ \ *\ @addtogroup\ MODBUS\_DATA\_RERISTERS\_DEFINES\ Registers\ structures}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00076}00076\ \textcolor{comment}{\ \ *\ @ingroup\ \ \ \ MODBUS\_DATA}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00077}00077\ \textcolor{comment}{\ \ *\ @brief\ \ \ \ \ \ Стуруктура\ регистров\ (входных\ и\ хранения)}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00078}00078\ \textcolor{comment}{\ \ @code\ \ \ \ }}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00079}00079\ \textcolor{comment}{\ \ Для\ массивов\ регистров:}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00080}00080\ \textcolor{comment}{\ \ \ \ R\_<NAME\_ARRAY>\_ADDR\ \ \ -\/\ \ модбас\ адресс\ первого\ регистра\ в\ массиве}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00081}00081\ \textcolor{comment}{\ \ \ \ R\_<NAME\_ARRAY>\_QNT\ \ \ \ -\/\ \ количество\ регистров\ в\ массиве}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00082}00082\ \textcolor{comment}{\ \ @endcode}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00083}00083\ \textcolor{comment}{\ \ *\ @\{}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00084}00084\ \textcolor{comment}{\ \ */}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00085}00085\ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00086}00086\ \ \ \textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00087}00087\ \textcolor{comment}{/**\ }}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00088}00088\ \textcolor{comment}{\ \ *\ @brief\ Регистры\ хранения}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00089}00089\ \textcolor{comment}{\ \ */}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00090}\mbox{\hyperlink{struct_m_b___data_in_regs_type_def}{00090}}\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }\textcolor{comment}{//MB\_DataInRegsTypeDef}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00091}00091\ \{}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00092}00092\ \ \ uint16\_t\ in[16];}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00093}00093\ \}\mbox{\hyperlink{struct_m_b___data_in_regs_type_def}{MB\_DataInRegsTypeDef}};}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00094}00094\ }
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00095}00095\ \textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00096}00096\ \textcolor{comment}{/**\ }}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00097}00097\ \textcolor{comment}{\ \ *\ @brief\ Входные\ регистры\ }}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00098}00098\ \textcolor{comment}{\ \ */}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00099}\mbox{\hyperlink{struct_m_b___data_hold_regs_type_def}{00099}}\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }\textcolor{comment}{//MB\_DataInRegsTypeDef}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00100}00100\ \{}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00101}00101\ \ \ uint16\_t\ out[16];}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00102}00102\ \}\mbox{\hyperlink{struct_m_b___data_hold_regs_type_def}{MB\_DataHoldRegsTypeDef}};}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00103}00103\ }
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00104}00104\ \textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00105}00105\ \textcolor{comment}{/**\ MODBUS\_DATA\_RERISTERS\_DEFINES}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00106}00106\ \textcolor{comment}{\ \ *\ @\}\ }}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00107}00107\ \textcolor{comment}{\ \ */}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00108}00108\ }
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00109}00109\ \textcolor{comment}{//-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/DEFINES\ FOR\ COILS-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/}\textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00110}00110\ \textcolor{comment}{/**\ }}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00111}00111\ \textcolor{comment}{\ \ *\ @addtogroup\ MODBUS\_DATA\_COILS\_DEFINES\ Coils\ Structure}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00112}00112\ \textcolor{comment}{\ \ *\ @ingroup\ \ \ \ MODBUS\_DATA}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00113}00113\ \textcolor{comment}{\ \ *\ @brief\ \ \ \ \ \ Структура\ коилов}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00114}00114\ \textcolor{comment}{\ \ @code\ \ \ \ }}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00115}00115\ \textcolor{comment}{\ \ Структура\ дефайна}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00116}00116\ \textcolor{comment}{\ \ Для\ массивов\ коилов:}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00117}00117\ \textcolor{comment}{\ \ \ \ C\_<NAME\_ARRAY>\_ADDR\ \ \ -\/\ модбас\ адресс\ первого\ коила\ в\ массиве}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00118}00118\ \textcolor{comment}{\ \ \ \ C\_<NAME\_ARRAY>\_QNT\ \ \ \ -\/\ количество\ коилов\ в\ массиве\ (минимум\ 16)}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00119}00119\ \textcolor{comment}{\ \ @endcode}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00120}00120\ \textcolor{comment}{\ \ *\ @\{}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00121}00121\ \textcolor{comment}{\ \ */}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00122}00122\ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00123}00123\ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00124}00124\ \ \ \textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00125}00125\ \textcolor{comment}{/**\ }}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00126}00126\ \textcolor{comment}{\ \ *\ @brief\ \ \ \ \ Коилы}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00127}00127\ \textcolor{comment}{\ \ *\ @details\ \ \ Желательно\ с\ помощью\ reserved\ делать\ стркутуру\ кратной\ 16-\/битам}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00128}00128\ \textcolor{comment}{\ \ */}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00129}\mbox{\hyperlink{struct_m_b___data_coils_type_def}{00129}}\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }\textcolor{comment}{//MB\_DataCoilsTypeDef}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00130}00130\ \{}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00131}00131\ \ \ \textcolor{keywordtype}{unsigned}\ reserved:16;}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00132}00132\ \}\mbox{\hyperlink{struct_m_b___data_coils_type_def}{MB\_DataCoilsTypeDef}};}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00133}00133\ \textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00134}00134\ \textcolor{comment}{/**\ MODBUS\_DATA\_COILS\_DEFINES}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00135}00135\ \textcolor{comment}{\ \ *\ @\}\ }}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00136}00136\ \textcolor{comment}{\ \ */}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00137}00137\ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00138}00138\ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00139}00139\ \textcolor{comment}{//-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/MODBUS\ DEVICE\ DATA\ SETTING-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00140}00140\ \textcolor{comment}{//\ MODBUS\ DATA\ STRUCTTURE}\textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00141}00141\ \textcolor{comment}{/**\ }}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00142}00142\ \textcolor{comment}{\ \ *\ @brief\ Структура\ со\ всеми\ регистрами\ и\ коилами\ модбас\ }}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00143}00143\ \textcolor{comment}{\ \ *\ @ingroup\ \ MODBUS\_DATA}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00144}00144\ \textcolor{comment}{\ \ */}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00145}\mbox{\hyperlink{struct_m_b___data_structure_type_def}{00145}}\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }\textcolor{comment}{//\ tester\ modbus\ data}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00146}00146\ \{}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00147}\mbox{\hyperlink{struct_m_b___data_structure_type_def_ac0bf877607c54c79c1d09c4530fdcbca}{00147}}\ \ \ \mbox{\hyperlink{struct_m_b___data_in_regs_type_def}{MB\_DataInRegsTypeDef}}\ \ \ \ \ \ \mbox{\hyperlink{struct_m_b___data_structure_type_def_ac0bf877607c54c79c1d09c4530fdcbca}{InRegs}};\ \ \ \ \ \textcolor{comment}{///<\ Modbus\ input\ registers\ @ref\ MB\_DataInRegsTypeDef}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00148}00148\ }
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00149}\mbox{\hyperlink{struct_m_b___data_structure_type_def_a349e19f82ba85cb29a911468ceee76b2}{00149}}\ \ \ \mbox{\hyperlink{struct_m_b___data_coils_type_def}{MB\_DataCoilsTypeDef}}\ \ \ \ \ \ \ \mbox{\hyperlink{struct_m_b___data_structure_type_def_a349e19f82ba85cb29a911468ceee76b2}{Coils}};\ \ \ \ \ \ \textcolor{comment}{///<\ Modbus\ coils\ @ref\ MB\_DataCoilsTypeDef}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00150}00150\ \ \ }
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00151}\mbox{\hyperlink{struct_m_b___data_structure_type_def_a27d12400f322702e9d87c492e9628313}{00151}}\ \ \ \mbox{\hyperlink{struct_m_b___data_hold_regs_type_def}{MB\_DataHoldRegsTypeDef}}\ \ \ \ \mbox{\hyperlink{struct_m_b___data_structure_type_def_a27d12400f322702e9d87c492e9628313}{HoldRegs}};\ \ \ \textcolor{comment}{///<\ Modbus\ holding\ registers\ @ref\ MB\_DataHoldRegsTypeDef}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00152}00152\ \}\mbox{\hyperlink{struct_m_b___data_structure_type_def}{MB\_DataStructureTypeDef}};}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00153}00153\ \textcolor{keyword}{extern}\ \mbox{\hyperlink{struct_m_b___data_structure_type_def}{MB\_DataStructureTypeDef}}\ MB\_DATA;}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00154}00154\ }
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00155}00155\ }
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00156}00156\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\_MODBUS\_DATA\_H\_}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00157}00157\ \textcolor{comment}{}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00158}00158\ \textcolor{comment}{/////////////////////////////////////////////////////////////}}
|
||
\DoxyCodeLine{\Hypertarget{modbus__data_8h_source_l00159}00159\ \textcolor{comment}{///////////////////////TEMP/OUTDATE/OTHER////////////////////}}
|
||
|
||
\end{DoxyCode}
|