charlcd.h (88645a86e3420cddfe5bb9cd8d7c15aff8f54b46) | charlcd.h (45421ffefbb5f195de02ead952755329ef8576d8) |
---|---|
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 --- 29 unchanged lines hidden (view full) --- 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. | 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 --- 29 unchanged lines hidden (view full) --- 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. |
46 * @clear_display: Again clear the whole display, set the cursor to 0, 0. The 47 * values in addr.x and addr.y are set to 0, 0 by charlcd prior to calling this 48 * function. |
|
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); | 49 */ 50struct charlcd_ops { 51 void (*clear_fast)(struct charlcd *lcd); 52 void (*backlight)(struct charlcd *lcd, enum charlcd_onoff on); 53 int (*print)(struct charlcd *lcd, int c); 54 int (*gotoxy)(struct charlcd *lcd); 55 int (*home)(struct charlcd *lcd); |
56 int (*clear_display)(struct charlcd *lcd); |
|
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 */ | 57}; 58 59struct charlcd *charlcd_alloc(void); 60void charlcd_free(struct charlcd *lcd); 61 62int charlcd_register(struct charlcd *lcd); 63int charlcd_unregister(struct charlcd *lcd); 64 65void charlcd_poke(struct charlcd *lcd); 66 67#endif /* CHARLCD_H */ |