hd44780_common.h (71ff701bbefec9e3c342f3a01d2d89b7ae026c71) hd44780_common.h (2c6a82f2342fadfcbd5dd92656e662c326f7a40a)
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2
3#define DEFAULT_LCD_BWIDTH 40
4#define DEFAULT_LCD_HWIDTH 64
5
6struct hd44780_common {
7 int ifwidth; /* 4-bit or 8-bit (default) */
8 int bwidth; /* Default set by hd44780_alloc() */
9 int hwidth; /* Default set by hd44780_alloc() */
10 void (*write_data)(struct hd44780_common *hdc, int data);
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2
3#define DEFAULT_LCD_BWIDTH 40
4#define DEFAULT_LCD_HWIDTH 64
5
6struct hd44780_common {
7 int ifwidth; /* 4-bit or 8-bit (default) */
8 int bwidth; /* Default set by hd44780_alloc() */
9 int hwidth; /* Default set by hd44780_alloc() */
10 void (*write_data)(struct hd44780_common *hdc, int data);
11 void (*write_cmd)(struct hd44780_common *hdc, int cmd);
12 /* write_cmd_raw4 is for 4-bit connected displays only */
13 void (*write_cmd_raw4)(struct hd44780_common *hdc, int cmd);
11 void *hd44780;
12};
13
14struct hd44780_common *hd44780_common_alloc(void);
14 void *hd44780;
15};
16
17struct hd44780_common *hd44780_common_alloc(void);