CARME-M4 BSP  V1.5
ssd1963_lld.h
Go to the documentation of this file.
1 #ifndef __SSD1963_LLD_H__
2 #define __SSD1963_LLD_H__
3 
74 #ifdef __cplusplus
75 extern "C" {
76 #endif /* __cplusplus */
77 
78 /*----- Header-Files -------------------------------------------------------*/
79 #include <stdint.h> /* Standard integer formats */
80 #include <carme.h>
81 
82 /*----- Macros -------------------------------------------------------------*/
86 #define GL_LCD_BASE (FSMC_LCD_SSD1963_BASE)
87 
91 #define GL_LCD ((SSD1963_T *) (GL_LCD_BASE))
92 
93 /*----- Data types ---------------------------------------------------------*/
99 typedef struct _SSD1963_T {
100  __IO uint16_t CMD;
101  __IO uint16_t DATA;
102 } SSD1963_T;
103 
104 /*----- Function prototypes ------------------------------------------------*/
105 void SSD1963_LLD_Init(void);
106 
107 /*----- Data ---------------------------------------------------------------*/
108 
109 /*----- Implementation -----------------------------------------------------*/
114 static inline void SSD1963_WriteCommand(uint16_t cmd) {
115  GL_LCD->CMD = cmd;
116 }
117 
122 static inline void SSD1963_WriteData(uint16_t data) {
123  GL_LCD->DATA = data;
124 }
125 
130 static inline uint16_t SSD1963_ReadData(void) {
131  return GL_LCD->DATA;
132 }
133 
134 #ifdef __cplusplus
135 }
136 #endif /* __cplusplus */
137 
144 #endif /* __SSD1963_LLD_H__ */
static uint16_t SSD1963_ReadData(void)
Read data from the display controller.
Definition: ssd1963_lld.h:130
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
#define GL_LCD
SSD1963 command and data register.
Definition: ssd1963_lld.h:91
struct _SSD1963_T SSD1963_T
SSD1963 command and data register structure.
void SSD1963_LLD_Init(void)
Initialize the communication interface to the SSD1963 LCD- Controller.
Definition: ssd1963_lld.c:109