![]() |
![]() |
|
LittlevGL
3.20.00.19
|
Input Device HAL interface layer header file
#include "../../../lv_conf.h"#include <stdbool.h>#include <stdint.h>#include "../lv_misc/lv_area.h"#include "../lv_misc/lv_task.h"

Go to the source code of this file.
Data Structures | |
| struct | lv_indev_data_t |
| struct | _lv_indev_drv_t |
| struct | _lv_indev_proc_t |
| struct | _lv_indev_t |
Typedefs | |
| typedef uint8_t | lv_indev_type_t |
| typedef uint8_t | lv_indev_state_t |
| typedef struct _lv_indev_drv_t | lv_indev_drv_t |
| typedef struct _lv_indev_proc_t | lv_indev_proc_t |
| typedef struct _lv_indev_t | lv_indev_t |
Enumerations | |
| enum | { LV_INDEV_TYPE_NONE, LV_INDEV_TYPE_POINTER, LV_INDEV_TYPE_KEYPAD, LV_INDEV_TYPE_BUTTON, LV_INDEV_TYPE_ENCODER } |
| enum | { LV_INDEV_STATE_REL = 0, LV_INDEV_STATE_PR } |
Functions | |
| void | lv_indev_drv_init (lv_indev_drv_t *driver) |
| lv_indev_t * | lv_indev_drv_register (lv_indev_drv_t *driver) |
| void | lv_indev_drv_update (lv_indev_t *indev, lv_indev_drv_t *new_drv) |
| lv_indev_t * | lv_indev_get_next (lv_indev_t *indev) |
| bool | lv_indev_read (lv_indev_t *indev, lv_indev_data_t *data) |
| typedef uint8_t lv_indev_type_t |
| typedef uint8_t lv_indev_state_t |
| typedef struct _lv_indev_drv_t lv_indev_drv_t |
Initialized by the user and registered by 'lv_indev_add()'
| typedef struct _lv_indev_proc_t lv_indev_proc_t |
Run time data of input devices Internally used by the library, you should not need to touch it.
| typedef struct _lv_indev_t lv_indev_t |
The main input device descriptor with driver, runtime data ('proc') and some additional information
| anonymous enum |
Possible input device types
| void lv_indev_drv_init | ( | lv_indev_drv_t * | driver | ) |
Initialize an input device driver with default values. It is used to surly have known values in the fields ant not memory junk. After it you can set the fields.
| driver | pointer to driver variable to initialize |
| lv_indev_t* lv_indev_drv_register | ( | lv_indev_drv_t * | driver | ) |
Register an initialized input device driver.
| driver | pointer to an initialized 'lv_indev_drv_t' variable (can be local variable) |
| void lv_indev_drv_update | ( | lv_indev_t * | indev, |
| lv_indev_drv_t * | new_drv | ||
| ) |
Update the driver in run time.
| indev | pointer to a input device. (return value of lv_indev_drv_register) |
| new_drv | pointer to the new driver |
| lv_indev_t* lv_indev_get_next | ( | lv_indev_t * | indev | ) |
Get the next input device.
| indev | pointer to the current input device. NULL to initialize. |
| bool lv_indev_read | ( | lv_indev_t * | indev, |
| lv_indev_data_t * | data | ||
| ) |
Read data from an input device.
| indev | pointer to an input device |
| data | input device will write its data here |