|
PebbleOS
|
Backlight driver operations, called with the device lock held. More...
#include <backlight.h>
Data Fields | |
| int(* | init )(const struct pbl_backlight *bl) |
| Bring the hardware up. | |
| int(* | set_brightness )(const struct pbl_backlight *bl, uint8_t brightness) |
Apply brightness; the state still holds the previous one. | |
| uint8_t(* | get_level )(const struct pbl_backlight *bl, uint8_t brightness) |
| Optional. | |
| int(* | refresh )(const struct pbl_backlight *bl) |
| Optional. | |
| int(* | set_color )(const struct pbl_backlight *bl, uint32_t rgb_color) |
| Optional. | |
Backlight driver operations, called with the device lock held.
| uint8_t(* pbl_backlight_ops::get_level) (const struct pbl_backlight *bl, uint8_t brightness) |
Optional.
Map a brightness to a hardware level identifier, for drivers with fewer levels than brightness steps.
| int(* pbl_backlight_ops::init) (const struct pbl_backlight *bl) |
Bring the hardware up.
Returns 0, -ENODEV if the part does not answer, or a negative errno.
| int(* pbl_backlight_ops::refresh) (const struct pbl_backlight *bl) |
Optional.
Re-apply the state to the hardware.
| int(* pbl_backlight_ops::set_brightness) (const struct pbl_backlight *bl, uint8_t brightness) |
Apply brightness; the state still holds the previous one.
| int(* pbl_backlight_ops::set_color) (const struct pbl_backlight *bl, uint32_t rgb_color) |
Optional.
Apply rgb_color; the state still holds the previous one.