example_dps2812m_dido.h
来自「代码是北京合众达公司提供的TMS320F2812的例子程序」· C头文件 代码 · 共 41 行
H
41 行
/* =================================================================================
File name: Example_DPS2812M_DIDO.H
Originator: SEED R&D Group
Description:
Header file containing constants, data type definitions, and
function prototypes for the DI/DO Example.
=====================================================================================
History:
-------------------------------------------------------------------------------------
10-20-2005 Release Rev 1.0 Jijunhui
------------------------------------------------------------------------------*/
#include "math.h"
#ifndef __Example_DPS2812M_DIDO_H__
#define __Example_DPS2812M_DIDO_H__
//**************************************************************/
//* DIDO Data struct*/
//**************************************************************/
typedef struct {
unsigned int TestSel; //0固定给定,1连减2连加
unsigned int DOutCs; //数字量输出选通
unsigned int DInCs; //数字量输入选通
unsigned int DOutData; //数字量输出数据
unsigned int DInData; //数字量输入数据
void (*DIDOPro)(); //DAC处理主程序
}DIDO_DRV;
#define DIDO_DRV_DEFAULTS {1,0,0,1,0,\
(void (*)(Uint32))DIDOPro,\
}
void DIDOPro(DIDO_DRV *);
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?