PebbleOS
Loading...
Searching...
No Matches
pbl_backlight_ops Struct Reference

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.
 

Detailed Description

Backlight driver operations, called with the device lock held.

Field Documentation

◆ get_level

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.

◆ init

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.

◆ refresh

int(* pbl_backlight_ops::refresh) (const struct pbl_backlight *bl)

Optional.

Re-apply the state to the hardware.

◆ set_brightness

int(* pbl_backlight_ops::set_brightness) (const struct pbl_backlight *bl, uint8_t brightness)

Apply brightness; the state still holds the previous one.

◆ set_color

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.


The documentation for this struct was generated from the following file: