初始化demo版本
This commit is contained in:
13
examples/hmi/inc/hmi_camera.h
Normal file
13
examples/hmi/inc/hmi_camera.h
Normal file
@ -0,0 +1,13 @@
|
||||
#ifndef HMI_CAMERA_H
|
||||
#define HMI_CAMERA_H
|
||||
|
||||
#include "hmi_common.h"
|
||||
|
||||
extern const MenuImage_t sgc_CameraImage;
|
||||
|
||||
void Hmi_CameraEnter(const MenuItemInfo_t *pItemInfo);
|
||||
void Hmi_CameraExit(const MenuItemInfo_t *pItemInfo);
|
||||
void Hmi_CameraLoad(const MenuItemInfo_t *pItemInfo);
|
||||
void Hmi_CameraTask(const MenuItemInfo_t *pItemInfo);
|
||||
|
||||
#endif
|
||||
20
examples/hmi/inc/hmi_common.h
Normal file
20
examples/hmi/inc/hmi_common.h
Normal file
@ -0,0 +1,20 @@
|
||||
#ifndef HMI_COMMON_H
|
||||
#define HMI_COMMON_H
|
||||
|
||||
#include "menu.h"
|
||||
|
||||
/* 自定义图标数据 */
|
||||
typedef struct
|
||||
{
|
||||
const char *pImageFrame;
|
||||
const char *pImage;
|
||||
} MenuImage_t;
|
||||
|
||||
// 清除屏幕
|
||||
#define CLEAR() printf("\033[2J")
|
||||
// 定位光标
|
||||
#define MOVETO(x,y) printf("\033[%d;%dH", (x), (y))
|
||||
|
||||
void Hmi_OnCommonFunction(const MenuItemInfo_t *pItemInfo);
|
||||
|
||||
#endif
|
||||
12
examples/hmi/inc/hmi_more_set.h
Normal file
12
examples/hmi/inc/hmi_more_set.h
Normal file
@ -0,0 +1,12 @@
|
||||
#ifndef HMI_MORE_SET_H
|
||||
#define HMI_MORE_SET_H
|
||||
|
||||
#include "hmi_common.h"
|
||||
|
||||
|
||||
void Hmi_MoreSetEnter(const MenuItemInfo_t *pItemInfo);
|
||||
void Hmi_MoreSetExit(const MenuItemInfo_t *pItemInfo);
|
||||
void Hmi_MoreSetLoad(const MenuItemInfo_t *pItemInfo);
|
||||
void Hmi_MoreSetTask(const MenuItemInfo_t *pItemInfo);
|
||||
|
||||
#endif
|
||||
14
examples/hmi/inc/hmi_music.h
Normal file
14
examples/hmi/inc/hmi_music.h
Normal file
@ -0,0 +1,14 @@
|
||||
#ifndef HMI_MUSIC_H
|
||||
#define HMI_MUSIC_H
|
||||
|
||||
#include "hmi_common.h"
|
||||
|
||||
|
||||
extern const MenuImage_t sgc_MusicImage;
|
||||
|
||||
void Hmi_MusicEnter(const MenuItemInfo_t *pItemInfo);
|
||||
void Hmi_MusicExit(const MenuItemInfo_t *pItemInfo);
|
||||
void Hmi_MusicLoad(const MenuItemInfo_t *pItemInfo);
|
||||
void Hmi_MusicTask(const MenuItemInfo_t *pItemInfo);
|
||||
|
||||
#endif
|
||||
13
examples/hmi/inc/hmi_set.h
Normal file
13
examples/hmi/inc/hmi_set.h
Normal file
@ -0,0 +1,13 @@
|
||||
#ifndef HMI_SET_H
|
||||
#define HMI_SET_H
|
||||
|
||||
#include "hmi_common.h"
|
||||
|
||||
extern const MenuImage_t sgc_SettingImage;
|
||||
|
||||
void Hmi_SetEnter(const MenuItemInfo_t *pItemInfo);
|
||||
void Hmi_SetExit(const MenuItemInfo_t *pItemInfo);
|
||||
void Hmi_SetLoad(const MenuItemInfo_t *pItemInfo);
|
||||
void Hmi_SetTask(const MenuItemInfo_t *pItemInfo);
|
||||
|
||||
#endif
|
||||
12
examples/hmi/inc/hmi_video.h
Normal file
12
examples/hmi/inc/hmi_video.h
Normal file
@ -0,0 +1,12 @@
|
||||
#ifndef HMI_VIDEO_H
|
||||
#define HMI_VIDEO_H
|
||||
|
||||
#include "hmi_common.h"
|
||||
|
||||
extern const MenuImage_t sgc_VideoImage;
|
||||
|
||||
void Hmi_VideoLoad(const MenuItemInfo_t *pItemInfo);
|
||||
void Hmi_VideoExit(const MenuItemInfo_t *pItemInfo);
|
||||
void Hmi_VideoTask(const MenuItemInfo_t *pItemInfo);
|
||||
|
||||
#endif
|
||||
9
examples/hmi/inc/mainhmi.h
Normal file
9
examples/hmi/inc/mainhmi.h
Normal file
@ -0,0 +1,9 @@
|
||||
#ifndef MAIN_HMI_H
|
||||
#define MAIN_HMI_H
|
||||
|
||||
#include "hmi_common.h"
|
||||
|
||||
void Hmi_LoadMainHmi(const MenuItemInfo_t *pItemInfo);
|
||||
void Hmi_MainTask(const MenuItemInfo_t *pItemInfo);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user