disp_dev_driver_t Struct Reference

Generic type for a display driver. More...

Detailed Description

Generic type for a display driver.

Definition at line 48 of file disp_dev.h.

#include <disp_dev.h>

Data Fields

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

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 86 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 70 of file disp_dev.h.

◆ map

void(* disp_dev_driver_t::map) (const disp_dev_t *dev, uint16_t x1, uint16_t x2, uint16_t y1, uint16_t y2, const uint16_t *color)

Map an area to display on the device.

Parameters
[in]devPointer to the display device
[in]x1Left coordinate
[in]x2Right coordinate
[in]y1Top coordinate
[in]y2Bottom coordinate
[in]colorArray of color to map to the display

Definition at line 59 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 94 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 79 of file disp_dev.h.


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