📄 testtinytrig.h
字号:
/********************************************************************* FILE: TestTinyTrig.h** DESCRIPTION: The header file for the TinyTrig project module.* It contains contants and data type definitions.** VERSION: 1.0**********************************************************************/// Application Constants#define APP_FILE_CREATOR 'PAKA'#define MIN_ROM_MAJOR 2#define MIN_ROM_MINOR 0#define MIN_ROM_VERSION sysMakeROMVersion ( MIN_ROM_MAJOR, MIN_ROM_MINOR, 0, sysROMStageDevelopment, 0 )// Testing constants#define ROW_HEIGHT 12#define LEFT_MARGIN 4#define LINE_Y( y) (( 2 * ROW_HEIGHT ) + ( y * ROW_HEIGHT )) #define TICK1_CNT_LOC 40 #define TICK2_CNT_LOC 80 #define CNT_CNT_LOC 120 // Test results output headers #define head1 "MLib" #define head2 "TTrig" #define head3 "Times" // Test increment typesenum TEST_TYPE { ADD, MULT };// function prototypesstatic void TestTinyTrig (); static void DispTestResults ( double speed1, // (in) ticks for Mathlib test double speed2, // (in) ticks for NewMath test UInt8 dispRow, // (in) row to display the info UInt16 cnt // (in) # of test iterations );void TTTestFunc( UInt8 lineNum, // (in) order of this test in the full suite double testMin, // (in) starting test value double testMax, // (in) ending value double testIncr, // (in) test sequencing increment char * testMsg, // (in) test starting message double (*testFunc1) ( double ), // (in) Mathlib testing function address double (*testFunc2) ( double ), // (in) TinyTrig testing function address enum TEST_TYPE test, // (in) add, multiply, or add percent double testAccr // (in) required test accuracy);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -