20#ifndef __VSF_INPUT_SENSOR_H__
21#define __VSF_INPUT_SENSOR_H__
24#include "../vsf_input_cfg.h"
26#include "../vsf_input_get_type.h"
34#define vsf_input_sensor_set(__event, __type, __subtype, __min, __max, __res, __value)\
36 (__event)->id = ((uint64_t)(__type) << 0) | ((uint64_t)(__subtype) << 32);\
37 (__event)->info.minimum = (__min); \
38 (__event)->info.maximum = (__max); \
39 (__event)->info.resolution = (__res); \
40 (__event)->cur.val64 = (__value); \
43#define vsf_input_sensor_get_type(__event) \
44 ((vk_sensor_type_t)(((__event)->id >> 0) & 0xFFFFFFFF))
45#define vsf_input_sensor_get_subtype(__event) \
46 ((vk_sensor_subtype_t)(((__event)->id >> 32) & 0xFFFFFFFF))
unsigned int uint32_t
Definition lvgl.h:43
signed int int32_t
Definition lvgl.h:44
Definition vsf_input_sensor.h:81
vk_input_evt_t vk_sensor_info_t info
Definition vsf_input_sensor.h:83
Definition vsf_input_sensor.h:75
int32_t maximum
Definition vsf_input_sensor.h:77
uint32_t resolution
Definition vsf_input_sensor.h:78
int32_t minimum
Definition vsf_input_sensor.h:76