clean interface for sub-drivers wrt backlight, contrast and brightness
This commit is contained in:
@@ -195,6 +195,7 @@ typedef struct driver_private_data {
|
||||
typedef struct hwDependentFns {
|
||||
// microsec pauses
|
||||
void (*uPause)(PrivateData *p, int usecs);
|
||||
|
||||
// report and debug helper: set by global hd44780 init
|
||||
void (*drv_report)(const int level, const char *format, .../*args*/);
|
||||
void (*drv_debug)(const int level, const char *format, .../*args*/);
|
||||
@@ -213,11 +214,6 @@ typedef struct hwDependentFns {
|
||||
// value - new value to be set
|
||||
void (*set_contrast)(PrivateData *p, unsigned char value);
|
||||
|
||||
// Switch the backlight on or off
|
||||
// state - backlight state to set the new value for
|
||||
// value - new value to be set
|
||||
void (*set_brightness)(PrivateData *p, int backlight, unsigned char value);
|
||||
|
||||
// Read the keypad
|
||||
// Ydata - the up to 11 bits that should be put on the Y side of the matrix
|
||||
// return - the up to 5 bits that are read out on the X side of the matrix
|
||||
|
||||
Reference in New Issue
Block a user