CARME-M4 BSP
V1.5
|
CARME-M4 Graphic controller. More...
Modules | |
CTRL | |
CARME-M4 LCD Low level driver. | |
Files | |
file | lcd_conf.h |
Simple graphic library configuration. | |
file | ssd1963.h |
Driver for the SSD1963 Graphic-Controller. | |
file | ssd1963.c |
Driver for the SSD1963 Graphic-Controller. | |
Functions | |
void | SSD1963_Init (void) |
Init the SSD1963 LCD-Controller and clear the display. More... | |
void | SSD1963_WritePixel (uint16_t x, uint16_t y, uint16_t color) |
Puts pixel. More... | |
uint16_t | SSD1963_ReadPixel (uint16_t x, uint16_t y) |
Reads pixel. More... | |
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. More... | |
void | SSD1963_FillArea (uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t color) |
Fill area of specified color. More... | |
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. More... | |
void | SSD1963_SetTearingCfg (uint8_t state, uint8_t mode) |
This function enable/disable tearing effect. More... | |
void | SSD1963_GetDeviceDescriptorBlock (uint16_t *ddb) |
Get SSD1963 Device Descriptor Block. More... | |
void | SSD1963_WriteCommand (uint16_t cmd) |
void | SSD1963_WriteData (uint16_t data) |
uint16_t | SSD1963_ReadData (void) |
static void | SSD1963_EnterSleepMode (void) |
SSD1963 enters sleep mode. Host must wait 5mS after sending before sending next command. | |
static void | SSD1963_ExitSleepMode (void) |
SSD1963 exit sleep mode. | |
static void | SSD1963_DisplayOff (void) |
SSD1963 changes the display state to OFF state. | |
static void | SSD1963_DisplayOn (void) |
SSD1963 changes the display state to ON state. | |
static void | SSD1963_Delay (uint32_t nCount) |
Inserts a delay time. More... | |
Variables | |
static uint16_t | deviceDescriptorBlock [3] |
CARME-M4 Graphic controller.
|
static |
void SSD1963_FillArea | ( | uint16_t | x1, |
uint16_t | y1, | ||
uint16_t | x2, | ||
uint16_t | y2, | ||
uint16_t | color | ||
) |
Fill area of specified color.
[in] | x1 | start column from the left. |
[in] | y1 | start row from the top. |
[in] | x2 | end column from the left. |
[in] | y2 | end row from the top. |
[in] | color | 16-Bit color value in the RGB 5-6-5 format. |
Definition at line 276 of file ssd1963.c.
void SSD1963_GetDeviceDescriptorBlock | ( | uint16_t * | ddb | ) |
void SSD1963_Init | ( | void | ) |
Init the SSD1963 LCD-Controller and clear the display.
Set pll parameters Target system clock : 110MHz Crystal frequency : 10MHz VCO range : 250MHz - 800MHz Multiplier : 33 (N = 0x20) Divider : 3 (M = 0x02)
Set LSHIFT freq, i.e. the DCLK with PLL freq 120 MHz set previously Typical DCLK for TFT-320x240 is 6.5MHz in 18 bit format 6.5 MHz = 120 MHz*(LCDC_FPR+1)/2^20
Definition at line 115 of file ssd1963.c.
uint16_t SSD1963_ReadPixel | ( | uint16_t | x, |
uint16_t | y | ||
) |
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.
[in] | x1 | start column from the left. |
[in] | y1 | start row from the top. |
[in] | x2 | end column from the left. |
[in] | y2 | end row from the top. |
Definition at line 250 of file ssd1963.c.
void SSD1963_SetTearingCfg | ( | uint8_t | state, |
uint8_t | mode | ||
) |
This function enable/disable tearing effect.
[in] | state | 1: to enable 0: to disable |
[in] | mode | 0: the tearing effect output line consists of V-blanking information only. 1: the tearing effect output line consists of both V-blanking and H-blanking info. |
Definition at line 326 of file ssd1963.c.
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.
[in] | x1 | start column from the left. |
[in] | y1 | start row from the top. |
[in] | x2 | end column from the left. |
[in] | y2 | end row from the top. |
[in] | pData | Pointer to the array of pixels in format of 16-Bit color value in the RGB 5-6-5 format. |
Definition at line 301 of file ssd1963.c.