SIMULINK_A7DAC
1.0
Control of A7_DAC device
|
Формирование сигнала More...
#include <tf_dds.h>
Public Member Functions | |
TF_DDS (CL_Reg *reg) | |
virtual | ~TF_DDS () |
void | Prepare (int flagLoadSinTable) |
Подготовка More... | |
void | SetDacFreq (double syntFreq, double Freq0, double Phase0, double Ampl0, double Freq1, double Phase1, double Ampl1) |
Установка частоты More... | |
void | SetPhase (double syntFreq, double Freq, double Phase, __int64 &phase_start, __int64 &phase_inc) |
void | SetCntStart (int regCntEnable, int regCntDisable, int regPeriod, int isContinuePeriod, int isCntEnable) |
Установка счётчиков старта More... | |
int | isPeriodComplete (void) |
Завершение вывода More... | |
void | DacStart (int enable, int start) |
Запуск и останов More... | |
Private Attributes | |
TF_DDS_TaskData * | td |
Внутренние данные класса More... | |
TF_DDS::TF_DDS | ( | CL_Reg * | reg | ) |
Definition at line 23 of file tf_dds.cpp.
References TF_DDS_TaskData::reg, and td.
|
virtual |
Definition at line 30 of file tf_dds.cpp.
References td.
void TF_DDS::DacStart | ( | int | enable, |
int | start | ||
) |
Запуск и останов
Definition at line 233 of file tf_dds.cpp.
References CL_Reg::PkgCmdExecute(), CL_Reg::PkgCmdStart(), CL_Reg::PkgCmdWrite(), TF_DDS_TaskData::reg, and td.
Referenced by TF_A7DacCtrl::EventStartCycle(), TF_A7DacCtrl::isCycleCompletion(), and TF_A7DacCtrl::ReStartSession().
int TF_DDS::isPeriodComplete | ( | void | ) |
Завершение вывода
Definition at line 218 of file tf_dds.cpp.
References CL_Reg::PkgCmdExecute(), CL_Reg::PkgCmdRead(), CL_Reg::PkgCmdStart(), TF_DDS_TaskData::reg, and td.
Referenced by TF_A7DacCtrl::isCycleCompletion(), and SetCntStart().
void TF_DDS::Prepare | ( | int | flagLoadSinTable | ) |
Подготовка
Подготовка PLL.
Definition at line 37 of file tf_dds.cpp.
References CL_Reg::PkgCmdExecute(), CL_Reg::PkgCmdRead(), CL_Reg::PkgCmdStart(), CL_Reg::PkgCmdWrite(), TF_DDS_TaskData::reg, and td.
Referenced by TF_A7DacCtrl::Prepare().
void TF_DDS::SetCntStart | ( | int | regCntEnable, |
int | regCntDisable, | ||
int | regPeriod, | ||
int | isContinuePeriod, | ||
int | isCntEnable | ||
) |
Установка счётчиков старта
Definition at line 186 of file tf_dds.cpp.
References isPeriodComplete(), CL_Reg::PkgCmdExecute(), CL_Reg::PkgCmdStart(), CL_Reg::PkgCmdWrite(), TF_DDS_TaskData::reg, and td.
Referenced by TF_A7DacCtrl::EventStartCycle(), and TF_A7DacCtrl::Prepare().
void TF_DDS::SetDacFreq | ( | double | syntFreq, |
double | Freq0, | ||
double | Phase0, | ||
double | Ampl0, | ||
double | Freq1, | ||
double | Phase1, | ||
double | Ampl1 | ||
) |
Установка частоты
Definition at line 131 of file tf_dds.cpp.
References CL_Reg::PkgCmdExecute(), CL_Reg::PkgCmdStart(), CL_Reg::PkgCmdWrite(), TF_DDS_TaskData::reg, SetPhase(), and td.
Referenced by TF_A7DacCtrl::EventStartCycle(), and TF_A7DacCtrl::Prepare().
void TF_DDS::SetPhase | ( | double | syntFreq, |
double | Freq, | ||
double | Phase, | ||
__int64 & | phase_start, | ||
__int64 & | phase_inc | ||
) |
Definition at line 120 of file tf_dds.cpp.
Referenced by SetDacFreq().
|
private |
Внутренние данные класса
Definition at line 20 of file tf_dds.h.
Referenced by DacStart(), isPeriodComplete(), Prepare(), SetCntStart(), SetDacFreq(), TF_DDS(), and ~TF_DDS().