Razvalyaev
7e0063eee0
Все основные файлы подтянуты без изменений Изменены (только папка main_matlab): - заглушки для ненужных функций (main_matlab.c) - iq библиотека (IQmathLib_matlab.c) - библиотеки DSP281x
65 lines
1.9 KiB
C
65 lines
1.9 KiB
C
/*
|
|
* word_structurs.h
|
|
*
|
|
* Created on: 5 èþí. 2020 ã.
|
|
* Author: Yura
|
|
*/
|
|
|
|
#ifndef SRC_LIBS_NIO12_WORD_STRUCTURS_H_
|
|
#define SRC_LIBS_NIO12_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_LIBS_NIO12_WORD_STRUCTURS_H_ */
|