CARME-M4 BSP  V1.5
ssd1963.h
Go to the documentation of this file.
1 #ifndef __SSD1963_H__
2 #define __SSD1963_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_lld.h" /* SSD1963 Graphic-Controller driver */
79 #include "ssd1963_cmd.h" /* SSD1963 Graphic-Controller commands */
80 
81 /*----- Macros -------------------------------------------------------------*/
82 
83 /*----- Data types ---------------------------------------------------------*/
84 
85 /*----- Function prototypes ------------------------------------------------*/
86 void SSD1963_Init(void);
87 void SSD1963_WritePixel(uint16_t x, uint16_t y, uint16_t color);
88 uint16_t SSD1963_ReadPixel(uint16_t x, uint16_t y);
89 void SSD1963_SetArea(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2);
90 void SSD1963_FillArea(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2,
91  uint16_t color);
92 void SSD1963_WriteArea(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2,
93  uint16_t *pData);
94 void SSD1963_SetTearingCfg(uint8_t state, uint8_t mode);
95 void SSD1963_GetDeviceDescriptorBlock(uint16_t *ddb);
96 
97 /* Low level driver */
98 void SSD1963_LLD_Init(void);
99 void SSD1963_WriteCommand(uint16_t cmd);
100 void SSD1963_WriteData(uint16_t data);
101 uint16_t SSD1963_ReadData(void);
102 
103 /*----- Data ---------------------------------------------------------------*/
104 
105 /*----- Implementation -----------------------------------------------------*/
110 static inline void SSD1963_EnterSleepMode(void) {
111  SSD1963_WriteCommand(CMD_ENT_SLEEP);
112 }
113 
117 static inline void SSD1963_ExitSleepMode(void) {
118  SSD1963_WriteCommand(CMD_EXIT_SLEEP);
119 }
120 
124 static inline void SSD1963_DisplayOff(void) {
125  SSD1963_WriteCommand(CMD_BLANK_DISPLAY);
126 }
127 
131 static inline void SSD1963_DisplayOn(void) {
132  SSD1963_WriteCommand(CMD_ON_DISPLAY);
133 }
134 
135 #ifdef __cplusplus
136 }
137 #endif /* __cplusplus */
138 
144 #endif /* __SSD1963_H__ */
void SSD1963_Init(void)
Init the SSD1963 LCD-Controller and clear the display.
Definition: ssd1963.c:115
uint16_t SSD1963_ReadPixel(uint16_t x, uint16_t y)
Reads pixel.
Definition: ssd1963.c:231
void SSD1963_SetTearingCfg(uint8_t state, uint8_t mode)
This function enable/disable tearing effect.
Definition: ssd1963.c:326
static uint16_t SSD1963_ReadData(void)
Read data from the display controller.
Definition: ssd1963_lld.h:130
void SSD1963_LLD_Init(void)
Initialize the communication interface to the SSD1963 LCD- Controller.
Definition: ssd1963_lld.c:109
void SSD1963_WriteArea(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t *pData)
Write a array of data to the display.
Definition: ssd1963.c:301
static void SSD1963_DisplayOff(void)
SSD1963 changes the display state to OFF state.
Definition: ssd1963.h:124
Low level driver for the SSD1963 Graphic-Controller.
static void SSD1963_WriteData(uint16_t data)
Write data to display controller.
Definition: ssd1963_lld.h:122
static void SSD1963_WriteCommand(uint16_t cmd)
Write command to display controller.
Definition: ssd1963_lld.h:114
static void SSD1963_DisplayOn(void)
SSD1963 changes the display state to ON state.
Definition: ssd1963.h:131
void SSD1963_WritePixel(uint16_t x, uint16_t y, uint16_t color)
Puts pixel.
Definition: ssd1963.c:215
Driver for the SSD1963 Graphic-Controller.
void SSD1963_SetArea(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2)
defines start/end columns and start/end rows for memory access from host to SSD1963.
Definition: ssd1963.c:250
void SSD1963_FillArea(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t color)
Fill area of specified color.
Definition: ssd1963.c:276
static void SSD1963_ExitSleepMode(void)
SSD1963 exit sleep mode.
Definition: ssd1963.h:117
void SSD1963_GetDeviceDescriptorBlock(uint16_t *ddb)
Get SSD1963 Device Descriptor Block.
Definition: ssd1963.c:346
static void SSD1963_EnterSleepMode(void)
SSD1963 enters sleep mode. Host must wait 5mS after sending before sending next command.
Definition: ssd1963.h:110