QNAP-TS419p system daemon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
948 B

  1. #ifndef _LCD_H_
  2. #define _LCD_H_
  3. struct lcddev; /* private data */
  4. struct lcddev * lcd_open(const char *devicename, int backlight_timeout);
  5. void lcd_close(struct lcddev *dev);
  6. int lcd_set_backlight(struct lcddev *dev, int enable);
  7. int lcd_setlines(struct lcddev *dev, const char *line1, const char *line2);
  8. #define LCDPAGE_EVENT_BUTTON1 0xFFFFFF01 /* button "enter" pressed */
  9. #define LCDPAGE_EVENT_BUTTON2 0xFFFFFF02 /* button "select" pressed */
  10. #define LCDPAGE_EVENT_BACKLIGHT 0xFFFFFF03 /* backlight timeout */
  11. #define LCDPAGE_EVENT_ENTER 0xFFFFFF05 /* page entered */
  12. #define LCDPAGE_EVENT_EXIT 0xFFFFFF06 /* page left */
  13. #define LCDPAGE_EVENT_UPDATE 0xFFFFFF07 /* update content */
  14. #define LCDPAGE_COMMAND_NEXT 0xFFFFFF80 /* change to next page */
  15. int lcd_addpage_cb(struct lcddev *dev,
  16. int priority,
  17. int (*event_callback)(struct lcddev *dev, int event, void *privdata),
  18. void *event_privdata);
  19. #endif /* _LCD_H_ */