2024-12-27 10:50:32 +03:00
|
|
|
|
/*
|
|
|
|
|
* word_structurs.h
|
|
|
|
|
*
|
|
|
|
|
* Created on: 5 <EFBFBD><EFBFBD><EFBFBD>. 2020 <EFBFBD>.
|
|
|
|
|
* Author: Yura
|
|
|
|
|
*/
|
|
|
|
|
|
2025-01-15 13:39:33 +03:00
|
|
|
|
#ifndef SRC_LIBS_NIO12_WORD_STRUCTURS_H_
|
|
|
|
|
#define SRC_LIBS_NIO12_WORD_STRUCTURS_H_
|
2024-12-27 10:50:32 +03:00
|
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
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; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
int all; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
} WORD_INT2BITS_STRUCT; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
//////
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
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; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
unsigned int all; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
} WORD_UINT2BITS_STRUCT; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
//////
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-01-15 13:39:33 +03:00
|
|
|
|
#endif /* SRC_LIBS_NIO12_WORD_STRUCTURS_H_ */
|