SIMULINK_A7DAC  1.0
Control of A7_DAC device
tf_dds.h
Go to the documentation of this file.
1 #ifndef TF_DDS_H
2 #define TF_DDS_H
3 
4 //#include <QtGlobal>
5 
6 struct TF_DDS_TaskData;
7 
8 class CL_Reg;
9 
10 /**
11  * \brief Формирование сигнала
12  *
13  *
14  *
15  */
16 
17 class TF_DDS
18 {
19  //! Внутренние данные класса
21 
22 public:
23 
24  TF_DDS( CL_Reg *reg );
25 
26  virtual ~TF_DDS();
27 
28  //! Подготовка
29  void Prepare(int flagLoadSinTable );
30 
31  //! Установка частоты
32  void SetDacFreq( double syntFreq, double Freq0, double Phase0, double Ampl0, double Freq1, double Phase1, double Ampl1 );
33 
34  void SetPhase( double syntFreq, double Freq, double Phase, __int64& phase_start, __int64& phase_inc );
35 
36  //! Установка счётчиков старта
37  void SetCntStart( int regCntEnable, int regCntDisable, int regPeriod, int isContinuePeriod, int isCntEnable );
38 
39  //! Завершение вывода
40  int isPeriodComplete( void );
41 
42  //! Запуск и останов
43  void DacStart( int enable, int start );
44 };
45 
46 #endif // TF_DDS_H
void SetCntStart(int regCntEnable, int regCntDisable, int regPeriod, int isContinuePeriod, int isCntEnable)
Установка счётчиков старта
Definition: tf_dds.cpp:186
Формирование сигнала
Definition: tf_dds.h:17
virtual ~TF_DDS()
Definition: tf_dds.cpp:30
void DacStart(int enable, int start)
Запуск и останов
Definition: tf_dds.cpp:233
int isPeriodComplete(void)
Завершение вывода
Definition: tf_dds.cpp:218
Доступ к регистраи
Definition: cl_reg.h:13
void Prepare(int flagLoadSinTable)
Подготовка
Definition: tf_dds.cpp:37
TF_DDS(CL_Reg *reg)
Definition: tf_dds.cpp:23
TF_DDS_TaskData * td
Внутренние данные класса
Definition: tf_dds.h:20
void SetPhase(double syntFreq, double Freq, double Phase, __int64 &phase_start, __int64 &phase_inc)
Definition: tf_dds.cpp:120
void SetDacFreq(double syntFreq, double Freq0, double Phase0, double Ampl0, double Freq1, double Phase1, double Ampl1)
Установка частоты
Definition: tf_dds.cpp:131