⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 aduc812.h

📁 ixp2400 bsp for vxworks
💻 H
字号:
/*modification history--------------------01a,08apr02,lagarwal written*//*This module contains the defines for temp. voltage monitoring device (ADuC812 microcontroller)*/#ifndef INCaduc812h#define INCaduc812h#ifdef __cplusplusextern "C" {#endiftypedef enum volt_id {	ADUC_3_3V_M_ID	= 1,	ADUC_2_5V_M_ID,	ADUC_3_3V_ID,	ADUC_2_5V_ID,	ADUC_1_8V_ID,	ADUC_1_5V_ID,	ADUC_1_3V_ID,	ADUC_1_2_5V_ID} volt_id;typedef enum temp_id {	M_NPU_ID	= 1,	S_NPU_ID} temp_id;typedef enum which_limit {	MONITOR		= 0,	HIGH_LIMIT,	LOW_LIMIT} which_limit;/* these resolutions are in uV */#define ADUC_2_5V_REF_RES	610#define ADUC_5V_REF_RES		1221#define ADUC812_DEV_ID_OFF	0x0#define TEMP_DEV_ID_OFF		0x29#define INT_OFF				0x30#define ADUC812_COMMAND		0x34#define SHUTDOWN_COMMAND	1#define CLEAR_INT			2#define VOLT_A_TO_D_BITS	12#define TEMP_A_TO_D_BITS	8/* aduc interrupt defines */#define ADUC_3_3V_M_HIGH		(1 << 0)#define ADUC_3_3V_M_LOW			(1 << 1)#define ADUC_3_3V_HIGH			(1 << 2)#define ADUC_3_3V_LOW			(1 << 3)#define ADUC_2_5V_M_HIGH		(1 << 4)#define ADUC_2_5V_M_LOW			(1 << 5)#define ADUC_2_5V_HIGH			(1 << 6)#define ADUC_2_5V_LOW			(1 << 7)#define ADUC_1_8V_HIGH			(1 << 8)#define ADUC_1_8V_LOW			(1 << 9)#define ADUC_1_5V_HIGH			(1 << 10)#define ADUC_1_5V_LOW			(1 << 11)#define ADUC_1_3V_HIGH			(1 << 12)#define ADUC_1_3V_LOW			(1 << 13)#define ADUC_1_2_5V_HIGH		(1 << 14)#define ADUC_1_2_5V_LOW			(1 << 15)#define ADUC_MASTER_TEMP_HIGH	(1 << 16)#define ADUC_MASTER_TEMP_LOW	(1 << 17)#define ADUC_SLAVE_TEMP_HIGH	(1 << 18)#define ADUC_SLAVE_TEMP_LOW		(1 << 19)#ifdef __cplusplus}#endif#endif /* INCaduc812h */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -