Traits for display devices.
More...
#include <fastarduino/devices/display.h>
|
static constexpr bool | IS_DISPLAY = false |
| Marker of display devices. More...
|
|
static constexpr XCOORD | MAX_X = 0 |
| The maximum X coordinate for DEVICE . More...
|
|
static constexpr YCOORD | MAX_Y = 0 |
| The maximum Y coordinate for DEVICE . More...
|
|
static constexpr uint8_t | WIDTH = 0 |
| The width in pixels of DEVICE . More...
|
|
static constexpr uint8_t | HEIGHT = 0 |
| The height in pixels of DEVICE . More...
|
|
static constexpr bool | VERTICAL_FONT = false |
| Tells if DEVICE uses vertical fonts (e.g. More...
|
|
static constexpr bool | HAS_RASTER = false |
| Tells if DEVICE implements a bitmap raster in SRAM (e.g. More...
|
|
template<typename DEVICE>
struct devices::display::DisplayDeviceTrait< DEVICE >
Traits for display devices.
Each display device must define a DisplayDeviceTrait<MyDevice>
struct with its characteristics.
The simplest way to do that is to use DisplayDeviceTrait_impl
as a base class for each device trait class:
template<board::DigitalPin SCE, board::DigitalPin DC, board::DigitalPin RST>
SPI device driver for Nokia 5110 display chip.
Default base class for all DisplayDeviceTrait.
Traits for display devices.
- Template Parameters
-
DEVICE | the actual display device class for which to define traits |
- See also
- DisplayDeviceTrait_impl
Definition at line 341 of file display.h.
◆ COLOR
template<typename DEVICE >
The type of a pixel for DEVICE
.
May be bool
for B&W displays, or any more complex type (eg bitfields struct) for displays with large range of colors (on 1 or more bytes).
Definition at line 350 of file display.h.
◆ XCOORD
template<typename DEVICE >
The shortest integral type that can hold X coordinates for DEVICE
.
Definition at line 352 of file display.h.
◆ YCOORD
template<typename DEVICE >
The shortest integral type that can hold Y coordinates for DEVICE
.
Definition at line 354 of file display.h.
◆ SCALAR
template<typename DEVICE >
◆ SIGNED_SCALAR
template<typename DEVICE >
◆ IS_DISPLAY
template<typename DEVICE >
Marker of display devices.
Must be true
when DEVICE
is a display device.
Definition at line 344 of file display.h.
◆ MAX_X
template<typename DEVICE >
The maximum X coordinate for DEVICE
.
Definition at line 356 of file display.h.
◆ MAX_Y
template<typename DEVICE >
The maximum Y coordinate for DEVICE
.
Definition at line 358 of file display.h.
◆ WIDTH
template<typename DEVICE >
The width in pixels of DEVICE
.
Definition at line 360 of file display.h.
◆ HEIGHT
template<typename DEVICE >
The height in pixels of DEVICE
.
Definition at line 362 of file display.h.
◆ VERTICAL_FONT
template<typename DEVICE >
Tells if DEVICE
uses vertical fonts (e.g.
Nokia 5110 display).
Definition at line 375 of file display.h.
◆ HAS_RASTER
template<typename DEVICE >
Tells if DEVICE
implements a bitmap raster in SRAM (e.g.
Nokia 5110 display).
Definition at line 377 of file display.h.
The documentation for this struct was generated from the following file: