CARME-M4 BSP  V1.5
CTRL

CARME-M4 LCD Low level driver. More...

+ Collaboration diagram for CTRL:

Files

file  ssd1963_cmd.h
 Driver for the SSD1963 Graphic-Controller.
 
file  ssd1963_lld.h
 Low level driver for the SSD1963 Graphic-Controller.
 
file  ssd1963_lld.c
 Low level driver for the SSD1963 Graphic-Controller.
 

Data Structures

struct  _SSD1963_T
 

Macros

#define CMD_NOP   0x00
 
#define CMD_SOFT_RESET   0x01
 
#define CMD_GET_PWR_MODE   0x0A
 
#define CMD_GET_ADDR_MODE   0x0B
 
#define CMD_GET_PIXEL_FORMAT   0x0C
 
#define CMD_GET_DISPLAY_MODE   0x0D
 
#define CMD_GET_SIGNAL_MODE   0x0E
 
#define CMD_GET_DIAGNOSTIC   0x0F
 
#define CMD_ENT_SLEEP   0x10
 
#define CMD_EXIT_SLEEP   0x11
 
#define CMD_ENT_PARTIAL_MODE   0x12
 
#define CMD_ENT_NORMAL_MODE   0x13
 
#define CMD_EXIT_INVERT_MODE   0x20
 
#define CMD_ENT_INVERT_MODE   0x21
 
#define CMD_SET_GAMMA   0x26
 
#define CMD_BLANK_DISPLAY   0x28
 
#define CMD_ON_DISPLAY   0x29
 
#define CMD_SET_COLUMN   0x2A
 
#define CMD_SET_PAGE   0x2B
 
#define CMD_WR_MEMSTART   0x2C
 
#define CMD_RD_MEMSTART   0x2E
 
#define CMD_SET_PARTIAL_AREA   0x30
 
#define CMD_SET_SCROLL_AREA   0x33
 
#define CMD_SET_TEAR_OFF   0x34
 
#define CMD_SET_TEAR_ON   0x35
 
#define CMD_SET_ADDR_MODE   0x36
 
#define CMD_SET_SCROLL_START   0x37
 
#define CMD_EXIT_IDLE_MODE   0x38
 
#define CMD_ENT_IDLE_MODE   0x39
 
#define CMD_SET_PIXEL_FORMAT   0x3A
 
#define CMD_WR_MEM_AUTO   0x3C
 
#define CMD_RD_MEM_AUTO   0x3E
 
#define CMD_SET_TEAR_SCANLINE   0x44
 
#define CMD_GET_SCANLINE   0x45
 
#define CMD_RD_DDB_START   0xA1
 
#define CMD_RD_DDB_AUTO   0xA8
 
#define CMD_SET_PANEL_MODE   0xB0
 
#define CMD_GET_PANEL_MODE   0xB1
 
#define CMD_SET_HOR_PERIOD   0xB4
 
#define CMD_GET_HOR_PERIOD   0xB5
 
#define CMD_SET_VER_PERIOD   0xB6
 
#define CMD_GET_VER_PERIOD   0xB7
 
#define CMD_SET_GPIO_CONF   0xB8
 
#define CMD_GET_GPIO_CONF   0xB9
 
#define CMD_SET_GPIO_VAL   0xBA
 
#define CMD_GET_GPIO_STATUS   0xBB
 
#define CMD_SET_POST_PROC   0xBC
 
#define CMD_GET_POST_PROC   0xBD
 
#define CMD_SET_PWM_CONF   0xBE
 
#define CMD_GET_PWM_CONF   0xBF
 
#define CMD_SET_LCD_GEN0   0xC0
 
#define CMD_GET_LCD_GEN0   0xC1
 
#define CMD_SET_LCD_GEN1   0xC2
 
#define CMD_GET_LCD_GEN1   0xC3
 
#define CMD_SET_LCD_GEN2   0xC4
 
#define CMD_GET_LCD_GEN2   0xC5
 
#define CMD_SET_LCD_GEN3   0xC6
 
#define CMD_GET_LCD_GEN3   0xC7
 
#define CMD_SET_GPIO0_ROP   0xC8
 
#define CMD_GET_GPIO0_ROP   0xC9
 
#define CMD_SET_GPIO1_ROP   0xCA
 
#define CMD_GET_GPIO1_ROP   0xCB
 
#define CMD_SET_GPIO2_ROP   0xCC
 
#define CMD_GET_GPIO2_ROP   0xCD
 
#define CMD_SET_GPIO3_ROP   0xCE
 
#define CMD_GET_GPIO3_ROP   0xCF
 
#define CMD_SET_ABC_DBC_CONF   0xD0
 
#define CMD_GET_ABC_DBC_CONF   0xD1
 
#define CMD_SET_DBC_HISTO_PTR   0xD2
 
#define CMD_GET_DBC_HISTO_PTR   0xD3
 
#define CMD_SET_DBC_THRES   0xD4
 
#define CMD_GET_DBC_THRES   0xD5
 
#define CMD_SET_ABM_TMR   0xD6
 
#define CMD_GET_ABM_TMR   0xD7
 
#define CMD_SET_AMB_LVL0   0xD8
 
#define CMD_GET_AMB_LVL0   0xD9
 
#define CMD_SET_AMB_LVL1   0xDA
 
#define CMD_GET_AMB_LVL1   0xDB
 
#define CMD_SET_AMB_LVL2   0xDC
 
#define CMD_GET_AMB_LVL2   0xDD
 
