aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios-contrib/ext/mcux-sdk/components/slcd_engine/LCD-S401M16KR/LCD-S401M16KR.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/components/slcd_engine/LCD-S401M16KR/LCD-S401M16KR.h')
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/components/slcd_engine/LCD-S401M16KR/LCD-S401M16KR.h88
1 files changed, 88 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/components/slcd_engine/LCD-S401M16KR/LCD-S401M16KR.h b/lib/chibios-contrib/ext/mcux-sdk/components/slcd_engine/LCD-S401M16KR/LCD-S401M16KR.h
new file mode 100644
index 000000000..e14c3fad8
--- /dev/null
+++ b/lib/chibios-contrib/ext/mcux-sdk/components/slcd_engine/LCD-S401M16KR/LCD-S401M16KR.h
@@ -0,0 +1,88 @@
1/*
2 * Copyright 2019-2020 NXP
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef _LCD_S401M16KR_H_
8#define _LCD_S401M16KR_H_
9
10#include <stdint.h>
11
12/*
13 * Change log:
14 *
15 * 1.0.2:
16 * - Fix MISRA 2012 issues.
17 *
18 * 1.0.1:
19 * - Add macro SLCD_ENGINE_PIN_VAL.
20 *
21 * 1.0.0:
22 * - Initial version.
23 */
24
25#define SLCD_PIN_NUM 8 /* pin number */
26#define SLCD_BACKPLANE_NUM 4 /* backplane number */
27#define SLCD_FIELD_NUM (LCD_PIN_NUM * LCD_BACKPLANE_NUM)
28#define SLCD_ENGINE_PIN_VAL(pin, val) (((pin) << 8U) | ((val) << 0U))
29
30typedef enum
31{
32 NUM_POS1 = 0,
33 NUM_POS2,
34 NUM_POS3,
35 NUM_POS4,
36 NUM_POSEND
37} tSLCD_Segment_Num;
38
39typedef enum
40{
41 /* Number part 1 */
42 ICON_1A = 0,
43 ICON_1B,
44 ICON_1C,
45 ICON_1D,
46 ICON_1E,
47 ICON_1F,
48 ICON_1G,
49
50 /* Number part 2 */
51 ICON_2A,
52 ICON_2B,
53 ICON_2C,
54 ICON_2D,
55 ICON_2E,
56 ICON_2F,
57 ICON_2G,
58
59 /* Number part 3 */
60 ICON_3A,
61 ICON_3B,
62 ICON_3C,
63 ICON_3D,
64 ICON_3E,
65 ICON_3F,
66 ICON_3G,
67
68 /* Number part 4 */
69 ICON_4A,
70 ICON_4B,
71 ICON_4C,
72 ICON_4D,
73 ICON_4E,
74 ICON_4F,
75 ICON_4G,
76
77 /* icon part */
78 ICON_DP1,
79 ICON_DP2,
80 ICON_DP3,
81 ICON_COL,
82 ICON_END
83} tSLCD_Segment_Icon;
84
85extern const uint16_t SLCD_Icon[];
86extern const uint16_t **SLCD_NumPos[];
87
88#endif /* _LCD_S401M16KR_H_ */