36static const char*
const s_tag =
"ra8_display_pal";
105 void* backend_ctx =
nullptr;
static const char * s_tag
Logging / check tag.
Annotation-attribute framework macros for ra8-firmware.
#define RA8_INTERNAL
Marker that a function is intended to be static (file-local).
Validation and Error-Checking Macros for ra8-firmware.
#define RA8_CHECK_NULL_PTR(ptr, tag, message)
Reject nullptr pointer, returning k_ra8_err_null_ptr.
ra8_err_t display_get_caps(const display_handle_t *d, display_caps_t *out)
Query the bound backend's runtime capabilities.
display_rect_t display_full_rect(const display_handle_t *d)
Convenience helper returning the rect covering the whole framebuffer.
ra8_err_t display_deinit(const display_handle_t *d)
Release the backend and invalidate the PAL handle.
ra8_err_t display_get_framebuffer(const display_handle_t *d, display_fb_t *out)
Return the framebuffer descriptor the backend is targeting.
ra8_err_t display_clear(const display_handle_t *d, uint32_t color)
Clear the entire framebuffer to color.
static bool s_initialized
True once display_init has succeeded.
static ra8_err_t internal_validate_handle(const display_handle_t *d)
Reject d if it is NULL or refers to an un-initialised handle.
ra8_err_t display_flush(const display_handle_t *d, display_rect_t rect, display_refresh_hint_t hint)
Commit pending framebuffer changes to the panel.
ra8_err_t display_init(const display_cfg_t *cfg, display_handle_t **out_handle)
Initialise the display PAL and bring the selected backend up to a state where display_flush succeeds.
static struct display_handle s_handle
Single PAL handle – one display per board.
Display Platform Abstraction Layer for the RA8D2.
struct display_handle display_handle_t
display_refresh_hint_t
Intent passed into display_flush; backends map this onto whatever waveform/mode their controller offe...
Internal vtable + handle types for the display PAL.
Error Code Definitions for ra8-firmware.
@ k_ra8_err_busy
Resource busy – blocking operation cannot proceed.
@ k_ra8_err_invalid_arg
Invalid function argument.
@ k_ra8_ok
Success – operation completed with all postconditions satisfied.
@ k_ra8_err_null_ptr
Pointer was NULL where a valid pointer was required.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Lightweight Logging Interface for ra8-firmware.
#define ra8_log_info(tag, message)
RA8 log info.
#define ra8_log_error(tag, message)
RA8 log error.
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.
Capabilities a backend reports after display_init.
uint16_t width_px
Display visible width.
uint16_t height_px
Display visible height.
Configuration descriptor passed into display_init.
const display_backend_iface_t * iface
Backend vtable (one of the k_display_backend_* consts).
Framebuffer descriptor returned by display_get_framebuffer.
Opaque handle returned by display_init.
Rectangle in framebuffer coordinates passed into display_flush.