#define CMD_SET_AMB_LVL3   0xDE
 
#define CMD_GET_AMB_LVL3   0xDF
 
#define CMD_PLL_START   0xE0
 
#define CMD_PLL_STOP   0xE1
 
#define CMD_SET_PLL_MN   0xE2
 
#define CMD_GET_PLL_MN   0xE3
 
#define CMD_GET_PLL_STATUS   0xE4
 
#define CMD_ENT_DEEP_SLEEP   0xE5
 
#define CMD_SET_PCLK   0xE6
 
#define CMD_GET_PCLK   0xE7
 
#define CMD_SET_DATA_INTERFACE   0xF0
 
#define CMD_GET_DATA_INTERFACE   0xF1
 
#define SSD1963_PDI_8BIT   0
 
#define SSD1963_PDI_12BIT   1
 
#define SSD1963_PDI_16BIT   2
 
#define SSD1963_PDI_16BIT565   3
 
#define SSD1963_PDI_18BIT   4
 
#define SSD1963_PDI_24BIT   5
 
#define SSD1963_PDI_9BIT   6
 
#define GL_LCD_BASE   (FSMC_LCD_SSD1963_BASE)
 SSD1963 command and data register base address.
 
#define GL_LCD   ((SSD1963_T *) (GL_LCD_BASE))
 SSD1963 command and data register.
 
#define GUI_GPIO_BACKLIGHT   GPIOH, GPIO_Pin_10
 LCD Background light GPIO.
 

Typedefs

typedef struct _SSD1963_T SSD1963_T
 SSD1963 command and data register structure.
 

Functions

void SSD1963_LLD_Init (void)
 Initialize the communication interface to the SSD1963 LCD- Controller. More...
 
static void SSD1963_WriteCommand (uint16_t cmd)
 Write command to display controller. More...
 
static void SSD1963_WriteData (uint16_t data)
 Write data to display controller. More...
 
static uint16_t SSD1963_ReadData (void)
 Read data from the display controller. More...
 

Variables

static CARME_Port_Pin_t LCD_Port_Pin []
 LCD Port and Pin association. More...
 

Detailed Description

CARME-M4 LCD Low level driver.

Macro Definition Documentation

#define CMD_GET_ADDR_MODE   0x0B

Get the frame memory to the display panel read order

Definition at line 82 of file ssd1963_cmd.h.

#define CMD_GET_DISPLAY_MODE   0x0D

Returns the display mode

Definition at line 86 of file ssd1963_cmd.h.

#define CMD_GET_PCLK   0xE7

get pixel clock (LSHIFT signal) freq. settings

Definition at line 180 of file ssd1963_cmd.h.

#define CMD_GET_PIXEL_FORMAT   0x0C

Get the current pixel format

Definition at line 85 of file ssd1963_cmd.h.

#define CMD_GET_PLL_STATUS   0xE4

get the current PLL status

Definition at line 175 of file ssd1963_cmd.h.

#define CMD_GET_PWR_MODE   0x0A

Get the current power mode

Definition at line 81 of file ssd1963_cmd.h.

#define CMD_NOP   0x00

No operation

Definition at line 79 of file ssd1963_cmd.h.

#define CMD_PLL_START   0xE0

start the PLL

Definition at line 171 of file ssd1963_cmd.h.

#define CMD_PLL_STOP   0xE1

disable the PLL

Definition at line 172 of file ssd1963_cmd.h.

#define CMD_SET_ADDR_MODE   0x36

set from buffer read order to the display panel

Definition at line 110 of file ssd1963_cmd.h.

#define CMD_SET_PCLK   0xE6

set pixel clock (LSHIFT signal) frequency

Definition at line 177 of file ssd1963_cmd.h.

#define CMD_SET_PIXEL_FORMAT   0x3A

defines how many bits per pixel are used

Definition at line 116 of file ssd1963_cmd.h.

#define CMD_SET_TEAR_OFF   0x34

synchronization information is not sent from the display

Definition at line 104 of file ssd1963_cmd.h.

#define CMD_SET_TEAR_ON   0x35

sync. information is sent from the display

Definition at line 107 of file ssd1963_cmd.h.

#define CMD_SOFT_RESET   0x01

Software reset

Definition at line 80 of file ssd1963_cmd.h.

Function Documentation

void SSD1963_LLD_Init ( void  )

Initialize the communication interface to the SSD1963 LCD- Controller.

Returns
None

Definition at line 109 of file ssd1963_lld.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static uint16_t SSD1963_ReadData ( void  )
inlinestatic

Read data from the display controller.

Returns
16 Bit value

Definition at line 130 of file ssd1963_lld.h.

+ Here is the caller graph for this function:

static void SSD1963_WriteCommand ( uint16_t  cmd)
inlinestatic

Write command to display controller.

Parameters
[in]cmdcommand to write.

Definition at line 114 of file ssd1963_lld.h.

+ Here is the caller graph for this function:

static void SSD1963_WriteData ( uint16_t  data)
inlinestatic

Write data to display controller.

Parameters
[in]dataram data to write.

Definition at line 122 of file ssd1963_lld.h.

+ Here is the caller graph for this function:

Variable Documentation

CARME_Port_Pin_t LCD_Port_Pin[]
static
Initial value:
= {
}
#define GUI_GPIO_BACKLIGHT
LCD Background light GPIO.
Definition: ssd1963_lld.c:85
#define CARME_AGPIO_9
Definition: carme.h:91

LCD Port and Pin association.

Definition at line 91 of file ssd1963_lld.c.