-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp_main_page.h
72 lines (61 loc) · 1.64 KB
/
app_main_page.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/**
* Copyright (c) 2020 Rockchip Electronics Co., Ltd
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef __APP_MAIN_PAGE__
#define __APP_MAIN_PAGE__
#include <rtthread.h>
/*
**************************************************************************************************
*
* Macro define
*
**************************************************************************************************
*/
/*
**************************************************************************************************
*
* Struct & data define
*
**************************************************************************************************
*/
struct app_main_page_private
{
void *fb;
int tar_page;
};
extern struct app_page_data_t *app_main_page;
extern struct app_touch_cb_t main_page_touch_cb;
typedef struct
{
void (*cb)(void);
uint32_t cycle_ms;
} app_main_page_timer_cb_t;
extern app_main_page_timer_cb_t main_page_timer_cb[CLOCK_HOR_PAGE_MAX];
struct app_page_touch_ops
{
void (*touch_down)(void *param);
void (*touch_up)(void *param);
};
// Params
typedef struct
{
rt_int8_t buf_id;
} main_page_design_param_t;
extern app_disp_refrsh_param_t main_page_refrsh_param;
/*
**************************************************************************************************
*
* Declaration
*
**************************************************************************************************
*/
/**
* App clock fast init.
*/
rt_err_t app_main_page_refresh(struct rt_display_config *wincfg, void *param);
rt_err_t app_main_page_clock_design(void *param);
void app_main_page_clock_update(void);
void app_main_page_init(void);
#endif