1
2 /**************************************************************************/
3 /* */
4 /* Copyright (c) Microsoft Corporation. All rights reserved. */
5 /* */
6 /* This software is licensed under the Microsoft Software License */
7 /* Terms for Microsoft Azure RTOS. Full text of the license can be */
8 /* found in the LICENSE file at https://aka.ms/AzureRTOS_EULA */
9 /* and in the root directory of this software. */
10 /* */
11 /**************************************************************************/
12
13
14 /**************************************************************************/
15 /**************************************************************************/
16 /** */
17 /** GUIX Component */
18 /** */
19 /** Display Management (Display) */
20 /** */
21 /**************************************************************************/
22
23 #define GX_SOURCE_CODE
24 /* Include necessary system files. */
25
26 #include "gx_api.h"
27 #include "gx_display.h"
28
29
30 /**************************************************************************/
31 /* */
32 /* FUNCTION RELEASE */
33 /* */
34 /* _gx_display_driver_4444argb_setup PORTABLE C */
35 /* 6.1 */
36 /* AUTHOR */
37 /* */
38 /* Kenneth Maxwell, Microsoft Corporation */
39 /* */
40 /* DESCRIPTION */
41 /* */
42 /* Generic 16-bit 4444ARGB color format display driver setup routine. */
43 /* */
44 /* INPUT */
45 /* */
46 /* display The display control block */
47 /* aux_data Driver-defined auxiliary data */
48 /* toggle_function Driver-defined screen toggle */
49 /* function */
50 /* */
51 /* OUTPUT */
52 /* */
53 /* None */
54 /* */
55 /* CALLS */
56 /* */
57 /* _gx_display_driver_565rgb_setup Basic display driver setup . */
58 /* function for generic 565rgb */
59 /* color format */
60 /* */
61 /* CALLED BY */
62 /* */
63 /* GUIX Internal Code */
64 /* */
65 /* RELEASE HISTORY */
66 /* */
67 /* DATE NAME DESCRIPTION */
68 /* */
69 /* 05-19-2020 Kenneth Maxwell Initial Version 6.0 */
70 /* 09-30-2020 Kenneth Maxwell Modified comment(s), */
71 /* resulting in version 6.1 */
72 /* */
73 /**************************************************************************/
_gx_display_driver_4444argb_setup(GX_DISPLAY * display,VOID * aux_data,VOID (* toggle_function)(struct GX_CANVAS_STRUCT * canvas,GX_RECTANGLE * dirty_area))74 VOID _gx_display_driver_4444argb_setup(GX_DISPLAY *display, VOID *aux_data,
75 VOID (*toggle_function)(struct GX_CANVAS_STRUCT *canvas,
76 GX_RECTANGLE *dirty_area))
77 {
78 _gx_display_driver_565rgb_setup(display, aux_data, toggle_function);
79 display -> gx_display_color_format = GX_COLOR_FORMAT_4444ARGB;
80 display -> gx_display_driver_native_color_get = _gx_display_driver_4444argb_native_color_get;
81 display -> gx_display_driver_pixelmap_draw = _gx_display_driver_4444argb_pixelmap_draw;
82 display -> gx_display_driver_pixelmap_blend = _gx_display_driver_4444argb_pixelmap_blend;
83 display -> gx_display_driver_canvas_blend = _gx_display_driver_4444argb_canvas_blend;
84 display -> gx_display_driver_pixel_blend = _gx_display_driver_4444argb_pixel_blend;
85 display -> gx_display_driver_horizontal_pixelmap_line_draw = _gx_display_driver_4444argb_horizontal_pixelmap_line_draw;
86 display -> gx_display_driver_pixelmap_rotate = _gx_display_driver_4444argb_pixelmap_rotate;
87 }
88
89