PebbleOS v4.47.0-1362-gd278268fe
Loading...
Searching...
No Matches
driver.h File Reference
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <pbl/device.h>
#include <pbl/drivers/display.h>
#include <pbl/drivers/ram.h>
#include <pbl/kernel/timer.h>

Data Structures

struct  pbl_display_ops
 Display driver operations. More...
 
struct  pbl_display
 A display. More...
 

Macros

#define PBL_DISPLAY_STATE_DEFINE(sym)
 Define the class state of display sym, for the PBL_*_DEFINE() macro of a driver.
 
#define PBL_DISPLAY_INIT_FRAMEBUFFER(sym, _name, _parent, _ops, _width, _height, _format, _rotated, _fb, _fb_size, _fb_ram, ...)
 Initializer for the struct pbl_display of display sym, with the memory the board reserves for its framebuffer.
 
#define PBL_DISPLAY_INIT(sym, _name, _parent, _ops, _width, _height, _format, _rotated, ...)
 Initializer for the struct pbl_display of display sym.
 

Functions

int pbl_display_dev_init (const struct pbl_device *dev)
 Device init of every display: sets the class state up, then calls the driver's init.
 
void pbl_display_complete (const struct pbl_display *disp, int status)
 Report the end of the update in flight.