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

📄 osmenu.h

📁 应用较为广泛的 杉德 刷卡 POS机 的调用示例。
💻 H
字号:
/*
	Operating System
--------------------------------------------------------------------------
	FILE  osmenu.h
--------------------------------------------------------------------------
    INTRODUCTION
    ============
    Created :		2002-10-03		Xiaoxi Jiang
    Last modified :	2002-10-03		Xiaoxi Jiang
    Module :
    Purpose :
        Header file.

    List of routines in file :

    File history :
*/

#ifndef __OSMENU_H__
#define __OSMENU_H__

#ifdef __cplusplus
extern "C" {
#endif

#define OSMENUERR_SUCCESS		0x00
#define OSMENUERR_ABORT			0x01

#define OSMENU_PAGEMENUITEM		6

typedef struct
{
	unsigned char *pucText;
	unsigned char (*pfnProc)(void);
}OSMENU;

unsigned char OSMENU_Main(void);
unsigned char OSMENU_MainForApp(void);
unsigned char OSMENU_Display(unsigned char *pucTitle,OSMENU *pMENU);

/* oscfg.c */
unsigned char OSCFG_Menu(void);
unsigned char OSCFG_Init(void);

/* osdown.c */
unsigned char OSDOWN_Menu(void);

/* ostest.c */
unsigned char OSTEST_Menu(void);

/* osdev.c */
unsigned char OSDEV_Menu(void);

/* osadm.c */
unsigned char OSADM_Menu(void);




/* OLD */
#define LJMP    02                      /* instruction code LJMP in 8051 */
struct  spage_header 					/* application header structure */
{
	unsigned char   jmp;                    /* long jump (LJMP) */
	unsigned short  addr_jmp;               /* application entry point address */
	unsigned short  crc;                    /* application CRC */
    unsigned short  addr_app_end;           /* application end address */
    unsigned char   app_name[5];            /* application name */
    unsigned char   app_nr;                 /* application number */
    unsigned char   app_version;            /* application version */
};
typedef struct spage_header PAGE_HEADER;

/*--- structure of a menu item ---*/
struct  smenu {
        unsigned char           message[17];    /* message to display */
        unsigned char           nr_of_func;     /* number of functions */
        unsigned char           func_nr;        /* function number */
};
typedef struct smenu MENU;


#ifdef __cplusplus
}
#endif

#endif

⌨️ 快捷键说明

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