ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_display_pal_internal.h
Go to the documentation of this file.
1
28
29#pragma once
30
31#ifdef __cplusplus
32extern "C" {
33#endif
34
35#include <stdint.h>
36
37#include "ra8_display_pal.h"
38#include "ra8_err.h"
39
64 ra8_err_t (*init)(const display_cfg_t* cfg, void** out_ctx);
65
67 ra8_err_t (*get_caps)(const void* ctx, display_caps_t* out);
68
71
74
76 ra8_err_t (*clear)(void* ctx, uint32_t color);
77
79 ra8_err_t (*deinit)(void* ctx);
80};
81
100
101#ifdef __cplusplus
102}
103#endif
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.
Definition ra8_err.h:546
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.