scopead.h
来自「DSP原理及电机控制应用的光盘资料」· C头文件 代码 · 共 22 行
H
22 行
/*--------------------------------------------------------------------------------
File name: scopead.h
Discription: Qvalue variable subroutine for MAX5471 DAC
2003.6.1
---------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------
structure statement
---------------------------------------------------------------------------------*/
typedef struct
{ int Qvalue; //Qx value of the parameters,
//Q16:00h, Q15:01h, Q14:02h, Q13:03h, Q12:04h, Q11:05h, Q10:06h
//Note this parameter must be in range of 0=<Qvalue<=6
int scopeA; //data of A channel
int scopeD; //data of D channel
int scope_para; //which two parameters will be sent out
//refer to the main program
}scope_struct;
/*---------------------------------------------------------------------------------
extern function statement
---------------------------------------------------------------------------------*/
extern void scope(scope_struct *p, int DAC_data_A, int DAC_data_D);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?