mikroSDK Reference Manual
lv_monkey.h
Go to the documentation of this file.
1
5#ifndef LV_MONKEY_H
6#define LV_MONKEY_H
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12/*********************
13 * INCLUDES
14 *********************/
15#include "../../../lvgl.h"
16
17#if LV_USE_MONKEY != 0
18
19/*********************
20 * DEFINES
21 *********************/
22
23/**********************
24 * TYPEDEFS
25 **********************/
26struct _lv_monkey;
27typedef struct _lv_monkey lv_monkey_t;
28
29typedef struct {
31 lv_indev_type_t type;
32
34 struct {
35 uint32_t min;
36 uint32_t max;
37 } period_range;
38
40 struct {
41 int32_t min;
42 int32_t max;
43 } input_range;
44} lv_monkey_config_t;
45
46/**********************
47 * GLOBAL PROTOTYPES
48 **********************/
49
54void lv_monkey_config_init(lv_monkey_config_t * config);
55
61lv_monkey_t * lv_monkey_create(const lv_monkey_config_t * config);
62
68lv_indev_t * lv_monkey_get_indev(lv_monkey_t * monkey);
69
75void lv_monkey_set_enable(lv_monkey_t * monkey, bool en);
76
82bool lv_monkey_get_enable(lv_monkey_t * monkey);
83
84#if LV_USE_USER_DATA
85
91void lv_monkey_set_user_data(lv_monkey_t * monkey, void * user_data);
92
98void * lv_monkey_get_user_data(lv_monkey_t * monkey);
99
100#endif/*LV_USE_USER_DATA*/
101
106void lv_monkey_del(lv_monkey_t * monkey);
107
108/**********************
109 * MACROS
110 **********************/
111
112#endif /*LV_USE_MONKEY*/
113
114#ifdef __cplusplus
115} /*extern "C"*/
116#endif
117
118#endif /*LV_MONKEY_H*/
lv_indev_type_t
Definition lv_hal_indev.h:62
Definition lv_hal_indev.h:176