Software APIs
bitmaps.h
1 // Copyright lowRISC contributors (OpenTitan project).
2 // Licensed under the Apache License, Version 2.0, see LICENSE for details.
3 // SPDX-License-Identifier: Apache-2.0
4 
5 #ifndef OPENTITAN_SW_DEVICE_EXAMPLES_TEACUP_DEMOS_DATA_BITMAPS_H_
6 #define OPENTITAN_SW_DEVICE_EXAMPLES_TEACUP_DEMOS_DATA_BITMAPS_H_
7 
8 #include <stddef.h>
9 #include <stdint.h>
10 
11 /**
12  * A bitmap to draw on a screen.
13  */
14 typedef struct screen_bitmap {
15  /**
16  * Number of rows in the bitmap.
17  */
18  const size_t num_rows;
19  /**
20  * Number of columns in the bitmap.
21  */
22  const size_t num_cols;
23  /**
24  * A 2D bitmap array.
25  */
26  const uint16_t *bitmap;
27  /**
28  * Fill color to surround image by.
29  */
30  const uint16_t fill_color;
32 
33 /**
34  * Example bitmap(s).
35  */
36 extern const screen_bitmap_t kOtLogoBitmap;
37 
38 #endif // OPENTITAN_SW_DEVICE_EXAMPLES_TEACUP_DEMOS_DATA_BITMAPS_H_