Display Platform Abstraction Layer for the RA8D2.
struct display_backend_iface display_backend_iface_t
display_refresh_hint_t
Intent passed into display_flush; backends map this onto whatever waveform/mode their controller offe...
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Opaque to applications – backends implement this internally and export a const instance through their...
ra8_err_t(* clear)(void *ctx, uint32_t color)
Clear the framebuffer to color.
ra8_err_t(* init)(const display_cfg_t *cfg, void **out_ctx)
Bring the backend up against cfg and return its private context pointer through *out_ctx.
ra8_err_t(* flush)(void *ctx, display_rect_t rect, display_refresh_hint_t hint)
Commit pending FB changes to the panel.
ra8_err_t(* get_caps)(const void *ctx, display_caps_t *out)
Fill in *out with the backend's capabilities.
ra8_err_t(* get_framebuffer)(void *ctx, display_fb_t *out)
Hand out the framebuffer descriptor for paint loops.
ra8_err_t(* deinit)(void *ctx)
Tear down.
Capabilities a backend reports after display_init.
Configuration descriptor passed into display_init.
Framebuffer descriptor returned by display_get_framebuffer.
Opaque handle returned by display_init.
void * ctx
Backend-private context ptr.
const display_backend_iface_t * iface
Bound backend vtable.
Rectangle in framebuffer coordinates passed into display_flush.