PebbleOS v4.48.0-75-g7416f78a1
Loading...
Searching...
No Matches

QEMU backlight, driving the brightness (or RGB, with CONFIG_BACKLIGHT_QEMU_COLOR) registers of the QEMU display. More...

Data Structures

struct  pbl_backlight_qemu
 QEMU backlight. More...
 

Macros

#define PBL_BACKLIGHT_QEMU_DEFINE(sym, _name, _base)
 Define the backlight of a QEMU display.
 

Detailed Description

QEMU backlight, driving the brightness (or RGB, with CONFIG_BACKLIGHT_QEMU_COLOR) registers of the QEMU display.


Data Structure Documentation

◆ pbl_backlight_qemu

struct pbl_backlight_qemu

QEMU backlight.

Data Fields
uintptr_t base Register base address of the display.
struct pbl_backlight bl Backlight.

Macro Definition Documentation

◆ PBL_BACKLIGHT_QEMU_DEFINE

#define PBL_BACKLIGHT_QEMU_DEFINE (   sym,
  _name,
  _base 
)
Value:
PBL_DEVICE_INSTANCE(sym, struct pbl_backlight_qemu, struct pbl_backlight, bl) { \
.bl = PBL_BACKLIGHT_INIT(sym, _name "_backlight", nullptr, &pbl_backlight_qemu_ops), \
.base = (_base), \
}
Backlight.
Definition driver.h:52
#define PBL_BACKLIGHT_INIT(sym, _name, _parent, _ops)
Initialize a struct pbl_backlight.
Definition driver.h:86
#define PBL_BACKLIGHT_STATE_DEFINE(sym)
Define the class state of a backlight.
Definition driver.h:71
QEMU backlight.
Definition qemu.h:19

Define the backlight of a QEMU display.

Parameters
symSymbol of the backlight.
_nameName of the display.
_baseRegister base address of the display.