Debian Codegraph @

lvgl/src/draw/nxp/pxp/lv_pxp_cfg.h

raw symbols SCIP
1 /**
2 * @file lv_pxp_cfg.h
3 *
4 */
5
6 /**
7 * Copyright 2020-2023 NXP
8 *
9 * SPDX-License-Identifier: MIT
10 */
11
12 #ifndef LV_PXP_CFG_H
13 #define LV_PXP_CFG_H
14
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18
19 /*********************
20 * INCLUDES
21 *********************/
22
23 #include "../../../lv_conf_internal.h"
24
25 #if LV_USE_PXP
26 #if LV_USE_DRAW_PXP || LV_USE_ROTATE_PXP
27 #include "fsl_cache.h"
28 #include "fsl_pxp.h"
29
30 #if ((LV_DRAW_BUF_ALIGN % 32) != 0)
31 #error "If PXP is enabled the draw buffers should be aligned to 32-byte boundary, please set LV_DRAW_BUF_ALIGN to a multiple of 32 in lv_conf.h"
32 #endif
33
34 #include "../../../misc/lv_log.h"
35
36 /*********************
37 * DEFINES
38 *********************/
39
40 /** PXP module instance to use*/
41 #define PXP_ID PXP
42
43 /** PXP interrupt line ID*/
44 #define PXP_IRQ_ID PXP_IRQn
45
46 /**********************
47 * TYPEDEFS
48 **********************/
49
50 /**
51 * NXP PXP device configuration.
52 */
53 typedef struct {
54 /** Callback for PXP interrupt initialization*/
55 void (*pxp_interrupt_init)(void);
56
57 /** Callback for PXP interrupt de-initialization*/
58 void (*pxp_interrupt_deinit)(void);
59
60 /** Callback for PXP start*/
61 void (*pxp_run)(void);
62
63 /** Callback for waiting of PXP completion*/
64 void (*pxp_wait)(void);
65 } pxp_cfg_t;
66
67 /**********************
68 * GLOBAL PROTOTYPES
69 **********************/
70
71 /**
72 * Reset and initialize PXP device. This function should be called as a part
73 * of display init sequence.
74 */
75 void lv_pxp_init(void);
76
77 /**
78 * Disable PXP device. Should be called during display deinit sequence.
79 */
80 void lv_pxp_deinit(void);
81
82 /**
83 * Reset PXP device.
84 */
85 void lv_pxp_reset(void);
86
87 /**
88 * Clear cache and start PXP.
89 */
90 void lv_pxp_run(void);
91
92 /**
93 * Wait for PXP completion.
94 */
95 void lv_pxp_wait(void);
96
97 /**********************
98 * MACROS
99 **********************/
100
101 #endif /*LV_USE_DRAW_PXP || LV_USE_ROTATE_PXP*/
102 #endif /*LV_USE_PXP*/
103
104 #ifdef __cplusplus
105 } /*extern "C"*/
106 #endif
107
108 #endif /*LV_PXP_CFG_H*/