|
PebbleOS v4.47.0-512-g5285d4236
|
Data Structures | |
| struct | pbl_backlight_ops |
| Backlight driver operations, called with the device lock held. More... | |
| struct | pbl_backlight_state |
| Backlight runtime state. More... | |
| struct | pbl_backlight |
| Backlight. More... | |
Macros | |
| #define | PBL_BACKLIGHT_BRIGHTNESS_MAX 100U |
| Maximum brightness. | |
| #define | PBL_BACKLIGHT_STATE_DEFINE(sym) |
| Define the class state of a backlight. | |
| #define | PBL_BACKLIGHT_INIT(sym, _name, _parent, _ops) |
| Initialize a struct pbl_backlight. | |
Backlight colors | |
Colors for pbl_backlight_set_color(), as 0xRRGGBB. Not gamma-corrected. | |
| #define | BACKLIGHT_COLOR_RED 0xFF0000 |
| Red. | |
| #define | BACKLIGHT_COLOR_GREEN 0x00FF00 |
| Green. | |
| #define | BACKLIGHT_COLOR_BLUE 0x0000FF |
| Blue. | |
| #define | BACKLIGHT_COLOR_BLACK 0x000000 |
| Black (off). | |
| #define | BACKLIGHT_COLOR_WHITE 0xFFFFFF |
| White. | |
| #define | BACKLIGHT_COLOR_WARM_WHITE 0xFFBFA2 |
| Warm white. | |
Functions | |
| int | pbl_backlight_set_brightness (const struct pbl_backlight *bl, uint8_t brightness) |
| Set the brightness. | |
| uint8_t | pbl_backlight_get_level (const struct pbl_backlight *bl, uint8_t brightness) |
| Map a brightness to an opaque hardware level identifier. | |
| int | pbl_backlight_refresh (const struct pbl_backlight *bl) |
| Re-apply the brightness and color to the hardware. | |
| int | pbl_backlight_set_color (const struct pbl_backlight *bl, uint32_t rgb_color) |
| Set the color. | |
| uint32_t | pbl_backlight_get_color (const struct pbl_backlight *bl) |
| Get the color. | |
Variables | |
| const struct pbl_backlight *const | BACKLIGHT |
| The board's backlight. | |