Hanna
Sourcecode Batteriemanagementsystem |
Graphical library API header file. Mehr ...
#include <assert.h>
#include <compiler.h>
#include <stdint.h>
#include <gfx_ili9341.h>
#include "gfx_generic.h"
gehe zum Quellcode dieser Datei
Makrodefinitionen | |
#define | CONF_GFX_USE_CLIPPING |
Standard Color Definitions | |
#define | GFX_COLOR_BLACK GFX_COLOR( 0, 0, 0) |
#define | GFX_COLOR_WHITE GFX_COLOR(255, 255, 255) |
#define | GFX_COLOR_GRAY GFX_COLOR(128, 128, 128) |
#define | GFX_COLOR_LT_GRAY GFX_COLOR(220, 220, 220) |
#define | GFX_COLOR_RED GFX_COLOR(255, 0, 0) |
#define | GFX_COLOR_DK_RED GFX_COLOR(128, 0, 0) |
#define | GFX_COLOR_GREEN GFX_COLOR( 0, 255, 0) |
#define | GFX_COLOR_DK_GREEN GFX_COLOR( 0, 128, 0) |
#define | GFX_COLOR_BLUE GFX_COLOR( 0, 0, 255) |
#define | GFX_COLOR_DK_BLUE GFX_COLOR( 0, 0, 128) |
#define | GFX_COLOR_MAGENTA GFX_COLOR(255, 0, 255) |
#define | GFX_COLOR_DK_MAGENTA GFX_COLOR(128, 0, 128) |
#define | GFX_COLOR_YELLOW GFX_COLOR(255, 255, 0) |
#define | GFX_COLOR_DK_YELLOW GFX_COLOR(128, 128, 0) |
#define | GFX_COLOR_CYAN GFX_COLOR( 0, 255, 255) |
#define | GFX_COLOR_DK_CYAN GFX_COLOR( 0, 128, 128) |
Circle Sector Definitions | |
#define | GFX_OCTANT0 (1 << 0) |
#define | GFX_OCTANT1 (1 << 1) |
#define | GFX_OCTANT2 (1 << 2) |
#define | GFX_OCTANT3 (1 << 3) |
#define | GFX_OCTANT4 (1 << 4) |
#define | GFX_OCTANT5 (1 << 5) |
#define | GFX_OCTANT6 (1 << 6) |
#define | GFX_OCTANT7 (1 << 7) |
#define | GFX_QUADRANT0 (GFX_OCTANT0 | GFX_OCTANT1) |
#define | GFX_QUADRANT1 (GFX_OCTANT2 | GFX_OCTANT3) |
#define | GFX_QUADRANT2 (GFX_OCTANT4 | GFX_OCTANT5) |
#define | GFX_QUADRANT3 (GFX_OCTANT6 | GFX_OCTANT7) |
#define | GFX_LEFTHALF (GFX_QUADRANT3 | GFX_QUADRANT0) |
#define | GFX_TOPHALF (GFX_QUADRANT0 | GFX_QUADRANT1) |
#define | GFX_RIGHTHALF (GFX_QUADRANT1 | GFX_QUADRANT2) |
#define | GFX_BOTTOMHALF (GFX_QUADRANT2 | GFX_QUADRANT3) |
#define | GFX_WHOLE 0xFF |
Flags for gfx_set_orientation() | |
#define | GFX_FLIP_X 1 |
#define | GFX_FLIP_Y 2 |
#define | GFX_SWITCH_XY 4 |
Funktionen | |
gfx_coord_t | gfx_get_height (void) |
gfx_coord_t | gfx_get_width (void) |
void | gfx_set_clipping (gfx_coord_t min_x, gfx_coord_t min_y, gfx_coord_t max_x, gfx_coord_t max_y) |
Variablen | |
Screen geometry and clipping variables | |
These global variables should not be accessed directly. They cannot be marked as private/static since they are shared within multiple C files of the graphics drivers. Use gfx_set_clipping() to change clipping region. | |
gfx_coord_t | gfx_min_x |
gfx_coord_t | gfx_min_y |
gfx_coord_t | gfx_max_x |
gfx_coord_t | gfx_max_y |
gfx_coord_t | gfx_width |
gfx_coord_t | gfx_height |
Graphical library API header file.
This files includes the correct header files for the graphics service
Copyright (c) 2012-2015 Atmel Corporation. All rights reserved.
Definiert in Datei gfx.h.
#define GFX_BOTTOMHALF (GFX_QUADRANT2 | GFX_QUADRANT3) |
#define GFX_FLIP_X 1 |
Bitmask for flipping X for gfx_set_orientation()
#define GFX_FLIP_Y 2 |
Bitmask for flipping Y for gfx_set_orientation()
#define GFX_LEFTHALF (GFX_QUADRANT3 | GFX_QUADRANT0) |
#define GFX_OCTANT0 (1 << 0) |
#define GFX_OCTANT1 (1 << 1) |
#define GFX_OCTANT2 (1 << 2) |
#define GFX_OCTANT3 (1 << 3) |
#define GFX_OCTANT4 (1 << 4) |
#define GFX_OCTANT5 (1 << 5) |
#define GFX_OCTANT6 (1 << 6) |
#define GFX_OCTANT7 (1 << 7) |
#define GFX_QUADRANT0 (GFX_OCTANT0 | GFX_OCTANT1) |
#define GFX_QUADRANT1 (GFX_OCTANT2 | GFX_OCTANT3) |
#define GFX_QUADRANT2 (GFX_OCTANT4 | GFX_OCTANT5) |
#define GFX_QUADRANT3 (GFX_OCTANT6 | GFX_OCTANT7) |
#define GFX_RIGHTHALF (GFX_QUADRANT1 | GFX_QUADRANT2) |
#define GFX_SWITCH_XY 4 |
Bitmask for swapping X and Y for gfx_set_orientation()
#define GFX_TOPHALF (GFX_QUADRANT0 | GFX_QUADRANT1) |
gfx_coord_t gfx_height |
Current height of screen.
Definiert in Zeile 60 der Datei gfx_ili9341.c.
gfx_coord_t gfx_max_x |
Minimum X of current clipping region.
Definiert in Zeile 62 der Datei gfx_ili9341.c.
gfx_coord_t gfx_max_y |
Maximum Y of current clipping region.
Definiert in Zeile 62 der Datei gfx_ili9341.c.
gfx_coord_t gfx_min_x |
Minimum X of current clipping region.
Definiert in Zeile 61 der Datei gfx_ili9341.c.
gfx_coord_t gfx_min_y |
Maximum Y of current clipping region.
Definiert in Zeile 61 der Datei gfx_ili9341.c.
gfx_coord_t gfx_width |
Current width of screen.
Definiert in Zeile 60 der Datei gfx_ili9341.c.