libepaper 2.0.0
A C++23 library for controlling Waveshare e-paper displays on Raspberry Pi, featuring transparent sleep/wake management and a fluent builder API.
Loading...
Searching...
No Matches
epaper::driver_traits< Driver > Struct Template Reference

Driver capabilities trait template. More...

Detailed Description

template<typename Driver>
struct epaper::driver_traits< Driver >

Driver capabilities trait template.

Provides compile-time information about driver capabilities. Must be specialized for each driver implementation.

Required Fields (all must be present in specialization):

Specialization Example:

// For EPD 2.7" BWR display
template <>
static constexpr DisplayMode max_mode = DisplayMode::BWR;
static constexpr bool supports_grayscale = false;
static constexpr bool supports_partial_refresh = false;
static constexpr bool supports_power_control = true;
static constexpr bool supports_wake_from_sleep = true;
static constexpr std::size_t max_width = 264;
static constexpr std::size_t max_height = 176;
};
2.7 inch e-paper display driver (176x264 pixels).
Definition epd27.hpp:190
DisplayMode
Definition driver.hpp:46
Driver capabilities trait template.
Definition capabilities.hpp:110
Template Parameters
DriverThe driver type to query capabilities for
Note
Base template is intentionally incomplete to force specialization. Attempting to use driver_traits<T> without specialization will fail DriverTraits concept check.
See also
DriverTraits, supports_display_mode()

The documentation for this struct was generated from the following file: