charlcd.h (d3a2fb810f273b7a2c393d4de28ae91a3f76985d) charlcd.h (88645a86e3420cddfe5bb9cd8d7c15aff8f54b46)
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*
3 * Character LCD driver for Linux
4 *
5 * Copyright (C) 2000-2008, Willy Tarreau <w@1wt.eu>
6 * Copyright (C) 2016-2017 Glider bvba
7 */
8

--- 27 unchanged lines hidden (view full) ---

36 * @clear_fast: Clear the whole display and set cursor to position 0, 0.
37 * Optional.
38 * @backlight: Turn backlight on or off. Optional.
39 * @print: Print one character to the display at current cursor position.
40 * The buffered cursor position is advanced by charlcd. The cursor should not
41 * wrap to the next line at the end of a line.
42 * @gotoxy: Set cursor to x, y. The x and y values to set the cursor to are
43 * previously set in addr.x and addr.y by charlcd.
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*
3 * Character LCD driver for Linux
4 *
5 * Copyright (C) 2000-2008, Willy Tarreau <w@1wt.eu>
6 * Copyright (C) 2016-2017 Glider bvba
7 */
8

--- 27 unchanged lines hidden (view full) ---

36 * @clear_fast: Clear the whole display and set cursor to position 0, 0.
37 * Optional.
38 * @backlight: Turn backlight on or off. Optional.
39 * @print: Print one character to the display at current cursor position.
40 * The buffered cursor position is advanced by charlcd. The cursor should not
41 * wrap to the next line at the end of a line.
42 * @gotoxy: Set cursor to x, y. The x and y values to set the cursor to are
43 * previously set in addr.x and addr.y by charlcd.
44 * @home: Set cursor to 0, 0. The values in addr.x and addr.y are set to 0, 0 by
45 * charlcd prior to calling this function.
44 */
45struct charlcd_ops {
46 void (*clear_fast)(struct charlcd *lcd);
47 void (*backlight)(struct charlcd *lcd, enum charlcd_onoff on);
48 int (*print)(struct charlcd *lcd, int c);
49 int (*gotoxy)(struct charlcd *lcd);
46 */
47struct charlcd_ops {
48 void (*clear_fast)(struct charlcd *lcd);
49 void (*backlight)(struct charlcd *lcd, enum charlcd_onoff on);
50 int (*print)(struct charlcd *lcd, int c);
51 int (*gotoxy)(struct charlcd *lcd);
52 int (*home)(struct charlcd *lcd);
50};
51
52struct charlcd *charlcd_alloc(void);
53void charlcd_free(struct charlcd *lcd);
54
55int charlcd_register(struct charlcd *lcd);
56int charlcd_unregister(struct charlcd *lcd);
57
58void charlcd_poke(struct charlcd *lcd);
59
60#endif /* CHARLCD_H */
53};
54
55struct charlcd *charlcd_alloc(void);
56void charlcd_free(struct charlcd *lcd);
57
58int charlcd_register(struct charlcd *lcd);
59int charlcd_unregister(struct charlcd *lcd);
60
61void charlcd_poke(struct charlcd *lcd);
62
63#endif /* CHARLCD_H */