📄 testcase.h
字号:
/******************************************************************************
C H E A D E R F I L E
ALL RIGHTS RESERVED
*******************************************************************************
Project Name : BONO System Test Program
Project No. :
Title :
File Name : testcase.h
Last Modified: 12/27/2005
(MM/DD/YYYY)
Description : Prototype definition header for BONO silicon system test program.
Assumptions :
Dependency Comments :
Project Specific Data :
History (MM/DD/YYYY) :
12/27/2005 - Initial Proposal
******************************************************************************/
#ifndef _TESTCASE_H
#define _TESTCASE_H
/*************************** Header File Includes ****************************/
#include "common.h"
/********************************* Constants *********************************/
/******************************** Enumeration ********************************/
typedef enum {
OK,
// Add other failure cases here. For example....
ERR_INIT_FAILED,
ERR_TIMEOUT,
ERR_INVALID_CASE
} status_t;
/****************************** Basic Data types *****************************/
typedef status_t (* testfunc_t) (void);
/************************* Structure/Union Data types ************************/
/* test case structure */
typedef struct
{
testfunc_t func;
uint8_t caseNum;
} testcase_t;
/* point structure */
typedef struct
{
uint16_t x; /* x point */
uint16_t y; /* y point */
} point_t, *p_point_t;
/* area structure */
typedef struct
{
point_t top; /* Top left corner */
point_t bottom; /* Bottom right corner */
} area_t, *p_area_t;
/********************************** Macros ***********************************/
/******************************* Global Data *********************************/
/*************************** Function prototype (S) **************************/
#ifdef EXTERN
#undef EXTERN
#endif
#ifdef PROTO_DEFINE_FUNCS
#define EXTERN
#else
#define EXTERN extern
#endif
EXTERN status_t case1(void);
EXTERN status_t case2(void);
EXTERN status_t case3(void);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -