PebbleOS v4.43.0-131-ga855823dd
Loading...
Searching...
No Matches
pbl_display_ops Struct Reference

Display driver operations. More...

#include <display.h>

Data Fields

int(* init )(const struct pbl_display *disp)
 Set the display up, with the panel on.
 
int(* enable )(const struct pbl_display *disp)
 Turn the panel on.
 
int(* disable )(const struct pbl_display *disp)
 Turn the panel off.
 
int(* set_rotated )(const struct pbl_display *disp, bool rotated)
 Turn the image by 180 degrees, mounting rotation included, from the next update.
 
int(* update )(const struct pbl_display *disp, const struct pbl_display_buffer *buf, uint16_t y0, uint16_t y1)
 Start sending rows y0 to y1 of buf.
 
int(* clear )(const struct pbl_display *disp)
 Clear the image held by the panel.
 

Detailed Description

Display driver operations.

The class layer owns the update state and the rotation request; drivers move rows to the panel and report the end of an update with pbl_display_complete().

Field Documentation

◆ clear

int(* pbl_display_ops::clear) (const struct pbl_display *disp)

Clear the image held by the panel.

Optional. Returns 0 or a negative errno.

◆ disable

int(* pbl_display_ops::disable) (const struct pbl_display *disp)

Turn the panel off.

Returns 0 or a negative errno.

◆ enable

int(* pbl_display_ops::enable) (const struct pbl_display *disp)

Turn the panel on.

Returns 0 or a negative errno.

◆ init

int(* pbl_display_ops::init) (const struct pbl_display *disp)

Set the display up, with the panel on.

Returns 0 or a negative errno.

◆ set_rotated

int(* pbl_display_ops::set_rotated) (const struct pbl_display *disp, bool rotated)

Turn the image by 180 degrees, mounting rotation included, from the next update.

Returns 0 or a negative errno.

◆ update

int(* pbl_display_ops::update) (const struct pbl_display *disp, const struct pbl_display_buffer *buf, uint16_t y0, uint16_t y1)

Start sending rows y0 to y1 of buf.

Returns 0 if pbl_display_complete() will be called, or a negative errno.


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