CircleOS  1
Functions
lcd_spe_IL9325.c File Reference

Common functions for Open4 platforms with ILI9325 controller. More...

Go to the source code of this file.

Functions

void LCD_RectRead (coord_t x, coord_t y, coord_t width, coord_t height, u8 *bmp)
 
u16 LCD_GetPixel (coord_t x, coord_t y)
 
NODEBUG void LCD_SetRect_For_Cmd (coord_t x, coord_t y, coord_t width, coord_t height)
 
void LCD_FullScreen (bool FullScreenONOFF)
 
void LCD_SendPixelData (color_t color)
 

Detailed Description

Author
YRT
Date
08/2010
Note
Platform = Open4
Date
07/2013
Note
added DMA2D functionality on STM32F42x platform

Definition in file lcd_spe_IL9325.c.

Function Documentation

void LCD_FullScreen ( bool  FullScreenONOFF)

Defines the area availbale for applications (full screen or not).

Parameters
[in]FullScreenONOFF: ON = full screen available for applications. OFF = only application area available for applications.
Note
The screen orientation is stalled to the current orentation defined before function call.

Definition at line 757 of file lcd_spe_IL9325.c.

u16 LCD_GetPixel ( coord_t  x,
coord_t  y 
)

Read the RGB color of the pixel the coordinate are provided in parameter.

Parameters
[in]xThe horizontal coordinate of the pixel.
[in]yThe vertical coordinate of the pixel.
Returns
An unsigned 16 bit word containing the RGB color of the pixel.
Warning
The (0x0) point in on the low left corner.
See Also
LCD_RectRead

Definition at line 589 of file lcd_spe_IL9325.c.

void LCD_RectRead ( coord_t  x,
coord_t  y,
coord_t  width,
coord_t  height,
u8 *  bmp 
)

Save the pixels of a rectangle part of the LCD into a RAM variable.

Parameters
[in]xThe horizontal coordinate of the rectangle low left corner.
[in]yThe vertical coordinate of the rectangle low left corner.
[in]widthThe rectangle width in pixels.
[in]heightThe rectangle height in pixels.
[out]bmpThe variable to store the read data into.
Warning
One pixel weights 2 bytes.
The (0x0) point in on the low left corner.

Definition at line 474 of file lcd_spe_IL9325.c.

void LCD_SendPixelData ( color_t  color)

Send a color two bytes to the LCD.

Parameters
[in]colorAn unsigned short containing the data to send to the LCD.
Precondition
An LCD_SendLCDCmd was done with a command waiting for data.

Definition at line 825 of file lcd_spe_IL9325.c.

NODEBUG void LCD_SetRect_For_Cmd ( coord_t  x,
coord_t  y,
coord_t  width,
coord_t  height 
)

Define the rectangle for the next command to be applied.

Parameters
[in]xThe horizontal coordinate of the rectangle low left corner.
[in]yThe vertical coordinate of the rectangle low left corner.
[in]widthThe rectangle width in pixels.
[in]heightThe rectangle height in pixels.
Warning
The (0x0) point in on the low left corner.

Definition at line 617 of file lcd_spe_IL9325.c.