📄 main.h
字号:
/************************************************
*
* $Copyright 2001 Joseph J. Lemieux ALL RIGHTS RESERVED. $
*
* $Filename: C:\OSEKBook\src\CH07\inc\main.h $
*
* Description: Header file for the main application module.
*
************************************************/
#ifndef MAINH
#define MAINH
/************************************************
*
* Type Definitions
*
************************************************/
/*****
*
* Application specific errors. This section is
* used throughout the application to pass errors.
*
*****/
typedef enum ApplicationErrorTypetag {
ERROR_NONE,
ERROR_INVALID_MODE
}ApplicationErrorType;
/************************************************
*
* Public macros
*
************************************************/
/************************************************
*
* Public Function Prototypes
*
************************************************/
/************************************************
*
* Function: ChangeMode
*
* Inputs: mode - mode that is being requested.
*
* Outputs: none
*
* Returns: If mode cannot be switched, returns
* ERROR_INVALID_MODE.
*
* Description: If the mode is valid, shuts down the OS
* and never returns. Otherwise, returns an
* error.
*
************************************************/
ApplicationErrorType ChangeMode(AppModeType mode);
/************************************************
*
* Public Constants
*
************************************************/
#endif /* MAINH */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -