17#ifndef __VSF_DISP_SITRONIX_COMMON_H__
18#define __VSF_DISP_SITRONIX_COMMON_H__
24#if VSF_USE_UI == ENABLED \
25 && ( (VSF_DISP_USE_ST7789 == ENABLED) \
26 || (VSF_DISP_USE_ST7735 == ENABLED))
28#if defined(__VSF_DISP_SITRONIX_CLASS_IMPLEMENT)
29# undef __VSF_DISP_SITRONIX_CLASS_IMPLEMENT
30# define __VSF_CLASS_IMPLEMENT__
31#elif defined(__VSF_DISP_SITRONIX_CLASS_INHERIT__)
32# undef __VSF_DISP_SITRONIX_CLASS_INHERIT__
33# define __VSF_CLASS_INHERIT__
44#define VSF_DISP_SITRONIX_PORT_SPI 0
45#define VSF_DISP_SITRONIX_PORT_EBI 1
47#ifndef VSF_DISP_SITRONIX_CFG_PORT
48# define VSF_DISP_SITRONIX_CFG_PORT VSF_DISP_SITRONIX_PORT_SPI
53#define VSF_DISP_SITRONIX_WRITE(__CMD, __PARAM_LEN, ...) \
54 (__CMD), (__PARAM_LEN), ##__VA_ARGS__
62#if VSF_DISP_SITRONIX_CFG_PORT == VSF_DISP_SITRONIX_PORT_SPI
vsf_err_t
Definition __type.h:42
Definition vsf_disp_sitronix_common.h:58
Definition vsf_disp.h:173
unsigned short uint16_t
Definition lvgl.h:41
unsigned int uint32_t
Definition lvgl.h:43
unsigned char uint8_t
Definition lvgl.h:40
#define vsf_class(__name)
Definition ooc_class.h:48
unsigned short uint_fast16_t
Definition stdint.h:25
vsf_err_t vk_disp_sitronix_seq(vk_disp_sitronix_t *disp_sitronix, uint8_t *seq, uint_fast16_t seq_len)
Definition vsf_disp_sitronix_common.c:127
void vk_disp_sitronix_init(vk_disp_sitronix_t *disp_sitronix)
Definition vsf_disp_sitronix_common.c:68
vsf_err_t vk_disp_sitronix_write(vk_disp_sitronix_t *disp_sitronix, uint8_t cmd, uint8_t *param, uint_fast16_t param_len)
Definition vsf_disp_sitronix_common.c:96
void vk_disp_sitronix_reset(vk_disp_sitronix_t *disp_sitronix, bool reset)
Definition vsf_disp_sitronix_common.c:84
uint8_t state
Definition vsf_msg_tree.h:247