📄 test.h
字号:
/*************************************************************************
CNMtest.h
These are the CobraNet Module manufacturing test functions include file.
Copyright (C) 2001-2004 by Cirrus Logic Inc. All Rights Reserved
*************************************************************************/
#ifndef CNMTest_h
#define CNMTest_h
#define cWAIT_ONE_SECOND 0x003F,0x0A // approx. 1 second
#define mMUTEWAIT 0x0000,0x23 // approx. 5 seconds
#define mHALFSECOND 0x002C,0x05 // approx. .5 seconds
#define mMSECOND10 0x0000,0x01 //approx 10 milliseconds
//the frequency of the watchdawg pulse is approx. 375 Hz.
//we are measuring for one second and looking for a count
//that will fall between 400 and 350
//all the operations are done using 8-bit variables
#define cDAWG_MIN 94 //This is actually 350-256
#define cDAWG_MAX 144 //this is actually 400-256
#define cDAWG_UPPER 0x01 //multiply this by 256
//or use lsb of upper byte of 16-bit counter
extern code struct command_item_t testev_command;
extern unsigned char testWatchDawg( unsigned short * dawg_count );
extern unsigned near unsigned short testMemory();
extern unsigned char testHost( unsigned char get_details );
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -