mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 17:33:08 +08:00
feature: driver: add interface for lcd dev driver
add get and set framerate interface for lcd dev driver. Signed-off-by: liushuai25 <liushuai25@xiaomi.com>
This commit is contained in:
committed by
Gustavo Henrique Nihei
parent
3183251de0
commit
fdcd1228b2
@@ -204,6 +204,14 @@ struct lcd_dev_s
|
||||
/* Set LCD panel contrast (0-CONFIG_LCD_MAXCONTRAST) */
|
||||
|
||||
int (*setcontrast)(struct lcd_dev_s *dev, unsigned int contrast);
|
||||
|
||||
/* Set LCD panel frame rate (0: disable refresh) */
|
||||
|
||||
int (*setframerate)(struct lcd_dev_s *dev, int rate);
|
||||
|
||||
/* Get LCD panel frame rate (0: disable refresh) */
|
||||
|
||||
int (*getframerate)(struct lcd_dev_s *dev);
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
@@ -59,6 +59,9 @@
|
||||
#define LCDDEVIO_SETCURSOR _LCDIOC(12) /* Arg: struct fb_setcursor_s* */
|
||||
#endif
|
||||
|
||||
#define LCDDEVIO_SETFRAMERATE _LCDIOC(13) /* Arg: int */
|
||||
#define LCDDEVIO_GETFRAMERATE _LCDIOC(14) /* Arg: int* */
|
||||
|
||||
/****************************************************************************
|
||||
* Public Data
|
||||
****************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user