matlab_23550/Inu/Src2/main/word_structurs.h
2024-12-27 10:50:32 +03:00

65 lines
1.9 KiB
C

/*
* word_structurs.h
*
* Created on: 5 èþí. 2020 ã.
* Author: Yura
*/
#ifndef SRC_MYLIBS_WORD_STRUCTURS_H_
#define SRC_MYLIBS_WORD_STRUCTURS_H_
////////////////////////////////////////////////////////////////////////////////
typedef union
{
struct
{
unsigned int bit0: 1;
unsigned int bit1: 1;
unsigned int bit2: 1;
unsigned int bit3: 1;
unsigned int bit4: 1;
unsigned int bit5: 1;
unsigned int bit6: 1;
unsigned int bit7: 1;
unsigned int bit8: 1;
unsigned int bit9: 1;
unsigned int bit10: 1;
unsigned int bit11: 1;
unsigned int bit12: 1;
unsigned int bit13: 1;
unsigned int bit14: 1;
unsigned int bit15: 1;
} bits; // Äèñêðåòíûå âåëè÷èíû ïîñûëêè ïîáèòíî
int all; // Äèñêðåòíûå âåëè÷èíû ïîñûëêè âìåñòå
} WORD_INT2BITS_STRUCT; // Ñòðóêòóðà ñëîâ ãîòîâà ñ ïîáèòîâûì äîñòóïîì
//////
////////////////////////////////////////////////////////////////////////////////
typedef union
{
struct
{
unsigned int bit0: 1;
unsigned int bit1: 1;
unsigned int bit2: 1;
unsigned int bit3: 1;
unsigned int bit4: 1;
unsigned int bit5: 1;
unsigned int bit6: 1;
unsigned int bit7: 1;
unsigned int bit8: 1;
unsigned int bit9: 1;
unsigned int bit10: 1;
unsigned int bit11: 1;
unsigned int bit12: 1;
unsigned int bit13: 1;
unsigned int bit14: 1;
unsigned int bit15: 1;
} bits; // Äèñêðåòíûå âåëè÷èíû ïîñûëêè ïîáèòíî
unsigned int all; // Äèñêðåòíûå âåëè÷èíû ïîñûëêè âìåñòå
} WORD_UINT2BITS_STRUCT; // Ñòðóêòóðà ñëîâ ãîòîâà ñ ïîáèòîâûì äîñòóïîì
//////
#endif /* SRC_MYLIBS_WORD_STRUCTURS_H_ */