Loading...
Searching...
No Matches
disp_dev_driver_t Struct Reference

Generic type for a display driver. More...

Detailed Description

Generic type for a display driver.

Definition at line 58 of file disp_dev.h.

#include <disp_dev.h>

Data Fields

void(* map )(const disp_dev_t *dev, const disp_dev_area_t *area, const uint16_t *color)
 Map an area to display on the device.
 
uint16_t(* height )(const disp_dev_t *dev)
 Get the height of the display device.
 
uint16_t(* width )(const disp_dev_t *dev)
 Get the width of the display device.
 
uint8_t(* color_depth )(const disp_dev_t *dev)
 Get the color depth of the display device.
 
void(* set_invert )(const disp_dev_t *dev, bool invert)
 Invert the display device colors.
 

Field Documentation

◆ color_depth

uint8_t(* disp_dev_driver_t::color_depth) (const disp_dev_t *dev)

Get the color depth of the display device.

Returns
The color depth

Definition at line 93 of file disp_dev.h.

◆ height

uint16_t(* disp_dev_driver_t::height) (const disp_dev_t *dev)

Get the height of the display device.

Parameters
[in]devPointer to the display device
Returns
Height in pixels

Definition at line 77 of file disp_dev.h.

◆ map

void(* disp_dev_driver_t::map) (const disp_dev_t *dev, const disp_dev_area_t *area, const uint16_t *color)

Map an area to display on the device.

Parameters
[in]devPointer to the display device
[in]areaCoordinates of display area
[in]colorArray of color to map to the display

Definition at line 66 of file disp_dev.h.

◆ set_invert

void(* disp_dev_driver_t::set_invert) (const disp_dev_t *dev, bool invert)

Invert the display device colors.

Parameters
[in]devNetwork device descriptor
[in]invertInvert mode (true if invert, false otherwise)

Definition at line 101 of file disp_dev.h.

◆ width

uint16_t(* disp_dev_driver_t::width) (const disp_dev_t *dev)

Get the width of the display device.

Parameters
[in]devPointer to the display device
Returns
Width in pixels

Definition at line 86 of file disp_dev.h.


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