sGUI  V1.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
lcd_lld.h
Go to the documentation of this file.
1 #ifndef __LCD_LLD_H__
2 #define __LCD_LLD_H__
3 
72 #ifdef __cplusplus
73 extern "C" {
74 #endif /* __cplusplus */
75 
76 /*----- Header-Files -------------------------------------------------------*/
77 #include <stdint.h> /* Standard integer formats */
78 #include "ssd1963.h" /* SSD1963 Graphic-Controller */
79 
80 /*----- Macros -------------------------------------------------------------*/
81 
82 /*----- Data types ---------------------------------------------------------*/
83 
84 /*----- Function prototypes ------------------------------------------------*/
85 
86 /*----- Data ---------------------------------------------------------------*/
87 
88 /*----- Implementation -----------------------------------------------------*/
92 static inline void LCD_Init(void) {
93  SSD1963_Init();
94 }
95 
104 static inline void LCD_FillArea(uint16_t x1, uint16_t y1, uint16_t x2,
105  uint16_t y2, uint16_t color) {
106  SSD1963_FillArea(x1, y1, x2, y2, color);
107 }
108 
118 static inline void LCD_WriteArea(uint16_t x1, uint16_t y1, uint16_t x2,
119  uint16_t y2, uint16_t *pData) {
120  SSD1963_WriteArea(x1, y1, x2, y2, pData);
121 }
122 
129 static inline void LCD_WritePixel(uint16_t x, uint16_t y, uint16_t pixel) {
130  SSD1963_WritePixel(x, y, pixel);
131 }
132 
133 /*----- EOF ----------------------------------------------------------------*/
134 
135 #ifdef __cplusplus
136 }
137 #endif /* __cplusplus */
138 
147 #endif /* __LCD_LLD_H__ */
static void LCD_WritePixel(uint16_t x, uint16_t y, uint16_t pixel)
Write one pixel to the display.
Definition: lcd_lld.h:129
static void LCD_FillArea(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t color)
Fill a specified area on the display with the same color.
Definition: lcd_lld.h:104
static void LCD_WriteArea(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t *pData)
Write an array of data to a specified area on the display.
Definition: lcd_lld.h:118
static void LCD_Init(void)
Initialize the interface, controller and the display.
Definition: lcd_lld.h:92