|
PebbleOS v4.43.0-131-ga855823dd
|
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. | |
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().
| int(* pbl_display_ops::clear) (const struct pbl_display *disp) |
Clear the image held by the panel.
Optional. Returns 0 or a negative errno.
| int(* pbl_display_ops::disable) (const struct pbl_display *disp) |
Turn the panel off.
Returns 0 or a negative errno.
| int(* pbl_display_ops::enable) (const struct pbl_display *disp) |
Turn the panel on.
Returns 0 or a negative errno.
| int(* pbl_display_ops::init) (const struct pbl_display *disp) |
Set the display up, with the panel on.
Returns 0 or a negative errno.
| 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.
| 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.