\doxysection{bit\+\_\+access.\+h} \hypertarget{bit__access_8h_source}{}\label{bit__access_8h_source}\index{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibsGeneral/Inc/bit\_access.h@{E:/.WORK/STM32/STM32\_ExtendedLibs/MyLibsGeneral/Inc/bit\_access.h}} \begin{DoxyCode}{0} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00001}00001\ \textcolor{comment}{/**\ }} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00002}00002\ \textcolor{comment}{**************************************************************************}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00003}00003\ \textcolor{comment}{*\ @file\ mylibs\_defs.h}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00004}00004\ \textcolor{comment}{*\ @brief\ Заголочный\ файл\ для\ дефайнов\ библиотеки\ MyLibsGeneral.}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00005}00005\ \textcolor{comment}{**************************************************************************}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00006}00006\ \textcolor{comment}{*\ @defgroup\ BIT\_ACCESS\_DEFINES\ \ \ \ Bit\ access\ defines}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00007}00007\ \textcolor{comment}{*\ @ingroup\ \ MYLIBS\_DEFINES}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00008}00008\ \textcolor{comment}{*\ @brief\ \ \ \ \ Макросы\ и\ typedef'ы\ для\ работы\ с\ битами\ в\ unsigned\ типах.}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00009}00009\ \textcolor{comment}{*\ @details}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00010}00010\ \textcolor{comment}{*\ В\ этом\ файле\ определены\ макросы\ для\ получения\ значения\ конкретного\ бита\string^}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00011}00011\ \textcolor{comment}{*\ -\/\ @ref\ uint8\_bit}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00012}00012\ \textcolor{comment}{*\ -\/\ @ref\ uint16\_bit}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00013}00013\ \textcolor{comment}{*\ -\/\ @ref\ uint32\_bit}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00014}00014\ \textcolor{comment}{*\ -\/\ @ref\ uint64\_bit}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00015}00015\ \textcolor{comment}{*}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00016}00016\ \textcolor{comment}{*\ Особенности\ использования:}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00017}00017\ \textcolor{comment}{*\ \ -\/\ Индекс\ бита\ должен\ быть\ **константой\ на\ этапе\ компиляции**.}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00018}00018\ \textcolor{comment}{*\ \ \ \ Пример\ верного\ использования:}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00019}00019\ \textcolor{comment}{*\ \ \ \ \ \ @code}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00020}00020\ \textcolor{comment}{*\ \ \ \ \ \ \ \ uint8\_t\ val\ =\ 0x05;}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00021}00021\ \textcolor{comment}{*\ \ \ \ \ \ \ \ uint8\_t\ b2\ =\ uint8\_bit(val,\ 2);\ //\ Получить\ бит\ 2}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00022}00022\ \textcolor{comment}{*\ \ \ \ \ \ \ \ uint8\_bit(val,\ 6)\ =\ 1;\ //\ Записать\ бит\ 6}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00023}00023\ \textcolor{comment}{*\ \ \ \ \ \ @endcode}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00024}00024\ \textcolor{comment}{*\ \ -\/\ Нельзя\ использовать\ переменные\ в\ качестве\ индекса:}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00025}00025\ \textcolor{comment}{*\ \ \ \ \ \ @code}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00026}00026\ \textcolor{comment}{*\ \ \ \ \ \ \ \ uint8\_t\ i\ =\ 2;}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00027}00027\ \textcolor{comment}{*\ \ \ \ \ \ \ \ uint8\_bit(val,\ i);\ //\ Не\ сработает!}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00028}00028\ \textcolor{comment}{*\ \ \ \ \ \ @endcode}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00029}00029\ \textcolor{comment}{*\ \ -\/\ Макросы\ возвращают\ 0\ или\ 1.}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00030}00030\ \textcolor{comment}{*\ \ -\/\ Доступ\ реализован\ через\ приведение\ к\ \`{}union`\ с\ битовыми\ полями,\ поэтому\ это}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00031}00031\ \textcolor{comment}{*\ \ \ \ безопасный\ способ\ работы\ с\ отдельными\ битами\ без\ ручного\ сдвига\ и\ маскирования.}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00032}00032\ \textcolor{comment}{*\ @\{}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00033}00033\ \textcolor{comment}{*************************************************************************/}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00034}00034\ \textcolor{preprocessor}{\#ifndef\ \_\_BIT\_ACCESS\_H\_}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00035}00035\ \textcolor{preprocessor}{\#define\ \_\_BIT\_ACCESS\_H\_}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00036}00036\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{mylibs__defs_8h}{mylibs\_defs.h}}"{}}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00037}00037\ } \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00038}00038\ \ \ } \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00039}\mbox{\hyperlink{unionuint8___bit_type_def}{00039}}\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{union}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00040}00040\ \{} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00041}00041\ \ \ uint8\_t\ all;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00042}00042\ \ \ \textcolor{keyword}{struct}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00043}00043\ \ \ \{} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00044}00044\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit0:1;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00045}00045\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit1:1;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00046}00046\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit2:1;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00047}00047\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit3:1;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00048}00048\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit4:1;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00049}00049\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit5:1;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00050}00050\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit6:1;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00051}00051\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit7:1;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00052}00052\ \ \ \}bit;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00053}00053\ \}\mbox{\hyperlink{unionuint8___bit_type_def}{uint8\_BitTypeDef}};} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00054}00054\ } \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00055}\mbox{\hyperlink{unionuint16___bit_type_def}{00055}}\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{union}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00056}00056\ \{} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00057}00057\ \ \ uint16\_t\ all;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00058}00058\ \ \ \textcolor{keyword}{struct}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00059}00059\ \ \ \{} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00060}00060\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit0:1;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00061}00061\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit1:1;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00062}00062\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit2:1;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00063}00063\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit3:1;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00064}00064\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit4:1;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00065}00065\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit5:1;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00066}00066\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit6:1;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00067}00067\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit7:1;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00068}00068\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit8:1;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00069}00069\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit9:1;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00070}00070\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit10:1;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00071}00071\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit11:1;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00072}00072\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit12:1;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00073}00073\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit13:1;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00074}00074\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit14:1;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00075}00075\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit15:1;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00076}00076\ \ \ \}bit;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00077}00077\ \}\mbox{\hyperlink{unionuint16___bit_type_def}{uint16\_BitTypeDef}};} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00078}00078\ } \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00079}00079\ } \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00080}\mbox{\hyperlink{unionuint32___bit_type_def}{00080}}\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{union}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00081}00081\ \{} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00082}00082\ \ \ uint32\_t\ all;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00083}00083\ \ \ \textcolor{keyword}{struct}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00084}00084\ \ \ \{} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00085}00085\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit0:1;\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit1:1;\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit2:1;\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit3:1;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00086}00086\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit4:1;\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit5:1;\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit6:1;\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit7:1;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00087}00087\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit8:1;\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit9:1;\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit10:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit11:1;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00088}00088\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit12:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit13:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit14:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit15:1;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00089}00089\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit16:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit17:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit18:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit19:1;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00090}00090\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit20:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit21:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit22:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit23:1;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00091}00091\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit24:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit25:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit26:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit27:1;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00092}00092\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit28:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit29:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit30:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit31:1;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00093}00093\ \ \ \}bit;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00094}00094\ \}\mbox{\hyperlink{unionuint32___bit_type_def}{uint32\_BitTypeDef}};} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00095}00095\ } \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00096}00096\ } \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00097}\mbox{\hyperlink{unionuint64___bit_type_def}{00097}}\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{union}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00098}00098\ \{} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00099}00099\ \ \ uint64\_t\ all;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00100}00100\ \ \ \textcolor{keyword}{struct}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00101}00101\ \ \ \{} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00102}00102\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit0:1;\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit1:1;\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit2:1;\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit3:1;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00103}00103\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit4:1;\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit5:1;\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit6:1;\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit7:1;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00104}00104\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit8:1;\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit9:1;\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit10:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit11:1;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00105}00105\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit12:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit13:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit14:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit15:1;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00106}00106\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit16:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit17:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit18:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit19:1;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00107}00107\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit20:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit21:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit22:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit23:1;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00108}00108\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit24:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit25:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit26:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit27:1;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00109}00109\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit28:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit29:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit30:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit31:1;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00110}00110\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit32:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit33:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit34:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit35:1;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00111}00111\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit36:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit37:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit38:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit39:1;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00112}00112\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit40:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit41:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit42:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit43:1;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00113}00113\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit44:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit45:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit46:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit47:1;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00114}00114\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit48:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit49:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit50:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit51:1;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00115}00115\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit52:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit53:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit54:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit55:1;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00116}00116\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit56:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit57:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit58:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit59:1;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00117}00117\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ bit60:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit61:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit62:1;\ \ \ \ \textcolor{keywordtype}{unsigned}\ bit63:1;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00118}00118\ \ \ \}bit;} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00119}00119\ \}\mbox{\hyperlink{unionuint64___bit_type_def}{uint64\_BitTypeDef}};} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00120}00120\ } \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00121}00121\ \textcolor{comment}{}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00122}00122\ \textcolor{comment}{/**}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00123}00123\ \textcolor{comment}{\ \ *\ @brief\ Получить\ n-\/й\ бит\ из\ uint8\_t}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00124}00124\ \textcolor{comment}{\ \ *\ @param\ \_uint8\_\ Переменная\ типа\ uint8\_t}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00125}00125\ \textcolor{comment}{\ \ *\ @param\ \_bit\_\ \ \ Константный\ номер\ бита\ (0..7)}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00126}00126\ \textcolor{comment}{\ \ *\ @return\ Значение\ выбранного\ бита\ (0\ или\ 1)}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00127}00127\ \textcolor{comment}{\ \ *\ @note\ \ \ \ Индекс\ бита\ должен\ быть\ известен\ на\ этапе\ компиляции!}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00128}00128\ \textcolor{comment}{\ \ */}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00129}\mbox{\hyperlink{group___b_i_t___a_c_c_e_s_s___d_e_f_i_n_e_s_ga57dc3bb3472a66fc92312f89d42d2396}{00129}}\ \textcolor{preprocessor}{\#define\ uint8\_bit(\_uint8\_,\ \_bit\_)\ \ \ \ \ \ \ (*(uint8\_BitTypeDef\ *)(\&(\_uint8\_))).bit.bit\#\#\_bit\_}\textcolor{comment}{}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00130}00130\ \textcolor{comment}{/**}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00131}00131\ \textcolor{comment}{\ \ *\ @brief\ Получить\ n-\/й\ бит\ из\ uint16\_t}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00132}00132\ \textcolor{comment}{\ \ *\ @param\ \_uint16\_\ Переменная\ типа\ uint16\_t}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00133}00133\ \textcolor{comment}{\ \ *\ @param\ \_bit\_\ \ \ \ Константный\ номер\ бита\ (0..15)}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00134}00134\ \textcolor{comment}{\ \ *\ @return\ Значение\ выбранного\ бита\ (0\ или\ 1)}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00135}00135\ \textcolor{comment}{\ \ *\ @note\ \ \ \ Индекс\ бита\ должен\ быть\ известен\ на\ этапе\ компиляции!}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00136}00136\ \textcolor{comment}{\ \ */}\textcolor{preprocessor}{}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00137}\mbox{\hyperlink{group___b_i_t___a_c_c_e_s_s___d_e_f_i_n_e_s_ga6a122b536ad99ae611c8cf01437af086}{00137}}\ \textcolor{preprocessor}{\#define\ uint16\_bit(\_uint8\_,\ \_bit\_)\ \ \ \ \ \ (*(uint16\_BitTypeDef\ *)(\&(\_uint8\_))).bit.bit\#\#\_bit\_}\textcolor{comment}{}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00138}00138\ \textcolor{comment}{/**}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00139}00139\ \textcolor{comment}{\ \ *\ @brief\ Получить\ n-\/й\ бит\ из\ uint32\_t}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00140}00140\ \textcolor{comment}{\ \ *\ @param\ \_uint32\_\ Переменная\ типа\ uint32\_t}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00141}00141\ \textcolor{comment}{\ \ *\ @param\ \_bit\_\ \ \ \ Константный\ номер\ бита\ (0..31)}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00142}00142\ \textcolor{comment}{\ \ *\ @return\ Значение\ выбранного\ бита\ (0\ или\ 1)}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00143}00143\ \textcolor{comment}{\ \ *\ @note\ \ \ \ Индекс\ бита\ должен\ быть\ известен\ на\ этапе\ компиляции!}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00144}00144\ \textcolor{comment}{\ \ */}\textcolor{preprocessor}{}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00145}\mbox{\hyperlink{group___b_i_t___a_c_c_e_s_s___d_e_f_i_n_e_s_gafaa2080168b1b6f7281e8bfabab022d1}{00145}}\ \textcolor{preprocessor}{\#define\ uint32\_bit(\_uint8\_,\ \_bit\_)\ \ \ \ \ \ (*(uint32\_BitTypeDef\ *)(\&(\_uint8\_))).bit.bit\#\#\_bit\_}\textcolor{comment}{}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00146}00146\ \textcolor{comment}{/**}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00147}00147\ \textcolor{comment}{\ \ *\ @brief\ Получить\ n-\/й\ бит\ из\ uint64\_t}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00148}00148\ \textcolor{comment}{\ \ *\ @param\ \_uint64\_\ Переменная\ типа\ uint64\_t}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00149}00149\ \textcolor{comment}{\ \ *\ @param\ \_bit\_\ \ \ \ Константный\ номер\ бита\ (0..63)}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00150}00150\ \textcolor{comment}{\ \ *\ @return\ Значение\ выбранного\ бита\ (0\ или\ 1)}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00151}00151\ \textcolor{comment}{\ \ *\ @note\ \ \ \ Индекс\ бита\ должен\ быть\ известен\ на\ этапе\ компиляции!}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00152}00152\ \textcolor{comment}{\ \ */}\textcolor{preprocessor}{}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00153}\mbox{\hyperlink{group___b_i_t___a_c_c_e_s_s___d_e_f_i_n_e_s_ga47eb69ce9330a1c73fe8031240f02f0a}{00153}}\ \textcolor{preprocessor}{\#define\ uint64\_bit(\_uint8\_,\ \_bit\_)\ \ \ \ \ \ (*(uint64\_BitTypeDef\ *)(\&(\_uint8\_))).bit.bit\#\#\_bit\_}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00154}00154\ } \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00155}00155\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\_\_BIT\_ACCESS\_H\_\ }} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00156}00156\ \textcolor{comment}{}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00157}00157\ \textcolor{comment}{/**\ BIT\_ACCESS\_DEFINES}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00158}00158\ \textcolor{comment}{\ \ *\ @\}}} \DoxyCodeLine{\Hypertarget{bit__access_8h_source_l00159}00159\ \textcolor{comment}{\ \ */}} \end{DoxyCode}